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
11c9e8f4
You need to sign in or sign up before continuing.
Commit
11c9e8f4
authored
Apr 20, 2021
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sign out
parent
59a0a6b1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
12 deletions
+11
-12
expansions/script/c16107109.lua
expansions/script/c16107109.lua
+9
-8
expansions/script/c33400103.lua
expansions/script/c33400103.lua
+0
-2
expansions/script/c33701379.lua
expansions/script/c33701379.lua
+2
-2
No files found.
expansions/script/c16107109.lua
View file @
11c9e8f4
...
...
@@ -31,13 +31,14 @@ function cm.xyzfilter0(g,e,tp)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CHANGE_RANK
)
e1
:
SetValue
(
10
)
e1
:
SetReset
(
RESET_CHAIN
+
RESET_EVENT
+
RESETS_STANDARD
)
c
:
RegisterEffect
(
e1
,
true
)
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_CHANGE_RANK
)
e2
:
SetValue
(
10
)
e2
:
SetReset
(
RESET_CHAIN
+
RESET_EVENT
+
RESETS_STANDARD
)
mc
:
RegisterEffect
(
e2
,
true
)
if
not
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
mc
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
then
return
false
end
local
res
=
Duel
.
IsExistingMatchingCard
(
Card
.
IsXyzSummonable
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
Group
.
FromCards
(
c
,
mc
),
2
,
2
)
local
res1
=
Duel
.
IsExistingMatchingCard
(
cm
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
c
,
mc
,
c
:
GetOriginalRank
()
+
mc
:
GetOriginalRank
())
e1
:
Reset
()
...
...
@@ -48,15 +49,15 @@ function cm.filter2(c,e,tp,mc,sc,rk)
return
c
:
IsRank
(
rk
)
and
mc
:
IsCanBeXyzMaterial
(
c
)
and
sc
:
IsCanBeXyzMaterial
(
c
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_XYZ
,
tp
,
false
,
false
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
mc
,
c
)
>
0
end
function
cm
.
filter
(
c
,
e
)
return
c
:
IsType
(
TYPE_XYZ
)
and
c
:
IsCanBeEffectTarget
(
e
)
function
cm
.
filter
(
c
,
e
,
tp
)
return
c
:
IsType
(
TYPE_XYZ
)
and
c
:
IsCanBeEffectTarget
(
e
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
cm
.
spfilter3
(
c
,
e
,
tp
)
return
c
:
IsRelateToEffect
(
e
)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
ct
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
mg
=
Duel
.
GetMatchingGroup
(
cm
.
filter
1
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
nil
,
e
)
local
mg
=
Duel
.
GetMatchingGroup
(
cm
.
filter
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
nil
,
e
,
tp
)
if
chkc
then
return
false
end
if
chk
==
0
then
return
ct
>
1
and
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
and
mg
:
CheckSubGroup
(
cm
.
xyzfilter0
,
2
,
2
,
e
,
tp
)
end
...
...
@@ -72,16 +73,16 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
if
g
:
GetCount
()
<
2
then
return
end
local
tc1
=
g
:
GetFirst
()
local
tc2
=
g
:
GetNext
()
Duel
.
SpecialSummonStep
(
tc1
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummonStep
(
tc2
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CHANGE_RANK
)
e1
:
SetValue
(
10
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
-
RESET_TOFIELD
)
tc1
:
RegisterEffect
(
e1
,
true
)
local
e2
=
e1
:
Clone
()
tc2
:
RegisterEffect
(
e2
,
true
)
Duel
.
SpecialSummonStep
(
tc1
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummonStep
(
tc2
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummonComplete
()
Duel
.
BreakEffect
()
local
sg
=
Group
.
FromCards
(
tc1
,
tc2
)
...
...
@@ -119,7 +120,7 @@ function cm.thfilter(c)
return
c
:
IsSetCard
(
0x95
)
and
c
:
IsAbleToHand
()
end
function
cm
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
e
:
GetHandler
()
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
cm
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
expansions/script/c33400103.lua
View file @
11c9e8f4
...
...
@@ -35,8 +35,6 @@ function c33400103.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
RemoveCounter
(
tp
,
1
,
0
,
0x34f
,
sc1
,
REASON_COST
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c33400103
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
sc1
,
sc1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_ATKCHANGE
+
CATEGORY_DEFCHANGE
+
CATEGORY_LVCHANGE
,
g
,
g
:
GetCount
(),
0
,
0
)
local
v
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
end
function
c33400103
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
...
...
expansions/script/c33701379.lua
View file @
11c9e8f4
...
...
@@ -61,11 +61,11 @@ end
function
cm
.
sprcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
sprfilter
,
tp
,
LOCATION_HAND
,
LOCATION_ONFIELD
,
LOCATION_GRAVE
,
0
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
sprfilter
,
tp
,
LOCATION_HAND
+
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
0
,
nil
)
return
g
:
CheckSubGroup
(
cm
.
fselect
,
9
,
9
,
tp
,
c
)
end
function
cm
.
sprop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
sprfilter
,
tp
,
LOCATION_HAND
,
LOCATION_ONFIELD
,
LOCATION_GRAVE
,
0
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
sprfilter
,
tp
,
LOCATION_HAND
+
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
0
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_XMATERIAL
)
local
mg
=
g
:
SelectSubGroup
(
tp
,
cm
.
fselect
,
false
,
9
,
9
,
tp
,
c
)
local
sg
=
Group
.
CreateGroup
()
...
...
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