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
alstroemeria-silentlove
ygopro-222DIY-cards
Commits
45817cba
Commit
45817cba
authored
Jul 04, 2021
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndyd
parent
3b6672c7
Pipeline
#3932
passed with stage
in 21 minutes and 35 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
22 deletions
+31
-22
expansions/script/c23000305.lua
expansions/script/c23000305.lua
+6
-0
expansions/script/c23000309.lua
expansions/script/c23000309.lua
+7
-6
expansions/script/c81006001.lua
expansions/script/c81006001.lua
+16
-14
expansions/script/c81006002.lua
expansions/script/c81006002.lua
+2
-2
No files found.
expansions/script/c23000305.lua
View file @
45817cba
...
@@ -48,6 +48,12 @@ function c23000305.initial_effect(c)
...
@@ -48,6 +48,12 @@ function c23000305.initial_effect(c)
e5
:
SetTarget
(
c23000305
.
destg
)
e5
:
SetTarget
(
c23000305
.
destg
)
e5
:
SetOperation
(
c23000305
.
desop
)
e5
:
SetOperation
(
c23000305
.
desop
)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
--double tuner
local
e6
=
Effect
.
CreateEffect
(
c
)
e6
:
SetType
(
EFFECT_TYPE_SINGLE
)
e6
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e6
:
SetCode
(
21142671
)
c
:
RegisterEffect
(
e6
)
end
end
function
c23000305
.
spfilter2
(
c
,
e
,
tp
)
function
c23000305
.
spfilter2
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x35b
)
and
c
:
IsLevel
(
3
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0x35b
)
and
c
:
IsLevel
(
3
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
...
...
expansions/script/c23000309.lua
View file @
45817cba
...
@@ -47,12 +47,13 @@ function c23000309.initial_effect(c)
...
@@ -47,12 +47,13 @@ function c23000309.initial_effect(c)
e5
:
SetOperation
(
c23000309
.
spop
)
e5
:
SetOperation
(
c23000309
.
spop
)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
--double tuner
--double tuner
local
e
9
=
Effect
.
CreateEffect
(
c
)
local
e
6
=
Effect
.
CreateEffect
(
c
)
e
9
:
SetType
(
EFFECT_TYPE_SINGLE
)
e
6
:
SetType
(
EFFECT_TYPE_SINGLE
)
e
9
:
SetCode
(
EFFECT_MATERIAL_CHECK
)
e
6
:
SetCode
(
EFFECT_MATERIAL_CHECK
)
e
9
:
SetValue
(
c23000309
.
valcheck
)
e
6
:
SetValue
(
c23000309
.
valcheck
)
c
:
RegisterEffect
(
e
9
)
c
:
RegisterEffect
(
e
6
)
end
end
c23000309
.
material_type
=
TYPE_SYNCHRO
function
c23000309
.
indct
(
e
,
re
,
r
,
rp
)
function
c23000309
.
indct
(
e
,
re
,
r
,
rp
)
if
bit
.
band
(
r
,
REASON_BATTLE
+
REASON_EFFECT
)
~=
0
then
if
bit
.
band
(
r
,
REASON_BATTLE
+
REASON_EFFECT
)
~=
0
then
return
1
return
1
...
@@ -129,4 +130,4 @@ function c23000309.valcheck(e,c)
...
@@ -129,4 +130,4 @@ function c23000309.valcheck(e,c)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
-
RESET_TOFIELD
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
-
RESET_TOFIELD
+
RESET_PHASE
+
PHASE_END
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
end
end
\ No newline at end of file
expansions/script/c81006001.lua
View file @
45817cba
...
@@ -13,9 +13,9 @@ function cm.initial_effect(c)
...
@@ -13,9 +13,9 @@ function cm.initial_effect(c)
e1
:
SetHintTiming
(
0
,
TIMING_END_PHASE
)
e1
:
SetHintTiming
(
0
,
TIMING_END_PHASE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
,
m
)
e1
:
SetCountLimit
(
1
,
m
)
e1
:
SetCost
(
cm
.
tk
cost
)
e1
:
SetCost
(
cm
.
sp
cost
)
e1
:
SetTarget
(
cm
.
tk
tg
)
e1
:
SetTarget
(
cm
.
sp
tg
)
e1
:
SetOperation
(
cm
.
tk
op
)
e1
:
SetOperation
(
cm
.
sp
op
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--spsummon
--spsummon
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
...
@@ -33,28 +33,30 @@ end
...
@@ -33,28 +33,30 @@ end
function
cm
.
ffilter
(
c
,
fc
,
sub
,
mg
,
sg
)
function
cm
.
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
cm
.
tkcost
filter
(
c
)
function
cm
.
c
filter
(
c
)
return
c
:
IsAbleToRemoveAsCost
()
return
c
:
IsAbleToRemoveAsCost
()
end
end
function
cm
.
tk
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
sp
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
loc
=
LOCATION_ONFIELD
local
loc
=
LOCATION_ONFIELD
if
ft
==
0
then
loc
=
LOCATION_MZONE
end
if
ft
==
0
then
loc
=
LOCATION_MZONE
end
if
chk
==
0
then
return
ft
>-
1
and
Duel
.
IsExistingMatchingCard
(
cm
.
tkcost
filter
,
tp
,
loc
,
0
,
1
,
e
:
GetHandler
())
end
if
chk
==
0
then
return
ft
>-
1
and
Duel
.
IsExistingMatchingCard
(
cm
.
c
filter
,
tp
,
loc
,
0
,
1
,
e
:
GetHandler
())
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
tkcost
filter
,
tp
,
loc
,
0
,
1
,
1
,
e
:
GetHandler
())
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
c
filter
,
tp
,
loc
,
0
,
1
,
1
,
e
:
GetHandler
())
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_COST
)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_COST
)
end
end
function
cm
.
tktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
81006099
,
0
,
TYPES_TOKEN_MONSTER
,
2800
,
2000
,
8
,
RACE_PLANT
,
ATTRIBUTE_EARTH
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
81006099
,
0
,
0x4011
,
2800
,
2000
,
8
,
RACE_PLANT
,
ATTRIBUTE_EARTH
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOKEN
,
nil
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOKEN
,
nil
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
0
,
0
)
end
end
function
cm
.
tkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
or
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
if
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
81006099
,
0
,
TYPES_TOKEN_MONSTER
,
2800
,
2000
,
8
,
RACE_PLANT
,
ATTRIBUTE_EARTH
)
then
return
end
if
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
81006099
,
0
,
0x4011
,
2800
,
2000
,
8
,
RACE_PLANT
,
ATTRIBUTE_EARTH
)
then
local
token
=
Duel
.
CreateToken
(
tp
,
81006099
)
local
token
=
Duel
.
CreateToken
(
tp
,
81006099
)
Duel
.
SpecialSummon
(
token
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
token
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
end
function
cm
.
tpcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
tpcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnPlayer
()
~=
tp
return
Duel
.
GetTurnPlayer
()
~=
tp
...
...
expansions/script/c81006002.lua
View file @
45817cba
...
@@ -31,13 +31,13 @@ function cm.ffilter(c,fc,sub,mg,sg)
...
@@ -31,13 +31,13 @@ function cm.ffilter(c,fc,sub,mg,sg)
end
end
function
cm
.
tktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
tktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
81006099
,
0
,
TYPES_TOKEN_MONSTER
,
2800
,
2000
,
8
,
RACE_PLANT
,
ATTRIBUTE_EARTH
)
end
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
81006099
,
0
,
0x4011
,
2800
,
2000
,
8
,
RACE_PLANT
,
ATTRIBUTE_EARTH
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOKEN
,
nil
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOKEN
,
nil
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
0
,
0
)
end
end
function
cm
.
tkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
tkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
if
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
81006099
,
0
,
TYPES_TOKEN_MONSTER
,
2800
,
2000
,
8
,
RACE_PLANT
,
ATTRIBUTE_EARTH
)
then
if
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
81006099
,
0
,
0x4011
,
2800
,
2000
,
8
,
RACE_PLANT
,
ATTRIBUTE_EARTH
)
then
local
token
=
Duel
.
CreateToken
(
tp
,
81006099
)
local
token
=
Duel
.
CreateToken
(
tp
,
81006099
)
Duel
.
SpecialSummon
(
token
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
token
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
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