Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
REIKAI
ygopro
Commits
057e5a35
Commit
057e5a35
authored
Aug 14, 2012
by
argon.sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new
parent
8dcde6da
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
157 additions
and
0 deletions
+157
-0
script/c4149689.lua
script/c4149689.lua
+41
-0
script/c44910027.lua
script/c44910027.lua
+43
-0
script/c85602018.lua
script/c85602018.lua
+73
-0
No files found.
script/c4149689.lua
0 → 100644
View file @
057e5a35
--天狗のうちわ
function
c4149689
.
initial_effect
(
c
)
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e2
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetTargetRange
(
1
,
1
)
e2
:
SetValue
(
c4149689
.
aclimit
)
c
:
RegisterEffect
(
e2
)
--destroy
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
4149689
,
0
))
e3
:
SetCategory
(
CATEGORY_DESTROY
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e3
:
SetCode
(
EVENT_FLIP_SUMMON_SUCCESS
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetTarget
(
c4149689
.
destg
)
e3
:
SetOperation
(
c4149689
.
desop
)
c
:
RegisterEffect
(
e3
)
end
function
c4149689
.
aclimit
(
e
,
re
,
tp
)
local
rc
=
re
:
GetHandler
()
return
re
:
IsActiveType
(
TYPE_MONSTER
)
and
rc
:
IsStatus
(
STATUS_FLIP_SUMMONED
)
and
rc
:
IsLevelBelow
(
2
)
end
function
c4149689
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
eg
:
GetFirst
():
IsLevelBelow
(
2
)
end
Duel
.
SetTargetCard
(
eg
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
eg
,
1
,
0
,
0
)
end
function
c4149689
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
eg
:
GetFirst
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
tc
:
IsLevelBelow
(
2
)
then
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
end
end
script/c44910027.lua
0 → 100644
View file @
057e5a35
--ヴィクトリー·ドラゴン
function
c44910027
.
initial_effect
(
c
)
--summon with 3 tribute
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_LIMIT_SUMMON_PROC
)
e1
:
SetCondition
(
c44910027
.
ttcon
)
e1
:
SetOperation
(
c44910027
.
ttop
)
e1
:
SetValue
(
SUMMON_TYPE_ADVANCE
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_LIMIT_SET_PROC
)
e2
:
SetCondition
(
c44910027
.
ttcon
)
e2
:
SetOperation
(
c44910027
.
ttop
)
e2
:
SetValue
(
SUMMON_TYPE_ADVANCE
)
c
:
RegisterEffect
(
e2
)
--tribute limit
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
EFFECT_TRIBUTE_LIMIT
)
e3
:
SetValue
(
c44910027
.
tlimit
)
c
:
RegisterEffect
(
e3
)
--match kill
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
e4
:
SetCode
(
EFFECT_MATCH_KILL
)
c
:
RegisterEffect
(
e4
)
end
function
c44910027
.
ttcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
return
Duel
.
GetLocationCount
(
c
:
GetControler
(),
LOCATION_MZONE
)
>-
3
and
Duel
.
GetTributeCount
(
c
)
>=
3
end
function
c44910027
.
ttop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
g
=
Duel
.
SelectTribute
(
tp
,
c
,
3
,
3
)
c
:
SetMaterial
(
g
)
Duel
.
Release
(
g
,
REASON_SUMMON
+
REASON_MATERIAL
)
end
function
c44910027
.
tlimit
(
e
,
c
)
return
not
c
:
IsRace
(
RACE_DRAGON
)
end
script/c85602018.lua
0 → 100644
View file @
057e5a35
--遺言状
function
c85602018
.
initial_effect
(
c
)
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetOperation
(
c85602018
.
operation
)
c
:
RegisterEffect
(
e1
)
end
function
c85602018
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
--spsummon
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_TO_GRAVE
)
e1
:
SetCondition
(
c85602018
.
check
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e2
:
SetCondition
(
c85602018
.
spcon
)
e2
:
SetOperation
(
c85602018
.
spop
)
e2
:
SetLabelObject
(
e1
)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e2
,
tp
)
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e3
:
SetCondition
(
c85602018
.
spcon2
)
Duel
.
RegisterEffect
(
e3
,
tp
)
local
e4
=
e2
:
Clone
()
e4
:
SetCode
(
EVENT_CHAIN_END
)
Duel
.
RegisterEffect
(
e4
,
tp
)
local
e5
=
e2
:
Clone
()
e5
:
SetCode
(
EVENT_ATTACK_ANNOUNCE
)
Duel
.
RegisterEffect
(
e5
,
tp
)
local
e6
=
e2
:
Clone
()
e6
:
SetCode
(
EVENT_DAMAGE_STEP_END
)
Duel
.
RegisterEffect
(
e6
,
tp
)
local
e7
=
e2
:
Clone
()
e7
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e7
,
tp
)
end
function
c85602018
.
cfilter
(
c
,
tp
)
return
c
:
IsControler
(
tp
)
and
c
:
GetPreviousControler
()
==
tp
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
end
function
c85602018
.
check
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetLabel
()
==
2
then
return
end
if
eg
:
IsExists
(
c85602018
.
cfilter
,
1
,
nil
,
tp
)
then
e
:
SetLabel
(
1
)
end
end
function
c85602018
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsAttackBelow
(
1500
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c85602018
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetLabelObject
():
GetLabel
()
==
1
end
function
c85602018
.
spcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetLabelObject
():
GetLabel
()
==
1
and
Duel
.
GetCurrentChain
()
==
0
end
function
c85602018
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c85602018
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
85602018
,
0
))
then
Duel
.
Hint
(
HINT_CARD
,
0
,
85602018
)
Duel
.
Hint
(
HINT_OPSELECTED
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c85602018
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
e
:
GetLabelObject
():
SetLabel
(
2
)
else
e
:
GetLabelObject
():
SetLabel
(
0
)
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment