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
d79fcc57
Commit
d79fcc57
authored
Mar 19, 2020
by
TanakaKotoha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Nowhere
parent
a9d96b5d
Changes
11
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
39 additions
and
12 deletions
+39
-12
expansions/222DIY.cdb
expansions/222DIY.cdb
+0
-0
expansions/script/c33330083.lua
expansions/script/c33330083.lua
+2
-1
expansions/script/c33400605.lua
expansions/script/c33400605.lua
+2
-2
expansions/script/c60151621.lua
expansions/script/c60151621.lua
+2
-2
expansions/script/c65071047.lua
expansions/script/c65071047.lua
+1
-1
expansions/script/c81011006.lua
expansions/script/c81011006.lua
+1
-1
expansions/script/c81011007.lua
expansions/script/c81011007.lua
+13
-0
expansions/script/c81011027.lua
expansions/script/c81011027.lua
+1
-1
expansions/script/c81013001.lua
expansions/script/c81013001.lua
+2
-2
expansions/script/c81013003.lua
expansions/script/c81013003.lua
+2
-2
expansions/script/c81019004.lua
expansions/script/c81019004.lua
+13
-0
No files found.
expansions/222DIY.cdb
View file @
d79fcc57
No preview for this file type
expansions/script/c33330083.lua
View file @
d79fcc57
...
@@ -48,9 +48,10 @@ function c33330083.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -48,9 +48,10 @@ function c33330083.operation(e,tp,eg,ep,ev,re,r,rp)
--indes
--indes
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e3
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_CANNOT_DISABLE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e3
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e3
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
e3
:
SetValue
(
1
)
e3
:
SetValue
(
1
)
tc
:
RegisterEffect
(
e3
)
tc
:
RegisterEffect
(
e3
)
local
e4
=
e3
:
Clone
()
local
e4
=
e3
:
Clone
()
...
...
expansions/script/c33400605.lua
View file @
d79fcc57
...
@@ -19,7 +19,7 @@ function cm.initial_effect(c)
...
@@ -19,7 +19,7 @@ function cm.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_REMOVED
)
e1
:
SetRange
(
LOCATION_REMOVED
)
e1
:
SetProperty
(
EFFECT_FLAG_NO_TURN_RESET
)
e1
:
SetProperty
(
EFFECT_FLAG_NO_TURN_RESET
)
e1
:
SetCountLimit
(
1
,
m
)
e1
:
SetCountLimit
(
1
,
m
+
10000
)
e1
:
SetCondition
(
cm
.
spcon
)
e1
:
SetCondition
(
cm
.
spcon
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
activate
)
e1
:
SetOperation
(
cm
.
activate
)
...
...
expansions/script/c60151621.lua
View file @
d79fcc57
...
@@ -29,9 +29,9 @@ function c60151621.pcfilter(c,lv,rk)
...
@@ -29,9 +29,9 @@ function c60151621.pcfilter(c,lv,rk)
return
c
:
IsSetCard
(
0xcb25
)
and
c
:
IsType
(
TYPE_PENDULUM
)
and
(
not
c
:
IsForbidden
()
or
c
:
IsAbleToHand
())
and
(
c
:
GetLevel
()
==
lv
or
c
:
GetLevel
()
==
rk
)
return
c
:
IsSetCard
(
0xcb25
)
and
c
:
IsType
(
TYPE_PENDULUM
)
and
(
not
c
:
IsForbidden
()
or
c
:
IsAbleToHand
())
and
(
c
:
GetLevel
()
==
lv
or
c
:
GetLevel
()
==
rk
)
end
end
function
c60151621
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c60151621
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c60151621
.
filter
,
tp
,
LOCATION_
ONFIELD
,
0
,
1
,
nil
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c60151621
.
filter
,
tp
,
LOCATION_
MZONE
+
LOCATION_PZONE
,
0
,
1
,
nil
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
Duel
.
SelectTarget
(
tp
,
c60151621
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
tp
)
Duel
.
SelectTarget
(
tp
,
c60151621
.
filter
,
tp
,
LOCATION_MZONE
+
LOCATION_PZONE
,
0
,
1
,
1
,
nil
,
tp
)
end
end
function
c60151621
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c60151621
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
...
...
expansions/script/c65071047.lua
View file @
d79fcc57
...
@@ -26,7 +26,7 @@ function c65071047.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -26,7 +26,7 @@ function c65071047.spop(e,tp,eg,ep,ev,re,r,rp)
if
t1
and
t2
then
if
t1
and
t2
then
op
=
Duel
.
SelectOption
(
1
-
tp
,
aux
.
Stringid
(
93445075
,
0
),
aux
.
Stringid
(
93445075
,
1
))
op
=
Duel
.
SelectOption
(
1
-
tp
,
aux
.
Stringid
(
93445075
,
0
),
aux
.
Stringid
(
93445075
,
1
))
elseif
t1
then
op
=
Duel
.
SelectOption
(
1
-
tp
,
aux
.
Stringid
(
93445075
,
0
))
elseif
t1
then
op
=
Duel
.
SelectOption
(
1
-
tp
,
aux
.
Stringid
(
93445075
,
0
))
elseif
t2
then
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
93445075
,
1
))
elseif
t2
then
op
=
Duel
.
SelectOption
(
1
-
tp
,
aux
.
Stringid
(
93445075
,
1
))
+
1
else
return
end
else
return
end
if
op
==
0
then
if
op
==
0
then
local
g
=
Duel
.
GetFieldGroup
(
tp
,
0
,
LOCATION_ONFIELD
)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
0
,
LOCATION_ONFIELD
)
...
...
expansions/script/c81011006.lua
View file @
d79fcc57
...
@@ -47,7 +47,7 @@ function c81011006.ffilter(c,fc,sub,mg,sg)
...
@@ -47,7 +47,7 @@ function c81011006.ffilter(c,fc,sub,mg,sg)
return
(
not
c
:
IsType
(
TYPE_TOKEN
))
and
(
not
sg
or
sg
:
FilterCount
(
aux
.
TRUE
,
c
)
==
0
or
sg
:
IsExists
(
Card
.
IsFusionCode
,
1
,
c
,
c
:
GetFusionCode
()))
return
(
not
c
:
IsType
(
TYPE_TOKEN
))
and
(
not
sg
or
sg
:
FilterCount
(
aux
.
TRUE
,
c
)
==
0
or
sg
:
IsExists
(
Card
.
IsFusionCode
,
1
,
c
,
c
:
GetFusionCode
()))
end
end
function
c81011006
.
costfilter
(
c
,
tp
)
function
c81011006
.
costfilter
(
c
,
tp
)
return
c
:
IsAbleToRemoveAsCost
()
and
(
c
:
IsLocation
(
LOCATION_GRAVE
)
or
c
:
IsFaceup
())
and
not
c
:
IsCode
(
81011006
)
return
c
:
IsAbleToRemoveAsCost
()
and
not
c
:
IsCode
(
81011006
)
and
Duel
.
IsExistingTarget
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
c
)
and
Duel
.
IsExistingTarget
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
c
)
end
end
function
c81011006
.
rmcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c81011006
.
rmcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
expansions/script/c81011007.lua
View file @
d79fcc57
...
@@ -3,6 +3,13 @@ function c81011007.initial_effect(c)
...
@@ -3,6 +3,13 @@ function c81011007.initial_effect(c)
--link summon
--link summon
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
aux
.
AddLinkProcedure
(
c
,
nil
,
3
,
3
)
aux
.
AddLinkProcedure
(
c
,
nil
,
3
,
3
)
--spsummon bgm
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e0
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e0
:
SetCondition
(
c81011007
.
sumcon
)
e0
:
SetOperation
(
c81011007
.
sumsuc
)
c
:
RegisterEffect
(
e0
)
--direct attack
--direct attack
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
@@ -25,6 +32,12 @@ function c81011007.initial_effect(c)
...
@@ -25,6 +32,12 @@ function c81011007.initial_effect(c)
e3
:
SetCondition
(
c81011007
.
actcon
)
e3
:
SetCondition
(
c81011007
.
actcon
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c81011007
.
sumcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_HAND
)
and
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_SYNCHRO
)
end
function
c81011007
.
sumsuc
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_MUSIC
,
0
,
aux
.
Stringid
(
81011007
,
0
))
end
function
c81011007
.
dircon
(
e
)
function
c81011007
.
dircon
(
e
)
return
e
:
GetHandler
():
GetColumnGroupCount
()
==
0
return
e
:
GetHandler
():
GetColumnGroupCount
()
==
0
end
end
...
...
expansions/script/c81011027.lua
View file @
d79fcc57
...
@@ -28,7 +28,7 @@ function c81011027.initial_effect(c)
...
@@ -28,7 +28,7 @@ function c81011027.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c81011027
.
sumcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c81011027
.
sumcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_HAND
)
return
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_HAND
)
and
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_SYNCHRO
)
end
end
function
c81011027
.
sumsuc
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c81011027
.
sumsuc
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_MUSIC
,
0
,
aux
.
Stringid
(
81011027
,
0
))
Duel
.
Hint
(
HINT_MUSIC
,
0
,
aux
.
Stringid
(
81011027
,
0
))
...
...
expansions/script/c81013001.lua
View file @
d79fcc57
...
@@ -51,7 +51,7 @@ end
...
@@ -51,7 +51,7 @@ end
function
c81013001
.
ffiltera
(
c
)
function
c81013001
.
ffiltera
(
c
)
return
c
:
IsFusionType
(
TYPE_FUSION
)
and
c
:
IsRace
(
RACE_PLANT
)
and
c
:
IsFusionAttribute
(
ATTRIBUTE_EARTH
)
and
c
:
IsLevelBelow
(
9
)
return
c
:
IsFusionType
(
TYPE_FUSION
)
and
c
:
IsRace
(
RACE_PLANT
)
and
c
:
IsFusionAttribute
(
ATTRIBUTE_EARTH
)
and
c
:
IsLevelBelow
(
9
)
end
end
function
c81013001
.
ffilterb
(
c
)
function
c81013001
.
ffilterb
(
c
,
fc
,
sub
,
mg
,
sg
)
return
(
not
c
:
IsType
(
TYPE_TOKEN
))
and
(
not
sg
or
sg
:
FilterCount
(
aux
.
TRUE
,
c
)
==
0
or
sg
:
IsExists
(
Card
.
IsFusionCode
,
1
,
c
,
c
:
GetFusionCode
()))
return
(
not
c
:
IsType
(
TYPE_TOKEN
))
and
(
not
sg
or
sg
:
FilterCount
(
aux
.
TRUE
,
c
)
==
0
or
sg
:
IsExists
(
Card
.
IsFusionCode
,
1
,
c
,
c
:
GetFusionCode
()))
end
end
function
c81013001
.
bfilter
(
c
,
tp
)
function
c81013001
.
bfilter
(
c
,
tp
)
...
@@ -67,7 +67,7 @@ function c81013001.efilter(e,re)
...
@@ -67,7 +67,7 @@ function c81013001.efilter(e,re)
return
e
:
GetOwnerPlayer
()
~=
re
:
GetOwnerPlayer
()
return
e
:
GetOwnerPlayer
()
~=
re
:
GetOwnerPlayer
()
end
end
function
c81013001
.
desfilter
(
c
)
function
c81013001
.
desfilter
(
c
)
return
(
c
:
IsFaceup
()
or
c
:
IsLocation
(
LOCATION_GRAVE
))
and
c
:
IsAbleToRemove
()
return
c
:
IsAbleToRemove
()
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
0
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
c
)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
0
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
c
)
end
end
function
c81013001
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c81013001
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
...
...
expansions/script/c81013003.lua
View file @
d79fcc57
...
@@ -38,10 +38,10 @@ function c81013003.initial_effect(c)
...
@@ -38,10 +38,10 @@ function c81013003.initial_effect(c)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c81013003
.
sumcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c81013003
.
sumcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_HAND
)
return
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_HAND
)
and
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_SYNCHRO
)
end
end
function
c81013003
.
sumsuc
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c81013003
.
sumsuc
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_MUSIC
,
0
,
aux
.
Stringid
(
8101
1027
,
0
))
Duel
.
Hint
(
HINT_MUSIC
,
0
,
aux
.
Stringid
(
8101
3003
,
0
))
end
end
function
c81013003
.
spfilter
(
c
)
function
c81013003
.
spfilter
(
c
)
return
(
bit
.
band
(
c
:
GetOriginalType
(),
TYPE_SPELL
)
~=
0
or
bit
.
band
(
c
:
GetOriginalType
(),
TYPE_TRAP
)
~=
0
)
and
c
:
IsAbleToGraveAsCost
()
return
(
bit
.
band
(
c
:
GetOriginalType
(),
TYPE_SPELL
)
~=
0
or
bit
.
band
(
c
:
GetOriginalType
(),
TYPE_TRAP
)
~=
0
)
and
c
:
IsAbleToGraveAsCost
()
...
...
expansions/script/c81019004.lua
View file @
d79fcc57
...
@@ -3,6 +3,13 @@ function c81019004.initial_effect(c)
...
@@ -3,6 +3,13 @@ function c81019004.initial_effect(c)
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
--link summon
--link summon
aux
.
AddLinkProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsSummonType
,
SUMMON_TYPE_ADVANCE
),
1
,
1
)
aux
.
AddLinkProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsSummonType
,
SUMMON_TYPE_ADVANCE
),
1
,
1
)
--spsummon bgm
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e0
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e0
:
SetCondition
(
c81019004
.
sumcon
)
e0
:
SetOperation
(
c81019004
.
sumsuc
)
c
:
RegisterEffect
(
e0
)
--search
--search
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e2
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
...
@@ -22,6 +29,12 @@ function c81019004.initial_effect(c)
...
@@ -22,6 +29,12 @@ function c81019004.initial_effect(c)
e3
:
SetValue
(
1
)
e3
:
SetValue
(
1
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c81019004
.
sumcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_HAND
)
and
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_SYNCHRO
)
end
function
c81019004
.
sumsuc
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_MUSIC
,
0
,
aux
.
Stringid
(
81019004
,
0
))
end
function
c81019004
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c81019004
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsReason
(
REASON_SUMMON
)
return
e
:
GetHandler
():
IsReason
(
REASON_SUMMON
)
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