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
069aa9da
Commit
069aa9da
authored
Sep 06, 2021
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndyd
parent
91a019e9
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
127 additions
and
12 deletions
+127
-12
expansions/222DIY.cdb
expansions/222DIY.cdb
+0
-0
expansions/script/c16150008.lua
expansions/script/c16150008.lua
+2
-1
expansions/script/c16150017.lua
expansions/script/c16150017.lua
+1
-1
expansions/script/c16160012.lua
expansions/script/c16160012.lua
+113
-0
expansions/script/c75646458.lua
expansions/script/c75646458.lua
+2
-0
expansions/script/c85400100.lua
expansions/script/c85400100.lua
+0
-1
expansions/script/c85401440.lua
expansions/script/c85401440.lua
+2
-2
expansions/script/c85401480.lua
expansions/script/c85401480.lua
+5
-5
expansions/script/c85401660.lua
expansions/script/c85401660.lua
+2
-2
No files found.
expansions/222DIY.cdb
View file @
069aa9da
No preview for this file type
expansions/script/c16150008.lua
View file @
069aa9da
...
...
@@ -49,7 +49,7 @@ function cm.afilter(c)
return
rk
.
check
(
c
,
"DAIOU"
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsPublic
()
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
afilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONFIRM
)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
afilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
Duel
.
ConfirmCards
(
1
-
tp
,
sg
)
...
...
@@ -72,6 +72,7 @@ function cm.op(e,tp,eg,ep,ev,re,r,rp)
tc
:
RegisterFlagEffect
(
m
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
0
,
0
,
aux
.
Stringid
(
m
,
4
))
--serch
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
m
,
5
)
e2
:
SetCategory
(
CATEGORY_TOGRAVE
+
CATEGORY_EQUIP
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
...
...
expansions/script/c16150017.lua
View file @
069aa9da
...
...
@@ -71,7 +71,7 @@ function cm.op1(e,tp)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
sfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
Summon
(
tp
,
g
:
GetFirst
(),
true
,
nil
)
Duel
.
RegisterFlagEffect
(
tp
,
m
+
2
,
0
,
0
,
0
)
Duel
.
RegisterFlagEffect
(
tp
,
m
+
2
,
RESET_PHASE
+
PHASE_END
,
0
,
0
)
end
end
function
cm
.
val
(
e
,
re
)
...
...
expansions/script/c16160012.lua
0 → 100644
View file @
069aa9da
--吉尔·德·雷
local
m
=
16160012
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
c
:
EnableReviveLimit
()
aux
.
AddSynchroProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsSynchroType
,
TYPE_SYNCHRO
),
aux
.
NonTuner
(
Card
.
IsSynchroType
,
TYPE_FUSION
),
1
)
--
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
LOCATION_ONFIELD
,
0
)
e1
:
SetTarget
(
cm
.
inval
)
e1
:
SetValue
(
1
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_EFFECT
)
c
:
RegisterEffect
(
e2
)
--
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e3
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_TOKEN
)
e3
:
SetType
(
EFFECT_TYPE_IGNITION
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCountLimit
(
1
)
e3
:
SetCost
(
cm
.
cost
)
e3
:
SetTarget
(
cm
.
target
)
e3
:
SetOperation
(
cm
.
op
)
c
:
RegisterEffect
(
e3
)
end
c16160012
.
material_type
=
TYPE_SYNCHRO
function
cm
.
inval
(
e
,
c
)
return
c
:
IsType
(
TYPE_TOKEN
)
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckLPCost
(
tp
,
1000
)
end
Duel
.
PayLPCost
(
tp
,
1000
)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
1
and
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
16160013
,
nil
,
0x4011
,
3500
,
3500
,
10
,
RACE_SEASERPENT
,
ATTRIBUTE_WATER
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
2
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOKEN
,
nil
,
2
,
0
,
0
)
end
function
cm
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
1
and
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
16160013
,
nil
,
0x4011
,
3500
,
3500
,
10
,
RACE_SEASERPENT
,
ATTRIBUTE_WATER
)
then
for
i
=
1
,
2
do
local
token
=
Duel
.
CreateToken
(
tp
,
16160013
)
Duel
.
SpecialSummonStep
(
token
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
token
:
RegisterFlagEffect
(
m
,
RESET_EVENT
+
RESETS_STANDARD
,
0
,
0
,
0
)
end
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetDescription
(
aux
.
Stringid
(
16160012
,
2
))
e1
:
SetProperty
(
EFFECT_FLAG_CLIENT_HINT
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_CHAIN_SOLVING
)
e1
:
SetCountLimit
(
1
)
e1
:
SetOperation
(
cm
.
desop
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
SpecialSummonComplete
()
end
end
function
cm
.
filter1
(
c
)
return
c
:
IsType
(
TYPE_TOKEN
)
and
c
:
GetFlagEffect
(
m
)
>
0
end
function
cm
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
Duel
.
IsExistingMatchingCard
(
cm
.
filter1
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
then
e
:
Reset
()
end
local
tep
=
Duel
.
TossCoin
(
tp
,
1
)
local
rev
=
Duel
.
GetCurrentChain
()
local
te
,
cp
=
Duel
.
GetChainInfo
(
rev
,
CHAININFO_TRIGGERING_EFFECT
,
CHAININFO_TRIGGERING_PLAYER
)
if
cp
==
tep
then
return
end
local
condition
=
te
:
GetCondition
()
local
cost
=
te
:
GetCost
()
local
target
=
te
:
GetTarget
()
local
operation
=
te
:
GetOperation
()
local
ceg
,
cep
,
cev
,
cre
,
cr
,
crp
=
Duel
.
GetChainEvent
(
rev
)
if
(
not
condition
or
condition
(
te
,
tep
,
ceg
,
cep
,
cev
,
cre
,
cr
,
crp
))
and
(
not
cost
or
cost
(
te
,
tep
,
ceg
,
cep
,
cev
,
cre
,
cr
,
crp
,
0
))
and
(
not
target
or
target
(
te
,
tep
,
ceg
,
cep
,
cev
,
cre
,
cr
,
crp
,
0
))
then
Duel
.
Hint
(
HINT_MESSAGE
,
0
,
aux
.
Stringid
(
m
,
2
))
Duel
.
Hint
(
HINT_MESSAGE
,
0
,
aux
.
Stringid
(
m
,
2
))
Duel
.
ClearTargetCard
()
te
:
SetProperty
(
te
:
GetProperty
())
if
cost
then
cost
(
te
,
tep
,
ceg
,
cep
,
cev
,
cre
,
cr
,
crp
,
1
)
end
if
target
then
target
(
te
,
tep
,
ceg
,
cep
,
cev
,
cre
,
cr
,
crp
,
1
)
end
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
if
g
and
g
:
GetCount
()
>
0
then
local
tg
=
g
:
GetFirst
()
while
tg
do
tg
:
CreateEffectRelation
(
te
)
tg
=
g
:
GetNext
()
end
end
Duel
.
ChangeChainOperation
(
rev
,
cm
.
op2
)
if
operation
then
operation
(
te
,
tep
,
ceg
,
cep
,
cev
,
cre
,
cr
,
crp
)
end
if
g
and
g
:
GetCount
()
>
0
then
tg
=
g
:
GetFirst
()
while
tg
do
tg
:
ReleaseEffectRelation
(
te
)
tg
=
g
:
GetNext
()
end
end
else
Duel
.
Hint
(
HINT_MESSAGE
,
0
,
aux
.
Stringid
(
m
,
3
))
Duel
.
Hint
(
HINT_MESSAGE
,
1
,
aux
.
Stringid
(
m
,
3
))
Duel
.
ChangeChainOperation
(
rev
,
cm
.
op2
)
end
end
function
cm
.
op2
(
e
,
tp
)
return
false
end
----
\ No newline at end of file
expansions/script/c75646458.lua
View file @
069aa9da
...
...
@@ -17,6 +17,7 @@ function cm.initial_effect(c)
c
:
RegisterEffect
(
e1
)
--disable summon
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e2
:
SetCategory
(
CATEGORY_DISABLE_SUMMON
+
CATEGORY_DESTROY
+
CATEGORY_DRAW
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
EVENT_SUMMON
)
...
...
@@ -68,6 +69,7 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoGrave
(
tc
,
REASON_COST
+
REASON_DISCARD
)
else
e
:
SetLabel
(
0
)
Duel
.
SendtoGrave
(
tc
,
REASON_COST
+
REASON_DISCARD
)
end
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
expansions/script/c85400100.lua
View file @
069aa9da
...
...
@@ -85,7 +85,6 @@ function c85400100.zx(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e1
)
tc
:
RegisterFlagEffect
(
85400000
,
RESET_EVENT
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
Duel
.
BreakEffect
()
Duel
.
Remove
(
c
,
POS_FACEUP
,
REASON_EFFECT
)
end
end
...
...
expansions/script/c85401440.lua
View file @
069aa9da
...
...
@@ -34,7 +34,7 @@ function c85401440.initial_effect(c)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
85401440
,
1
))
e4
:
SetCategory
(
CATEGORY_SEARCH
)
e4
:
SetProperty
(
EFFECT_
CANNOT_DISABLE
+
EFFECT
_CANNOT_INACTIVATE
)
e4
:
SetProperty
(
EFFECT_
FLAG_CANNOT_DISABLE
+
EFFECT_FLAG
_CANNOT_INACTIVATE
)
e4
:
SetType
(
EFFECT_TYPE_IGNITION
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetCountLimit
(
1
,
85401440
+
EFFECT_COUNT_CODE_DUEL
)
...
...
@@ -88,7 +88,7 @@ function c85401440.op(e,tp,eg,ep,ev,re,r,rp)
Duel
.
BreakEffect
()
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_POSCHANGE
)
local
g
=
Duel
.
Select
Target
(
tp
,
c85401440
.
gl
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
local
g
=
Duel
.
Select
MatchingCard
(
tp
,
c85401440
.
gl
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
local
tc
=
g
:
GetFirst
()
if
tc
and
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
ChangePosition
(
tc
,
POS_FACEUP_DEFENSE
,
POS_FACEUP_ATTACK
,
POS_FACEUP_ATTACK
,
POS_FACEUP_ATTACK
)
...
...
expansions/script/c85401480.lua
View file @
069aa9da
...
...
@@ -34,7 +34,7 @@ function c85401480.initial_effect(c)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
85401480
,
1
))
e4
:
SetCategory
(
CATEGORY_SEARCH
)
e4
:
SetProperty
(
EFFECT_
CANNOT_DISABLE
+
EFFECT
_CANNOT_INACTIVATE
)
e4
:
SetProperty
(
EFFECT_
FLAG_CANNOT_DISABLE
+
EFFECT_FLAG
_CANNOT_INACTIVATE
)
e4
:
SetType
(
EFFECT_TYPE_IGNITION
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetCountLimit
(
1
,
85401480
+
EFFECT_COUNT_CODE_DUEL
)
...
...
@@ -70,12 +70,12 @@ function c85401480.gllq(c,e)
end
function
c85401480
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c85401480
.
gllq
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExisting
MatchingCard
(
c85401480
.
gllq
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
,
e
)
end
if
chk
==
0
then
return
Duel
.
IsExisting
Target
(
c85401480
.
gllq
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
,
e
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
nil
,
1
,
0
,
0
)
end
function
c85401480
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
Select
MatchingCard
(
tp
,
c85401480
.
gllq
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
,
e
)
local
g
=
Duel
.
Select
Target
(
tp
,
c85401480
.
gllq
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
,
e
)
if
g
:
GetCount
()
>
0
then
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
end
...
...
@@ -84,11 +84,11 @@ function c85401480.tgg(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
true
end
end
function
c85401480
.
opp
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Damage
(
tp
,
6
00
,
REASON_EFFECT
)
Duel
.
Damage
(
tp
,
8
00
,
REASON_EFFECT
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetValue
(
1
0
00
)
e1
:
SetValue
(
1
2
00
)
e1
:
SetReset
(
RESET_EVENT
+
RESET_PHASE
+
PHASE_END
)
c
:
RegisterEffect
(
e1
)
end
...
...
expansions/script/c85401660.lua
View file @
069aa9da
...
...
@@ -88,12 +88,12 @@ function c85401660.gllq(c,e)
end
function
c85401660
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c85401660
.
gllq
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExisting
MatchingCard
(
c85401660
.
gllq
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
,
e
)
end
if
chk
==
0
then
return
Duel
.
IsExisting
Target
(
c85401660
.
gllq
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
,
e
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
nil
,
1
,
0
,
0
)
end
function
c85401660
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
Select
MatchingCard
(
tp
,
c85401660
.
gllq
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
,
e
)
local
g
=
Duel
.
Select
Target
(
tp
,
c85401660
.
gllq
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
,
e
)
if
g
:
GetCount
()
>
0
then
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
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