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
Nguyễn Anh Kiệt
ygopro-222DIY-cards
Commits
a1c1d2a2
Commit
a1c1d2a2
authored
May 15, 2024
by
聖園ミカ
🐟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
str
parent
d1228314
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
86 additions
and
29 deletions
+86
-29
expansions/script/c64832035.lua
expansions/script/c64832035.lua
+2
-1
expansions/script/c64832037.lua
expansions/script/c64832037.lua
+84
-28
No files found.
expansions/script/c64832035.lua
View file @
a1c1d2a2
...
@@ -33,8 +33,9 @@ function cm.otcon(e,c,minc)
...
@@ -33,8 +33,9 @@ function cm.otcon(e,c,minc)
return
c
:
IsLevelAbove
(
5
)
and
minc
<=
1
and
#
mg
>
0
return
c
:
IsLevelAbove
(
5
)
and
minc
<=
1
and
#
mg
>
0
end
end
function
cm
.
otop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
function
cm
.
otop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
rsop
.
SelectRemove
(
tp
,
cm
.
otfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,{
POS_FACEUP
,
REASON_COST
})
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
rg
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
otfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
)
Duel
.
Remove
(
rg
,
POS_FACEUP
,
REASON_EFFECT
)
end
end
function
cm
.
setcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
setcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
expansions/script/c64832037.lua
View file @
a1c1d2a2
--「星光歌剧」台本-舞台少女心得
--「星光歌剧」台本-舞台少女心得
Duel
.
LoadScript
(
"c64839999.lua"
)
local
s
,
id
=
GetID
()
local
m
,
cm
=
rscf
.
DefineCard
(
64832037
)
function
s
.
initial_effect
(
c
)
function
cm
.
initial_effect
(
c
)
--
local
e1
=
rsef
.
ACT
(
c
)
local
e2
=
rsef
.
I
(
c
,{
m
,
0
},{
1
,
m
},
nil
,
nil
,
LOCATION_SZONE
,
nil
,
rscost
.
cost
(
cm
.
tgfilter
,
"tg"
,
rsloc
.
hd
),
nil
,
cm
.
limitop
)
local
e3
=
rsef
.
FV_INDESTRUCTABLE
(
c
,
"ct"
,
nil
,
aux
.
TargetBoolFunction
(
Card
.
IsSummonType
,
SUMMON_TYPE_ADVANCE
),{
LOCATION_MZONE
,
0
},
nil
,
nil
,
"sa"
)
local
e4
=
rsef
.
FTO
(
c
,
EVENT_PHASE
+
PHASE_END
,{
m
,
1
},{
1
,
m
+
1
},
nil
,
"tg"
,
LOCATION_SZONE
,
nil
,
nil
,
rstg
.
target
(
cm
.
setfilter
,
nil
,
LOCATION_GRAVE
),
cm
.
setop
)
end
function
cm
.
setfilter
(
c
)
return
c
:
IsSetCard
(
0x6410
)
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsSSetable
()
end
function
cm
.
setop
(
e
,
tp
)
local
c
=
rscf
.
GetSelf
(
e
)
local
tc
=
rscf
.
GetTargetCard
()
if
not
c
or
not
tc
or
Duel
.
SSet
(
tp
,
tc
)
<=
0
then
return
end
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EFFECT_LEAVE_FIELD_REDIRECT
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_REDIRECT
)
c
:
RegisterEffect
(
e1
)
e1
:
SetValue
(
LOCATION_REMOVED
)
--
tc
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetCountLimit
(
1
,
id
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetCost
(
s
.
cost2
)
e2
:
SetOperation
(
s
.
op2
)
c
:
RegisterEffect
(
e2
)
--indes
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
e4
:
SetCode
(
EFFECT_INDESTRUCTABLE_COUNT
)
e4
:
SetRange
(
LOCATION_SZONE
)
e4
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e4
:
SetTarget
(
s
.
indtg
)
e4
:
SetValue
(
s
.
indct
)
c
:
RegisterEffect
(
e4
)
--
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetDescription
(
aux
.
Stringid
(
id
,
1
))
e5
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e5
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e5
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e5
:
SetRange
(
LOCATION_SZONE
)
e5
:
SetCountLimit
(
1
,
id
+
10000
)
e5
:
SetTarget
(
s
.
settg
)
e5
:
SetOperation
(
s
.
setop
)
c
:
RegisterEffect
(
e5
)
end
end
function
cm
.
tgfilter
(
c
)
--
function
s
.
thcfilter
(
c
)
return
c
:
IsSetCard
(
0x6410
)
and
c
:
IsAbleToGraveAsCost
()
return
c
:
IsSetCard
(
0x6410
)
and
c
:
IsAbleToGraveAsCost
()
end
end
function
cm
.
limitop
(
e
,
tp
)
function
s
.
cost2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
not
rscf
.
GetSelf
(
e
)
then
return
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
thcfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
thcfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
end
function
s
.
tfilter2
(
c
)
return
c
:
IsAttribute
(
ATTRIBUTE_EARTH
)
and
c
:
IsSummonable
(
true
,
nil
)
end
function
s
.
op2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e1
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e1
:
SetOperation
(
cm
.
sumsuc
)
e1
:
SetOperation
(
s
.
sumsuc
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
end
function
cm
.
sumsuc
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
sumsuc
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
eg
:
GetFirst
():
IsSummonType
(
SUMMON_TYPE_ADVANCE
)
then
return
end
if
not
eg
:
GetFirst
():
IsSummonType
(
SUMMON_TYPE_ADVANCE
)
then
return
end
Duel
.
SetChainLimitTillChainEnd
(
cm
.
limit
)
Duel
.
SetChainLimitTillChainEnd
(
s
.
limit
)
end
end
function
cm
.
limit
(
e
,
ep
,
tp
)
function
s
.
limit
(
e
,
ep
,
tp
)
return
ep
==
tp
return
ep
==
tp
end
end
--
function
s
.
indtg
(
e
,
c
)
return
c
:
IsSummonType
(
SUMMON_TYPE_ADVANCE
)
end
function
s
.
indct
(
e
,
re
,
r
,
rp
)
if
bit
.
band
(
r
,
REASON_BATTLE
+
REASON_EFFECT
)
~=
0
then
return
1
else
return
0
end
end
--
function
s
.
setfilter
(
c
,
ft
)
return
c
:
IsSetCard
(
0x6410
)
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsSSetable
(
true
)
and
(
c
:
IsType
(
TYPE_FIELD
)
or
ft
>
0
)
end
function
s
.
settg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
s
.
setfilter
(
chkc
,
ft
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
s
.
setfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
ft
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SET
)
local
g
=
Duel
.
SelectTarget
(
tp
,
s
.
setfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
ft
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_LEAVE_GRAVE
,
g
,
1
,
0
,
0
)
end
function
s
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
SSet
(
tp
,
tc
)
~=
0
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_LEAVE_FIELD_REDIRECT
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_REDIRECT
)
e1
:
SetValue
(
LOCATION_REMOVED
)
tc
:
RegisterEffect
(
e1
,
true
)
end
end
\ No newline at end of file
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