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
Ai
ygopro-222DIY-cards
Commits
7522a370
Commit
7522a370
authored
Jun 14, 2024
by
聖園ミカ
🐟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
duiduiduiduidui
parent
30ee3f3b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
74 additions
and
30 deletions
+74
-30
expansions/script/c21580001.lua
expansions/script/c21580001.lua
+17
-6
expansions/script/c21580002.lua
expansions/script/c21580002.lua
+19
-8
expansions/script/c21580003.lua
expansions/script/c21580003.lua
+19
-8
expansions/script/c21580004.lua
expansions/script/c21580004.lua
+19
-8
No files found.
expansions/script/c21580001.lua
View file @
7522a370
...
...
@@ -20,6 +20,7 @@ function cm.initial_effect(c)
e2
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e2
:
SetRange
(
LOCATION_EXTRA
)
e2
:
SetCondition
(
cm
.
hspcon
)
e2
:
SetTarget
(
cm
.
hsptg
)
e2
:
SetOperation
(
cm
.
hspop
)
c
:
RegisterEffect
(
e2
)
--special summon
...
...
@@ -53,17 +54,27 @@ function cm.splimit(e,se,sp,st)
return
not
e
:
GetHandler
():
IsLocation
(
LOCATION_EXTRA
)
or
aux
.
fuslimit
(
e
,
se
,
sp
,
st
)
end
function
cm
.
hspfilter
(
c
,
tp
,
sc
)
return
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
and
c
:
IsRace
(
RACE_PSYCHO
)
and
c
:
IsC
ontroler
(
tp
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
c
,
sc
)
>
0
and
c
:
IsC
anBeFusionMaterial
(
sc
,
SUMMON_TYPE_SPECIAL
)
return
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
and
c
:
IsRace
(
RACE_PSYCHO
)
and
c
:
IsControler
(
tp
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
c
,
sc
)
>
0
and
c
:
IsCanBeFusionMaterial
(
sc
,
SUMMON_TYPE_SPECIAL
)
end
function
cm
.
hspcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
return
Duel
.
CheckReleaseGroupEx
(
c
:
GetControler
(),
cm
.
hspfilter
,
2
,
REASON_SPSUMMON
,
false
,
nil
,
c
:
GetControler
(),
c
)
and
Duel
.
CheckLPCost
(
c
:
GetControler
(),
1000
)
return
Duel
.
CheckReleaseGroupEx
(
c
:
GetControler
(),
cm
.
hspfilter
,
2
,
REASON_SPSUMMON
,
false
,
nil
,
c
:
GetControler
(),
c
)
and
Duel
.
CheckLPCost
(
c
:
GetControler
(),
1000
)
end
function
cm
.
hsptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
c
)
local
g
=
Duel
.
GetReleaseGroup
(
tp
,
false
,
REASON_SPSUMMON
):
Filter
(
cm
.
hspfilter
,
nil
,
tp
,
c
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
tc
=
g
:
SelectUnselect
(
nil
,
tp
,
false
,
true
,
2
,
2
)
if
tc
then
e
:
SetLabelObject
(
tc
)
return
true
else
return
false
end
end
function
cm
.
hspop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
g
=
Duel
.
SelectReleaseGroupEx
(
tp
,
cm
.
hspfilter
,
2
,
2
,
REASON_SPSUMMON
,
false
,
nil
,
tp
,
c
)
c
:
SetMaterial
(
g
)
Duel
.
Release
(
g
,
REASON_SPSUMMON
)
local
tc
=
e
:
GetLabelObject
(
)
c
:
SetMaterial
(
Group
.
FromCards
(
tc
)
)
Duel
.
Release
(
tc
,
REASON_SPSUMMON
)
Duel
.
PayLPCost
(
tp
,
1000
)
end
function
cm
.
cfilter
(
c
,
tp
)
...
...
expansions/script/c21580002.lua
View file @
7522a370
...
...
@@ -20,6 +20,7 @@ function cm.initial_effect(c)
e2
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e2
:
SetRange
(
LOCATION_EXTRA
)
e2
:
SetCondition
(
cm
.
hspcon
)
e2
:
SetTarget
(
cm
.
hsptg
)
e2
:
SetOperation
(
cm
.
hspop
)
c
:
RegisterEffect
(
e2
)
--spsummon
...
...
@@ -53,18 +54,28 @@ function cm.splimit(e,se,sp,st)
return
not
e
:
GetHandler
():
IsLocation
(
LOCATION_EXTRA
)
or
aux
.
fuslimit
(
e
,
se
,
sp
,
st
)
end
function
cm
.
hspfilter
(
c
,
tp
,
sc
)
return
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
and
c
:
IsRace
(
RACE_PSYCHO
)
and
c
:
IsControler
(
tp
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
c
,
sc
)
>
0
and
c
:
IsCanBeFusionMaterial
(
sc
,
SUMMON_TYPE_SPECIAL
)
return
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
and
c
:
IsRace
(
RACE_PSYCHO
)
and
c
:
IsControler
(
tp
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
c
,
sc
)
>
0
and
c
:
IsCanBeFusionMaterial
(
sc
,
SUMMON_TYPE_SPECIAL
)
end
function
cm
.
hspcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
return
Duel
.
CheckReleaseGroupEx
(
c
:
GetControler
(),
cm
.
hspfilter
,
2
,
REASON_SPSUMMON
,
false
,
nil
,
c
:
GetControler
(),
c
)
and
Duel
.
CheckLPCost
(
c
:
GetControler
(),
1000
)
if
c
==
nil
then
return
true
end
return
Duel
.
CheckReleaseGroupEx
(
c
:
GetControler
(),
cm
.
hspfilter
,
2
,
REASON_SPSUMMON
,
false
,
nil
,
c
:
GetControler
(),
c
)
and
Duel
.
CheckLPCost
(
c
:
GetControler
(),
1000
)
end
function
cm
.
hsptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
c
)
local
g
=
Duel
.
GetReleaseGroup
(
tp
,
false
,
REASON_SPSUMMON
):
Filter
(
cm
.
hspfilter
,
nil
,
tp
,
c
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
tc
=
g
:
SelectUnselect
(
nil
,
tp
,
false
,
true
,
2
,
2
)
if
tc
then
e
:
SetLabelObject
(
tc
)
return
true
else
return
false
end
end
function
cm
.
hspop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
g
=
Duel
.
SelectReleaseGroupEx
(
tp
,
cm
.
hspfilter
,
2
,
2
,
REASON_SPSUMMON
,
false
,
nil
,
tp
,
c
)
c
:
SetMaterial
(
g
)
Duel
.
Release
(
g
,
REASON_SPSUMMON
)
Duel
.
PayLPCost
(
tp
,
1000
)
local
tc
=
e
:
GetLabelObject
(
)
c
:
SetMaterial
(
Group
.
FromCards
(
tc
)
)
Duel
.
Release
(
tc
,
REASON_SPSUMMON
)
Duel
.
PayLPCost
(
tp
,
1000
)
end
function
cm
.
drcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
rp
==
1
-
tp
...
...
expansions/script/c21580003.lua
View file @
7522a370
...
...
@@ -20,6 +20,7 @@ function cm.initial_effect(c)
e2
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e2
:
SetRange
(
LOCATION_EXTRA
)
e2
:
SetCondition
(
cm
.
hspcon
)
e2
:
SetTarget
(
cm
.
hsptg
)
e2
:
SetOperation
(
cm
.
hspop
)
c
:
RegisterEffect
(
e2
)
--special summon
...
...
@@ -54,18 +55,28 @@ function cm.splimit(e,se,sp,st)
return
not
e
:
GetHandler
():
IsLocation
(
LOCATION_EXTRA
)
or
aux
.
fuslimit
(
e
,
se
,
sp
,
st
)
end
function
cm
.
hspfilter
(
c
,
tp
,
sc
)
return
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
and
c
:
IsRace
(
RACE_PSYCHO
)
and
c
:
IsControler
(
tp
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
c
,
sc
)
>
0
and
c
:
IsCanBeFusionMaterial
(
sc
,
SUMMON_TYPE_SPECIAL
)
return
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
and
c
:
IsRace
(
RACE_PSYCHO
)
and
c
:
IsControler
(
tp
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
c
,
sc
)
>
0
and
c
:
IsCanBeFusionMaterial
(
sc
,
SUMMON_TYPE_SPECIAL
)
end
function
cm
.
hspcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
return
Duel
.
CheckReleaseGroupEx
(
c
:
GetControler
(),
cm
.
hspfilter
,
2
,
REASON_SPSUMMON
,
false
,
nil
,
c
:
GetControler
(),
c
)
and
Duel
.
CheckLPCost
(
c
:
GetControler
(),
1000
)
if
c
==
nil
then
return
true
end
return
Duel
.
CheckReleaseGroupEx
(
c
:
GetControler
(),
cm
.
hspfilter
,
2
,
REASON_SPSUMMON
,
false
,
nil
,
c
:
GetControler
(),
c
)
and
Duel
.
CheckLPCost
(
c
:
GetControler
(),
1000
)
end
function
cm
.
hsptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
c
)
local
g
=
Duel
.
GetReleaseGroup
(
tp
,
false
,
REASON_SPSUMMON
):
Filter
(
cm
.
hspfilter
,
nil
,
tp
,
c
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
tc
=
g
:
SelectUnselect
(
nil
,
tp
,
false
,
true
,
2
,
2
)
if
tc
then
e
:
SetLabelObject
(
tc
)
return
true
else
return
false
end
end
function
cm
.
hspop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
g
=
Duel
.
SelectReleaseGroupEx
(
tp
,
cm
.
hspfilter
,
2
,
2
,
REASON_SPSUMMON
,
false
,
nil
,
tp
,
c
)
c
:
SetMaterial
(
g
)
Duel
.
Release
(
g
,
REASON_SPSUMMON
)
Duel
.
PayLPCost
(
tp
,
1000
)
local
tc
=
e
:
GetLabelObject
(
)
c
:
SetMaterial
(
Group
.
FromCards
(
tc
)
)
Duel
.
Release
(
tc
,
REASON_SPSUMMON
)
Duel
.
PayLPCost
(
tp
,
1000
)
end
function
cm
.
drcfilter
(
c
,
tp
)
return
c
:
IsPreviousLocation
(
LOCATION_ONFIELD
)
and
c
:
IsPreviousControler
(
1
-
tp
)
and
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
...
...
expansions/script/c21580004.lua
View file @
7522a370
...
...
@@ -20,6 +20,7 @@ function cm.initial_effect(c)
e2
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e2
:
SetRange
(
LOCATION_EXTRA
)
e2
:
SetCondition
(
cm
.
hspcon
)
e2
:
SetTarget
(
cm
.
hsptg
)
e2
:
SetOperation
(
cm
.
hspop
)
c
:
RegisterEffect
(
e2
)
--to deck
...
...
@@ -54,18 +55,28 @@ function cm.splimit(e,se,sp,st)
return
not
e
:
GetHandler
():
IsLocation
(
LOCATION_EXTRA
)
or
aux
.
fuslimit
(
e
,
se
,
sp
,
st
)
end
function
cm
.
hspfilter
(
c
,
tp
,
sc
)
return
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
and
c
:
IsRace
(
RACE_PSYCHO
)
and
c
:
IsControler
(
tp
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
c
,
sc
)
>
0
and
c
:
IsCanBeFusionMaterial
(
sc
,
SUMMON_TYPE_SPECIAL
)
return
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
and
c
:
IsRace
(
RACE_PSYCHO
)
and
c
:
IsControler
(
tp
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
c
,
sc
)
>
0
and
c
:
IsCanBeFusionMaterial
(
sc
,
SUMMON_TYPE_SPECIAL
)
end
function
cm
.
hspcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
return
Duel
.
CheckReleaseGroupEx
(
c
:
GetControler
(),
cm
.
hspfilter
,
2
,
REASON_SPSUMMON
,
false
,
nil
,
c
:
GetControler
(),
c
)
and
Duel
.
CheckLPCost
(
c
:
GetControler
(),
1000
)
if
c
==
nil
then
return
true
end
return
Duel
.
CheckReleaseGroupEx
(
c
:
GetControler
(),
cm
.
hspfilter
,
2
,
REASON_SPSUMMON
,
false
,
nil
,
c
:
GetControler
(),
c
)
and
Duel
.
CheckLPCost
(
c
:
GetControler
(),
1000
)
end
function
cm
.
hsptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
c
)
local
g
=
Duel
.
GetReleaseGroup
(
tp
,
false
,
REASON_SPSUMMON
):
Filter
(
cm
.
hspfilter
,
nil
,
tp
,
c
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
tc
=
g
:
SelectUnselect
(
nil
,
tp
,
false
,
true
,
2
,
2
)
if
tc
then
e
:
SetLabelObject
(
tc
)
return
true
else
return
false
end
end
function
cm
.
hspop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
g
=
Duel
.
SelectReleaseGroupEx
(
tp
,
cm
.
hspfilter
,
2
,
2
,
REASON_SPSUMMON
,
false
,
nil
,
tp
,
c
)
c
:
SetMaterial
(
g
)
Duel
.
Release
(
g
,
REASON_SPSUMMON
)
Duel
.
PayLPCost
(
tp
,
1000
)
local
tc
=
e
:
GetLabelObject
(
)
c
:
SetMaterial
(
Group
.
FromCards
(
tc
)
)
Duel
.
Release
(
tc
,
REASON_SPSUMMON
)
Duel
.
PayLPCost
(
tp
,
1000
)
end
function
cm
.
drcfilter
(
c
,
tp
)
return
c
:
IsPreviousLocation
(
LOCATION_DECK
+
LOCATION_HAND
+
LOCATION_EXTRA
)
and
c
:
IsPreviousControler
(
1
-
tp
)
...
...
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