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
40eaeda7
Commit
40eaeda7
authored
Aug 26, 2021
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndyd
parent
100a840d
Pipeline
#5041
passed with stages
in 20 minutes and 22 seconds
Changes
4
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
36 deletions
+26
-36
expansions/222DIY.cdb
expansions/222DIY.cdb
+0
-0
expansions/script/c33501441.lua
expansions/script/c33501441.lua
+16
-28
expansions/script/c33501442.lua
expansions/script/c33501442.lua
+8
-6
expansions/script/c71400023.lua
expansions/script/c71400023.lua
+2
-2
No files found.
expansions/222DIY.cdb
View file @
40eaeda7
No preview for this file type
expansions/script/c33501441.lua
View file @
40eaeda7
...
@@ -7,23 +7,13 @@ function cm.initial_effect(c)
...
@@ -7,23 +7,13 @@ function cm.initial_effect(c)
e0
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e0
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e0
:
SetCode
(
EVENT_FREE_CHAIN
)
e0
:
SetCode
(
EVENT_FREE_CHAIN
)
c
:
RegisterEffect
(
e0
)
c
:
RegisterEffect
(
e0
)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_SYNCHRO_LEVEL
)
e2
:
SetRange
(
LOCATION_FZONE
)
e1
:
SetRange
(
LOCATION_FZONE
)
e2
:
SetTargetRange
(
LOCATION_ONFIELD
,
0
)
e1
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e1
:
SetTarget
(
cm
.
tgtg
)
e1
:
SetValue
(
cm
.
xyzlv
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_NONTUNER
)
e2
:
SetCode
(
EFFECT_NONTUNER
)
e2
:
SetValue
(
cm
.
tnval
)
e2
:
SetValue
(
cm
.
tnval
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e1
:
Clone
()
e3
:
SetCode
(
EFFECT_ADD_TYPE
)
e3
:
SetValue
(
TYPE_TUNER
)
e3
:
SetTarget
(
cm
.
tg
)
c
:
RegisterEffect
(
e3
)
local
e5
=
Effect
.
CreateEffect
(
c
)
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetDescription
(
aux
.
Stringid
(
m
,
2
))
e5
:
SetDescription
(
aux
.
Stringid
(
m
,
2
))
e5
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e5
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
...
@@ -35,22 +25,20 @@ function cm.initial_effect(c)
...
@@ -35,22 +25,20 @@ function cm.initial_effect(c)
e5
:
SetTarget
(
cm
.
atktg1
)
e5
:
SetTarget
(
cm
.
atktg1
)
e5
:
SetOperation
(
cm
.
atkop1
)
e5
:
SetOperation
(
cm
.
atkop1
)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
end
--setcard
function
cm
.
tgtg
(
e
,
c
)
local
e6
=
Effect
.
CreateEffect
(
c
)
return
c
:
IsRace
(
RACE_CYBERSE
)
e6
:
SetType
(
EFFECT_TYPE_FIELD
)
end
e6
:
SetRange
(
LOCATION_FZONE
)
function
cm
.
xyzlv
(
e
,
c
,
rc
)
e6
:
SetTargetRange
(
LOCATION_ONFIELD
,
0
)
local
mc
=
e
:
GetHandler
()
e6
:
SetCode
(
EFFECT_ADD_TYPE
)
local
lv
=
mc
:
GetLevel
()
e6
:
SetValue
(
TYPE_TUNER
)
if
mc
:
IsType
(
TYPE_LINK
)
then
e6
:
SetTarget
(
aux
.
TargetBoolFunction
(
cm
.
tg
))
lv
=
mc
:
GetLink
()
*
2
c
:
RegisterEffect
(
e6
)
end
return
lv
*
65536
+
e
:
GetHandler
():
GetLevel
()
end
end
function
cm
.
tnval
(
e
,
c
)
function
cm
.
tnval
(
e
,
c
)
return
e
:
GetHandler
():
IsControler
(
c
:
GetControler
())
return
c
:
IsControler
(
e
:
GetHandler
()
:
GetControler
())
end
end
function
cm
.
tg
(
e
,
c
)
function
cm
.
tg
(
c
)
return
c
:
IsRace
(
RACE_CYBERSE
)
and
c
:
IsLevelBelow
(
12
)
return
c
:
IsRace
(
RACE_CYBERSE
)
and
c
:
IsLevelBelow
(
12
)
end
end
...
@@ -59,7 +47,7 @@ function cm.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -59,7 +47,7 @@ function cm.condition(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_MZONE
,
0
):
Filter
(
cm
.
cfilter
,
nil
)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_MZONE
,
0
):
Filter
(
cm
.
cfilter
,
nil
)
return
g
:
GetCount
()
>
0
return
g
:
GetCount
()
>
0
end
end
function
cm
.
cfilter
(
e
)
function
cm
.
cfilter
(
c
)
return
c
:
IsRace
(
RACE_CYBERSE
)
and
c
:
IsType
(
TYPE_LINK
)
return
c
:
IsRace
(
RACE_CYBERSE
)
and
c
:
IsType
(
TYPE_LINK
)
end
end
function
cm
.
spfilter1
(
c
,
e
,
tp
)
function
cm
.
spfilter1
(
c
,
e
,
tp
)
...
...
expansions/script/c33501442.lua
View file @
40eaeda7
...
@@ -28,15 +28,17 @@ function cm.initial_effect(c)
...
@@ -28,15 +28,17 @@ function cm.initial_effect(c)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
end
end
function
cm
.
tgtg
(
e
,
c
)
function
cm
.
tgtg
(
e
,
c
)
return
c
:
IsRace
(
RACE_CYBERSE
)
return
c
:
IsRace
(
RACE_CYBERSE
)
and
c
:
IsType
(
TYPE_LINK
)
end
end
function
cm
.
xyzlv
(
e
,
c
,
rc
)
function
cm
.
xyzlv
(
e
,
c
,
rc
)
local
mc
=
e
:
GetHandler
()
local
mc
=
c
local
lv
=
mc
:
GetLevel
()
local
lv
=
mc
:
GetLevel
()
if
mc
:
IsType
(
TYPE_LINK
)
then
if
mc
:
IsType
(
TYPE_LINK
)
then
lv
=
mc
:
GetLink
()
*
2
lv
=
mc
:
GetLink
()
*
2
return
lv
*
65536
else
return
c
:
GetLevel
()
end
end
return
lv
*
65536
+
e
:
GetHandler
():
GetLevel
()
end
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
@@ -44,7 +46,7 @@ function cm.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -44,7 +46,7 @@ function cm.condition(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_MZONE
,
0
):
Filter
(
cm
.
cfilter
,
nil
)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_MZONE
,
0
):
Filter
(
cm
.
cfilter
,
nil
)
return
g
:
GetCount
()
>
0
return
g
:
GetCount
()
>
0
end
end
function
cm
.
cfilter
(
e
)
function
cm
.
cfilter
(
c
)
return
c
:
IsRace
(
RACE_CYBERSE
)
and
c
:
IsType
(
TYPE_LINK
)
return
c
:
IsRace
(
RACE_CYBERSE
)
and
c
:
IsType
(
TYPE_LINK
)
end
end
function
cm
.
spfilter1
(
c
,
e
,
tp
)
function
cm
.
spfilter1
(
c
,
e
,
tp
)
...
@@ -53,7 +55,7 @@ function cm.spfilter1(c,e,tp)
...
@@ -53,7 +55,7 @@ function cm.spfilter1(c,e,tp)
return
c
:
IsRace
(
RACE_CYBERSE
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
IsExistingMatchingCard
(
cm
.
xyzfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
mg
,
e
,
tp
)
return
c
:
IsRace
(
RACE_CYBERSE
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
IsExistingMatchingCard
(
cm
.
xyzfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
mg
,
e
,
tp
)
end
end
function
cm
.
xyzfilter
(
c
,
mg
,
e
,
tp
)
function
cm
.
xyzfilter
(
c
,
mg
,
e
,
tp
)
return
c
:
IsType
(
TYPE_XYZ
)
and
c
:
IsXyzSummonable
(
mg
)
return
c
:
IsType
(
TYPE_XYZ
)
and
c
:
IsXyzSummonable
(
mg
,
1
,
mg
:
GetCount
()
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_XYZ
,
tp
,
false
,
false
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_XYZ
,
tp
,
false
,
false
)
end
end
function
cm
.
atktg1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
atktg1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
@@ -73,6 +75,6 @@ function cm.atkop1(e,tp,eg,ep,ev,re,r,rp)
...
@@ -73,6 +75,6 @@ function cm.atkop1(e,tp,eg,ep,ev,re,r,rp)
if
hg
:
GetCount
()
>
0
then
if
hg
:
GetCount
()
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
sg
=
hg
:
Select
(
tp
,
1
,
1
,
nil
)
local
sg
=
hg
:
Select
(
tp
,
1
,
1
,
nil
)
Duel
.
XyzSummon
(
tp
,
sg
:
GetFirst
(),
mg
)
Duel
.
XyzSummon
(
tp
,
sg
:
GetFirst
(),
mg
,
1
,
mg
:
GetCount
()
)
end
end
end
end
\ No newline at end of file
expansions/script/c71400023.lua
View file @
40eaeda7
...
@@ -123,9 +123,9 @@ function c71400023.tg2(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -123,9 +123,9 @@ function c71400023.tg2(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_ONFIELD
)
and
chkc
:
IsAbleToRemove
()
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_ONFIELD
)
and
chkc
:
IsAbleToRemove
()
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
aux
.
TRUE
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
aux
.
TRUE
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
and
Duel
.
IsExistingTarget
(
aux
.
TRUE
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
end
and
Duel
.
IsExistingTarget
(
aux
.
TRUE
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
BANISH
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
DESTROY
)
local
g1
=
Duel
.
SelectTarget
(
tp
,
aux
.
TRUE
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
1
,
nil
)
local
g1
=
Duel
.
SelectTarget
(
tp
,
aux
.
TRUE
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
1
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
BANISH
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
DESTROY
)
local
g2
=
Duel
.
SelectTarget
(
tp
,
aux
.
TRUE
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
local
g2
=
Duel
.
SelectTarget
(
tp
,
aux
.
TRUE
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
g1
:
Merge
(
g2
)
g1
:
Merge
(
g2
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g1
,
2
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g1
,
2
,
0
,
0
)
...
...
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