Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-222DIY-cards
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
Soulgamer
ygopro-222DIY-cards
Commits
d911a7bc
Commit
d911a7bc
authored
May 24, 2021
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nmbd
parent
ad8058a5
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
137 additions
and
7 deletions
+137
-7
expansions/222DIY.cdb
expansions/222DIY.cdb
+0
-0
expansions/pics/16130005.jpg
expansions/pics/16130005.jpg
+0
-0
expansions/script/c16130003.lua
expansions/script/c16130003.lua
+4
-4
expansions/script/c16130005.lua
expansions/script/c16130005.lua
+126
-3
expansions/script/c16130006.lua
expansions/script/c16130006.lua
+5
-0
expansions/script/c50218139.lua
expansions/script/c50218139.lua
+1
-0
expansions/script/c50218140.lua
expansions/script/c50218140.lua
+1
-0
No files found.
expansions/222DIY.cdb
View file @
d911a7bc
No preview for this file type
expansions/pics/16130005.jpg
View replaced file @
ad8058a5
View file @
d911a7bc
123 KB
|
W:
|
H:
148 KB
|
W:
|
H:
2-up
Swipe
Onion skin
expansions/script/c16130003.lua
View file @
d911a7bc
...
@@ -33,7 +33,7 @@ function cm.regop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -33,7 +33,7 @@ function cm.regop(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
--spsummon
--spsummon
local
tt
=
e
:
GetLabelObject
():
GetLabel
()
local
tt
=
e
:
GetLabelObject
():
GetLabel
()
if
tt
>
1
then
if
tt
>
0
then
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e4
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e4
:
SetCategory
(
CATEGORY_TOGRAVE
)
e4
:
SetCategory
(
CATEGORY_TOGRAVE
)
...
@@ -48,7 +48,7 @@ function cm.regop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -48,7 +48,7 @@ function cm.regop(e,tp,eg,ep,ev,re,r,rp)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterFlagEffect
(
0
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
m
,
4
))
c
:
RegisterFlagEffect
(
0
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
m
,
4
))
end
end
if
tt
>
2
then
if
tt
>
1
then
--tohand
--tohand
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
2
))
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
2
))
...
@@ -62,7 +62,7 @@ function cm.regop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -62,7 +62,7 @@ function cm.regop(e,tp,eg,ep,ev,re,r,rp)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterFlagEffect
(
0
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
m
,
5
))
c
:
RegisterFlagEffect
(
0
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
m
,
5
))
end
end
if
tt
>
3
then
if
tt
>
2
then
--Atk update
--Atk update
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
@@ -88,7 +88,7 @@ function cm.cfilter(c,tp)
...
@@ -88,7 +88,7 @@ function cm.cfilter(c,tp)
end
end
function
cm
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
eg
:
Filter
(
cm
.
cfilter
,
nil
,
tp
)
local
g
=
eg
:
Filter
(
cm
.
cfilter
,
nil
,
tp
)
return
g
return
g
:
GetCount
()
>
0
end
end
function
cm
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
...
...
expansions/script/c16130005.lua
View file @
d911a7bc
...
@@ -3,7 +3,6 @@ Duel.LoadScript("c16199990.lua")
...
@@ -3,7 +3,6 @@ Duel.LoadScript("c16199990.lua")
local
m
,
cm
=
rk
.
set
(
16130005
,
"BOW"
)
local
m
,
cm
=
rk
.
set
(
16130005
,
"BOW"
)
function
cm
.
initial_effect
(
c
)
function
cm
.
initial_effect
(
c
)
--synchro summon
--synchro summon
aux
.
AddSynchroProcedure
(
c
,
nil
,
aux
.
NonTuner
(
nil
),
1
)
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
--special summon rule
--special summon rule
local
e0
=
Effect
.
CreateEffect
(
c
)
local
e0
=
Effect
.
CreateEffect
(
c
)
...
@@ -25,6 +24,46 @@ function cm.initial_effect(c)
...
@@ -25,6 +24,46 @@ function cm.initial_effect(c)
e1
:
SetTarget
(
cm
.
sptg
)
e1
:
SetTarget
(
cm
.
sptg
)
e1
:
SetOperation
(
cm
.
spop
)
e1
:
SetOperation
(
cm
.
spop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--Gain effect
--remove
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e2
:
SetCategory
(
CATEGORY_REMOVE
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCountLimit
(
1
)
e2
:
SetCondition
(
cm
.
condition1
)
e2
:
SetTarget
(
cm
.
retg
)
e2
:
SetOperation
(
cm
.
reop
)
c
:
RegisterEffect
(
e2
)
--Cannnot SpecialSummon
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
m
,
2
))
e3
:
SetType
(
EFFECT_TYPE_IGNITION
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCountLimit
(
1
)
e3
:
SetCondition
(
cm
.
condition2
)
e3
:
SetTarget
(
cm
.
cntg
)
e3
:
SetOperation
(
cm
.
cnop
)
c
:
RegisterEffect
(
e3
)
--Hand To Deck
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
m
,
3
))
e4
:
SetCategory
(
CATEGORY_TODECK
)
e4
:
SetType
(
EFFECT_TYPE_IGNITION
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetCountLimit
(
1
)
e4
:
SetCondition
(
cm
.
condition3
)
e4
:
SetTarget
(
cm
.
tdgtg
)
e4
:
SetOperation
(
cm
.
tdgop
)
c
:
RegisterEffect
(
e4
)
--SpecialSummon Count
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e5
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e5
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e5
:
SetOperation
(
cm
.
op
)
c
:
RegisterEffect
(
e5
)
end
end
function
cm
.
sprfilter
(
c
,
tp
)
function
cm
.
sprfilter
(
c
,
tp
)
return
c
:
IsAbleToGraveAsCost
()
and
c
:
IsRace
(
RACE_ZOMBIE
)
and
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
return
c
:
IsAbleToGraveAsCost
()
and
c
:
IsRace
(
RACE_ZOMBIE
)
and
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
...
@@ -46,7 +85,7 @@ function cm.sprop(e,tp,eg,ep,ev,re,r,rp,c)
...
@@ -46,7 +85,7 @@ function cm.sprop(e,tp,eg,ep,ev,re,r,rp,c)
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
sprfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
sprfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
sg
=
g
:
SelectSubGroup
(
tp
,
cm
.
sprfilter1
,
false
,
2
,
g
:
GetCount
(),
c
,
tp
)
local
sg
=
g
:
SelectSubGroup
(
tp
,
cm
.
sprfilter1
,
false
,
2
,
g
:
GetCount
(),
c
,
tp
)
Duel
.
SendtoGrave
(
sg
,
REASON_
COST
)
Duel
.
SendtoGrave
(
sg
,
REASON_
SYNCHRO
)
end
end
function
cm
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
@@ -60,9 +99,93 @@ function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -60,9 +99,93 @@ function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
cm
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
thfilter
,
tp
,
LOCATION_
ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
thfilter
,
tp
,
LOCATION_
GRAVE
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
g
,
tp
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
g
,
tp
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
end
end
function
cm
.
condition1
(
e
,
tp
)
return
Duel
.
GetFlagEffect
(
tp
,
m
)
>
0
end
function
cm
.
refilter
(
c
)
return
c
:
IsRace
(
RACE_ZOMBIE
)
and
c
:
IsAbleToRemove
()
end
function
cm
.
retg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
refilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
cm
.
reop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
refilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_EFFECT
)
local
og
=
Duel
.
GetOperatedGroup
()
if
og
:
GetCount
()
>
0
then
local
tc
=
og
:
GetFirst
()
if
tc
:
IsLevelAbove
(
4
)
then
local
e1_1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1_1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1_1
:
SetCode
(
EFFECT_CANNOT_TRIGGER
)
e1_1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
tc
:
RegisterEffect
(
e1_1
,
true
)
end
end
end
end
function
cm
.
condition2
(
e
,
tp
)
return
Duel
.
GetFlagEffect
(
tp
,
m
)
>
1
end
function
cm
.
cntg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
end
function
cm
.
cnop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetTargetRange
(
0
,
1
)
e1
:
SetTarget
(
cm
.
splimit
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
cm
.
splimit
(
e
,
c
)
return
c
:
IsLocation
(
LOCATION_HAND
)
end
function
cm
.
condition3
(
e
,
tp
)
return
Duel
.
GetFlagEffect
(
tp
,
m
)
>
2
end
function
cm
.
tdgtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
nil
,
1
,
1
-
tp
,
LOCATION_HAND
)
end
function
cm
.
tdgop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCondition
(
cm
.
tdcon
)
e1
:
SetOperation
(
cm
.
tdop
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
cm
.
tdcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_HAND
)
>
5
end
function
cm
.
tdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_CARD
,
0
,
m
)
local
flag
=
0
while
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_HAND
)
>
5
and
flag
==
0
do
Duel
.
Hint
(
HINT_SELECTMSG
,
1
-
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectMatchingCard
(
1
-
tp
,
nil
,
1
-
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoDeck
(
g
,
nil
,
REASON_RULE
)
flag
=
0
else
flag
=
1
end
end
end
function
cm
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
RegisterFlagEffect
(
tp
,
m
,
0
,
0
,
1
)
end
\ No newline at end of file
expansions/script/c16130006.lua
View file @
d911a7bc
...
@@ -93,6 +93,11 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp,c)
...
@@ -93,6 +93,11 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp,c)
local
rg
=
g
:
SelectSubGroup
(
tp
,
aux
.
mzctcheck
,
false
,
1
,
1
,
tp
)
local
rg
=
g
:
SelectSubGroup
(
tp
,
aux
.
mzctcheck
,
false
,
1
,
1
,
tp
)
aux
.
GCheckAdditional
=
nil
aux
.
GCheckAdditional
=
nil
Duel
.
Remove
(
rg
,
POS_FACEUP
,
REASON_COST
)
Duel
.
Remove
(
rg
,
POS_FACEUP
,
REASON_COST
)
local
e1_1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1_1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1_1
:
SetCode
(
EFFECT_CANNOT_TRIGGER
)
e1_1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
rg
:
GetFirst
():
RegisterEffect
(
e1_1
,
true
)
end
end
function
cm
.
thfilter
(
c
,
e
,
tp
)
function
cm
.
thfilter
(
c
,
e
,
tp
)
return
c
:
IsAbleToHand
()
and
not
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
c
:
IsRace
(
RACE_ZOMBIE
)
return
c
:
IsAbleToHand
()
and
not
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
c
:
IsRace
(
RACE_ZOMBIE
)
...
...
expansions/script/c50218139.lua
View file @
d911a7bc
...
@@ -42,6 +42,7 @@ function c50218139.initial_effect(c)
...
@@ -42,6 +42,7 @@ function c50218139.initial_effect(c)
e5
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_TOKEN
)
e5
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_TOKEN
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e5
:
SetCode
(
EVENT_LEAVE_FIELD
)
e5
:
SetCode
(
EVENT_LEAVE_FIELD
)
e5
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e5
:
SetCondition
(
c50218139
.
tkcon
)
e5
:
SetCondition
(
c50218139
.
tkcon
)
e5
:
SetTarget
(
c50218139
.
tktg
)
e5
:
SetTarget
(
c50218139
.
tktg
)
e5
:
SetOperation
(
c50218139
.
tkop
)
e5
:
SetOperation
(
c50218139
.
tkop
)
...
...
expansions/script/c50218140.lua
View file @
d911a7bc
...
@@ -42,6 +42,7 @@ function c50218140.initial_effect(c)
...
@@ -42,6 +42,7 @@ function c50218140.initial_effect(c)
e5
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_TOKEN
)
e5
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_TOKEN
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e5
:
SetCode
(
EVENT_LEAVE_FIELD
)
e5
:
SetCode
(
EVENT_LEAVE_FIELD
)
e5
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e5
:
SetCondition
(
c50218140
.
tkcon
)
e5
:
SetCondition
(
c50218140
.
tkcon
)
e5
:
SetTarget
(
c50218140
.
tktg
)
e5
:
SetTarget
(
c50218140
.
tktg
)
e5
:
SetOperation
(
c50218140
.
tkop
)
e5
:
SetOperation
(
c50218140
.
tkop
)
...
...
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