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
dad6478a
Commit
dad6478a
authored
Jul 25, 2021
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndyd
parent
18e42877
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
17 deletions
+19
-17
expansions/222DIY.cdb
expansions/222DIY.cdb
+0
-0
expansions/script/c1112203.lua
expansions/script/c1112203.lua
+6
-10
expansions/script/c20000001.lua
expansions/script/c20000001.lua
+6
-3
expansions/script/c20000013.lua
expansions/script/c20000013.lua
+6
-3
expansions/script/c47579900.lua
expansions/script/c47579900.lua
+1
-1
No files found.
expansions/222DIY.cdb
View file @
dad6478a
No preview for this file type
expansions/script/c1112203.lua
View file @
dad6478a
...
@@ -39,18 +39,14 @@ function c1112203.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -39,18 +39,14 @@ function c1112203.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
end
end
function
c1112203
.
filter
(
c
)
return
c
:
IsLevel
(
3
)
and
c
:
IsRace
(
RACE_SPELLCASTER
)
and
c
:
IsAttribute
(
ATTRIBUTE_EARTH
)
and
c
:
IsAbleToHand
()
end
function
c1112203
.
settg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c1112203
.
settg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c1112203
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToDeck
(
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TO
HAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TO
DECK
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
function
c1112203
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c1112203
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
c
=
e
:
GetHandler
()
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c1112203
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
c
:
IsRelateToEffect
(
e
)
then
if
g
:
GetCount
()
>
0
then
c
:
CancelToGrave
()
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoDeck
(
c
,
nil
,
0
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
end
end
\ No newline at end of file
expansions/script/c20000001.lua
View file @
dad6478a
...
@@ -86,9 +86,12 @@ function c20000001.op3(e,tp,eg,ep,ev,re,r,rp)
...
@@ -86,9 +86,12 @@ function c20000001.op3(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetValue
(
c20000001
.
val3
)
e1
:
SetValue
(
c20000001
.
val3
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
c
:
RegisterEffect
(
e2
,
true
)
e2
:
SetValue
(
1
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
c
:
RegisterEffect
(
e2
)
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
20000001
,
2
))
then
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
20000001
,
2
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_OPERATECARD
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_OPERATECARD
)
...
@@ -106,7 +109,7 @@ function c20000001.op3(e,tp,eg,ep,ev,re,r,rp)
...
@@ -106,7 +109,7 @@ function c20000001.op3(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
end
end
c
:
RegisterFlagEffect
(
0
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
20000001
,
0
))
c
:
RegisterFlagEffect
(
0
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
20000001
,
3
))
end
end
function
c20000001
.
val3
(
e
,
re
)
function
c20000001
.
val3
(
e
,
re
)
return
not
(
re
:
GetOwner
():
IsSetCard
(
0x5fd1
)
or
re
:
GetOwner
()
==
e
:
GetOwner
())
return
not
(
re
:
GetOwner
():
IsSetCard
(
0x5fd1
)
or
re
:
GetOwner
()
==
e
:
GetOwner
())
...
...
expansions/script/c20000013.lua
View file @
dad6478a
...
@@ -55,7 +55,7 @@ function c20000013.xyzf(c)
...
@@ -55,7 +55,7 @@ function c20000013.xyzf(c)
end
end
--e2
--e2
function
c20000013
.
conf2
(
c
)
function
c20000013
.
conf2
(
c
)
return
c
:
IsSetCard
(
0x5fd1
)
and
c
:
IsAbleToDeckOrExtraAsCost
()
and
not
c
:
IsCode
(
20000013
)
return
((
c
:
IsSetCard
(
0x5fd1
)
and
not
c
:
IsCode
(
20000013
)
and
c
:
IsFaceup
())
or
c
:
IsFacedown
())
and
c
:
IsAbleToDeckOrExtraAsCost
(
)
end
end
function
c20000013
.
con2
(
e
,
c
)
function
c20000013
.
con2
(
e
,
c
)
if
c
==
nil
then
return
true
end
if
c
==
nil
then
return
true
end
...
@@ -63,8 +63,11 @@ function c20000013.con2(e,c)
...
@@ -63,8 +63,11 @@ function c20000013.con2(e,c)
return
Duel
.
IsExistingMatchingCard
(
c20000013
.
conf2
,
tp
,
LOCATION_ONFIELD
,
0
,
3
,
nil
,
c
)
return
Duel
.
IsExistingMatchingCard
(
c20000013
.
conf2
,
tp
,
LOCATION_ONFIELD
,
0
,
3
,
nil
,
c
)
end
end
function
c20000013
.
op2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
function
c20000013
.
op2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
REMOVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
TODECK
)
local
g1
=
Duel
.
SelectMatchingCard
(
tp
,
c20000013
.
conf2
,
tp
,
LOCATION_ONFIELD
,
0
,
3
,
3
,
nil
,
c
)
local
g1
=
Duel
.
SelectMatchingCard
(
tp
,
c20000013
.
conf2
,
tp
,
LOCATION_ONFIELD
,
0
,
3
,
3
,
nil
,
c
)
for
tc
in
aux
.
Next
(
g
)
do
if
tc
:
IsOnField
()
and
tc
:
IsFacedown
()
then
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
end
end
c
:
SetMaterial
(
g1
)
c
:
SetMaterial
(
g1
)
Duel
.
SendtoDeck
(
g1
,
nil
,
2
,
REASON_COST
)
Duel
.
SendtoDeck
(
g1
,
nil
,
2
,
REASON_COST
)
end
end
...
@@ -74,7 +77,7 @@ function c20000013.tgf3(c)
...
@@ -74,7 +77,7 @@ function c20000013.tgf3(c)
end
end
function
c20000013
.
tg3
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c20000013
.
tg3
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c20000013
.
tgf3
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c20000013
.
tgf3
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
end
function
c20000013
.
op3
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c20000013
.
op3
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
...
...
expansions/script/c47579900.lua
View file @
dad6478a
...
@@ -74,7 +74,7 @@ function c47579900.rmfilter(c)
...
@@ -74,7 +74,7 @@ function c47579900.rmfilter(c)
return
c
:
IsType
(
TYPE_MONSTER
)
return
c
:
IsType
(
TYPE_MONSTER
)
end
end
function
c47579900
.
rmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c47579900
.
rmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
c47579900
.
rmfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
,
aux
.
ExceptThisCard
(
e
))
local
g
=
Duel
.
GetMatchingGroup
(
c47579900
.
rmfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
aux
.
ExceptThisCard
(
e
))
local
tg
=
g
:
GetMaxGroup
(
Card
.
GetAttack
)
local
tg
=
g
:
GetMaxGroup
(
Card
.
GetAttack
)
if
tg
:
GetCount
()
>
0
then
if
tg
:
GetCount
()
>
0
then
Duel
.
Remove
(
tg
,
POS_FACEDOWN
,
REASON_RULE
)
Duel
.
Remove
(
tg
,
POS_FACEDOWN
,
REASON_RULE
)
...
...
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