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
8251ffc2
Commit
8251ffc2
authored
Aug 14, 2022
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
E
parent
8aea06ae
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
87 additions
and
61 deletions
+87
-61
expansions/script/c12895006.lua
expansions/script/c12895006.lua
+8
-0
expansions/script/c12895011.lua
expansions/script/c12895011.lua
+29
-17
expansions/script/c12895012.lua
expansions/script/c12895012.lua
+28
-17
expansions/script/c33300362.lua
expansions/script/c33300362.lua
+2
-2
expansions/script/c33711107.lua
expansions/script/c33711107.lua
+4
-10
expansions/script/c92369013.lua
expansions/script/c92369013.lua
+16
-15
No files found.
expansions/script/c12895006.lua
View file @
8251ffc2
...
@@ -58,6 +58,14 @@ function c12895006.initial_effect(c)
...
@@ -58,6 +58,14 @@ function c12895006.initial_effect(c)
ge1
:
SetOperation
(
aux
.
sumreg
)
ge1
:
SetOperation
(
aux
.
sumreg
)
Duel
.
RegisterEffect
(
ge1
,
0
)
Duel
.
RegisterEffect
(
ge1
,
0
)
end
end
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
e0
:
SetCode
(
EFFECT_SPSUMMON_COST
)
e0
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e0
:
SetTargetRange
(
1
,
0
)
e0
:
SetCost
(
cm
.
spncost
)
e0
:
SetOperation
(
cm
.
costop
)
c
:
RegisterEffect
(
e0
)
Duel
.
AddCustomActivityCounter
(
m
,
ACTIVITY_SPSUMMON
,
cm
.
counterfilter
)
Duel
.
AddCustomActivityCounter
(
m
,
ACTIVITY_SPSUMMON
,
cm
.
counterfilter
)
end
end
function
cm
.
negcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
negcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
expansions/script/c12895011.lua
View file @
8251ffc2
...
@@ -53,11 +53,15 @@ function c12895011.initial_effect(c)
...
@@ -53,11 +53,15 @@ function c12895011.initial_effect(c)
ge1
:
SetOperation
(
aux
.
sumreg
)
ge1
:
SetOperation
(
aux
.
sumreg
)
Duel
.
RegisterEffect
(
ge1
,
0
)
Duel
.
RegisterEffect
(
ge1
,
0
)
end
end
local
e9
=
Effect
.
CreateEffect
(
c
)
local
e0
=
Effect
.
CreateEffect
(
c
)
e9
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
e9
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e0
:
SetCode
(
EFFECT_SPSUMMON_COST
)
e9
:
SetOperation
(
cm
.
rcop
)
e0
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
c
:
RegisterEffect
(
e9
)
e0
:
SetTargetRange
(
1
,
0
)
e0
:
SetCost
(
cm
.
spncost
)
e0
:
SetOperation
(
cm
.
costop
)
c
:
RegisterEffect
(
e0
)
Duel
.
AddCustomActivityCounter
(
m
,
ACTIVITY_SPSUMMON
,
cm
.
counterfilter
)
end
end
function
cm
.
sprfilter
(
c
)
function
cm
.
sprfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xa74
)
and
c
:
IsAbleToRemoveAsCost
()
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xa74
)
and
c
:
IsAbleToRemoveAsCost
()
...
@@ -117,16 +121,24 @@ function cm.retop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -117,16 +121,24 @@ function cm.retop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
--效果5
--效果5
function
cm
.
rcop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
function
cm
.
spncost
(
e
,
c
,
tp
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
return
Duel
.
GetCustomActivityCount
(
m
,
tp
,
ACTIVITY_SPSUMMON
)
==
0
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_OATH
)
end
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
function
cm
.
costop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e1
:
SetTargetRange
(
1
,
0
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetTarget
(
cm
.
splimit
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_OATH
)
Duel
.
RegisterEffect
(
e1
,
tp
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetLabelObject
(
e
)
e1
:
SetTarget
(
cm
.
splimit
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
cm
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
,
se
)
return
not
c
:
IsSetCard
(
0xa74
)
end
end
function
cm
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
,
se
)
function
cm
.
counterfilter
(
c
)
return
not
c
:
IsSetCard
(
0xa74
)
return
c
:
IsSetCard
(
0xa74
)
end
end
\ No newline at end of file
\ No newline at end of file
expansions/script/c12895012.lua
View file @
8251ffc2
...
@@ -36,11 +36,15 @@ function c12895012.initial_effect(c)
...
@@ -36,11 +36,15 @@ function c12895012.initial_effect(c)
ge1
:
SetOperation
(
aux
.
sumreg
)
ge1
:
SetOperation
(
aux
.
sumreg
)
Duel
.
RegisterEffect
(
ge1
,
0
)
Duel
.
RegisterEffect
(
ge1
,
0
)
end
end
local
e9
=
Effect
.
CreateEffect
(
c
)
local
e0
=
Effect
.
CreateEffect
(
c
)
e9
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
e9
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e0
:
SetCode
(
EFFECT_SPSUMMON_COST
)
e9
:
SetOperation
(
cm
.
rcop
)
e0
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
c
:
RegisterEffect
(
e9
)
e0
:
SetTargetRange
(
1
,
0
)
e0
:
SetCost
(
cm
.
spncost
)
e0
:
SetOperation
(
cm
.
costop
)
c
:
RegisterEffect
(
e0
)
Duel
.
AddCustomActivityCounter
(
m
,
ACTIVITY_SPSUMMON
,
cm
.
counterfilter
)
end
end
function
cm
.
matfilter
(
c
)
function
cm
.
matfilter
(
c
)
return
c
:
IsSummonType
(
SUMMON_TYPE_SPECIAL
)
and
c
:
IsType
(
TYPE_MONSTER
)
return
c
:
IsSummonType
(
SUMMON_TYPE_SPECIAL
)
and
c
:
IsType
(
TYPE_MONSTER
)
...
@@ -80,17 +84,24 @@ end
...
@@ -80,17 +84,24 @@ end
function
cm
.
rcop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
spncost
(
e
,
c
,
tp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
return
Duel
.
GetCustomActivityCount
(
m
,
tp
,
ACTIVITY_SPSUMMON
)
==
0
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
end
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_OATH
)
function
cm
.
costop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetTarget
(
cm
.
splimit
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_OATH
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
Duel
.
RegisterEffect
(
e1
,
tp
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetLabelObject
(
e
)
e1
:
SetTarget
(
cm
.
splimit
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
cm
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
,
se
)
return
not
c
:
IsSetCard
(
0xa74
)
end
function
cm
.
counterfilter
(
c
)
return
c
:
IsSetCard
(
0xa74
)
end
end
function
cm
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
,
se
)
return
not
c
:
IsSetCard
(
0xa74
)
end
--特招限制
--特招限制
expansions/script/c33300362.lua
View file @
8251ffc2
...
@@ -15,7 +15,7 @@ function c33300362.initial_effect(c)
...
@@ -15,7 +15,7 @@ function c33300362.initial_effect(c)
--to hand
--to hand
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_TOHAND
)
--e2:SetCategory(CATEGORY_TOGRAVE
)
e2
:
SetCountLimit
(
1
,
m
)
e2
:
SetCountLimit
(
1
,
m
)
e2
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e2
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
...
@@ -32,7 +32,7 @@ function cm.filter2(c)
...
@@ -32,7 +32,7 @@ function cm.filter2(c)
return
c
:
IsSetCard
(
0x563
)
and
c
:
IsAbleToHand
()
and
c
:
IsType
(
TYPE_MONSTER
)
return
c
:
IsSetCard
(
0x563
)
and
c
:
IsAbleToHand
()
and
c
:
IsType
(
TYPE_MONSTER
)
end
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c
hkc
:
IsControler
(
1
-
tp
)
and
c
m
.
filter
(
chkc
)
and
Duel
.
IsExistingMatchingCard
(
cm
.
filter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
cm
.
filter
(
chkc
)
and
Duel
.
IsExistingMatchingCard
(
cm
.
filter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
cm
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
cm
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_POSCHANGE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_POSCHANGE
)
local
g
=
Duel
.
SelectTarget
(
tp
,
cm
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
cm
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
...
...
expansions/script/c33711107.lua
View file @
8251ffc2
...
@@ -66,7 +66,8 @@ function cm.initial_effect(c)
...
@@ -66,7 +66,8 @@ function cm.initial_effect(c)
e5
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e5
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e5
:
SetRange
(
LOCATION_FZONE
)
e5
:
SetRange
(
LOCATION_FZONE
)
e5
:
SetTargetRange
(
1
,
1
)
e5
:
SetTargetRange
(
1
,
1
)
e5
:
SetValue
(
cm
.
drval
)
e5
:
SetCondition
(
cm
.
drcon
)
e5
:
SetValue
(
2
)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
--recover
--recover
local
e6
=
Effect
.
CreateEffect
(
c
)
local
e6
=
Effect
.
CreateEffect
(
c
)
...
@@ -142,15 +143,8 @@ function cm.sumval(e,c)
...
@@ -142,15 +143,8 @@ function cm.sumval(e,c)
local
sp
=
cm
.
GetNorthPlayer
(
e
:
GetHandler
(),
e
:
GetHandlerPlayer
())
local
sp
=
cm
.
GetNorthPlayer
(
e
:
GetHandler
(),
e
:
GetHandlerPlayer
())
return
c
:
IsControler
(
sp
)
return
c
:
IsControler
(
sp
)
end
end
function
cm
.
drval
(
e
)
function
cm
.
drcon
(
e
)
local
tp
=
Duel
.
GetTurnPlayer
()
return
Duel
.
GetTurnPlayer
()
=
1
-
cm
.
GetNorthPlayer
(
e
:
GetHandler
(),
e
:
GetHandlerPlayer
())
local
sp
=
cm
.
GetNorthPlayer
(
e
:
GetHandler
(),
e
:
GetHandlerPlayer
())
local
dr
=
Duel
.
GetDrawCount
(
tp
)
if
tp
==
1
-
sp
then
return
2
else
return
dr
end
end
end
function
cm
.
rmcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
rmcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
sp
=
cm
.
GetNorthPlayer
(
e
:
GetHandler
(),
tp
)
local
sp
=
cm
.
GetNorthPlayer
(
e
:
GetHandler
(),
tp
)
...
...
expansions/script/c92369013.lua
View file @
8251ffc2
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
local
m
=
92369013
local
m
=
92369013
local
cm
=
_G
[
"c"
..
m
]
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
function
cm
.
initial_effect
(
c
)
aux
.
AddCodeList
(
c
,
92369014
)
aux
.
AddCodeList
(
c
,
92369014
)
--activate
--activate
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
...
@@ -18,7 +18,7 @@ aux.AddCodeList(c,92369014)
...
@@ -18,7 +18,7 @@ aux.AddCodeList(c,92369014)
e2
:
SetTarget
(
cm
.
sptg
)
e2
:
SetTarget
(
cm
.
sptg
)
e2
:
SetOperation
(
cm
.
spop
)
e2
:
SetOperation
(
cm
.
spop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--discard deck
--discard deck
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
m
,
2
))
e3
:
SetDescription
(
aux
.
Stringid
(
m
,
2
))
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
...
@@ -28,6 +28,7 @@ aux.AddCodeList(c,92369014)
...
@@ -28,6 +28,7 @@ aux.AddCodeList(c,92369014)
e3
:
SetRange
(
LOCATION_FZONE
)
e3
:
SetRange
(
LOCATION_FZONE
)
e3
:
SetOperation
(
cm
.
operation
)
e3
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
cm
.
diyep_effect
=
e3
end
end
function
cm
.
cost2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
cost2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
@@ -58,17 +59,17 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -58,17 +59,17 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
local
ss
=
Duel
.
GetMatchingGroupCount
(
Card
.
IsCode
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
,
92369014
)
local
ss
=
Duel
.
GetMatchingGroupCount
(
Card
.
IsCode
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
,
92369014
)
if
Duel
.
IsExistingMatchingCard
(
nil
,
tp
,
0
,
LOCATION_ONFIELD
,
ss
,
nil
)
then
if
Duel
.
IsExistingMatchingCard
(
nil
,
tp
,
0
,
LOCATION_ONFIELD
,
ss
,
nil
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
nil
,
tp
,
0
,
LOCATION_ONFIELD
,
ss
,
ss
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
nil
,
tp
,
0
,
LOCATION_ONFIELD
,
ss
,
ss
,
nil
)
if
#
g
>
0
then
if
#
g
>
0
then
Duel
.
HintSelection
(
g
)
Duel
.
HintSelection
(
g
)
local
ss2
=
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
local
ss2
=
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
if
ss2
>
0
then
if
ss2
>
0
then
Duel
.
Draw
(
tp
,
ss2
,
REASON_EFFECT
)
Duel
.
Draw
(
tp
,
ss2
,
REASON_EFFECT
)
end
end
end
end
end
end
end
\ No newline at end of file
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