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
271b07d9
Commit
271b07d9
authored
Jun 24, 2024
by
聖園ミカ
🐟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
byd
parent
6502e355
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
25 additions
and
19 deletions
+25
-19
expansions/script/c12400072.lua
expansions/script/c12400072.lua
+1
-0
expansions/script/c12400074.lua
expansions/script/c12400074.lua
+1
-0
expansions/script/c12400089.lua
expansions/script/c12400089.lua
+1
-0
expansions/script/c17033190.lua
expansions/script/c17033190.lua
+3
-3
expansions/script/c47344556.lua
expansions/script/c47344556.lua
+3
-3
expansions/script/c47344563.lua
expansions/script/c47344563.lua
+1
-1
expansions/script/c47344569.lua
expansions/script/c47344569.lua
+2
-2
expansions/script/c47344573.lua
expansions/script/c47344573.lua
+2
-2
expansions/script/c47344578.lua
expansions/script/c47344578.lua
+2
-2
expansions/script/c47344579.lua
expansions/script/c47344579.lua
+1
-1
expansions/script/c47344582.lua
expansions/script/c47344582.lua
+2
-2
expansions/script/c50218540.lua
expansions/script/c50218540.lua
+1
-1
expansions/script/c65035123.lua
expansions/script/c65035123.lua
+4
-1
expansions/script/c65035127.lua
expansions/script/c65035127.lua
+1
-1
No files found.
expansions/script/c12400072.lua
View file @
271b07d9
...
...
@@ -132,6 +132,7 @@ function c12400072.op5(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c12400072
.
op6
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
...
...
expansions/script/c12400074.lua
View file @
271b07d9
...
...
@@ -69,6 +69,7 @@ function c12400074.con3(e,c)
return
Duel
.
IsExistingMatchingCard
(
c12400074
.
e
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
function
c12400074
.
op5
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
...
...
expansions/script/c12400089.lua
View file @
271b07d9
...
...
@@ -87,6 +87,7 @@ function c12400089.tglimit(e,c)
return
c
~=
e
:
GetHandler
()
end
function
c12400089
.
op6
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
...
...
expansions/script/c17033190.lua
View file @
271b07d9
...
...
@@ -26,9 +26,9 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
c
=
e
:
GetHandler
()
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
s
.
filter
(
chkc
)
and
chkc
~=
c
end
if
chk
==
0
then
local
zone
=
LOCATION_
DECK
local
zone
=
LOCATION_
HAND
+
LOCATION_GRAVE
if
Duel
.
IsExistingMatchingCard
(
s
.
filter1
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
tp
)
then
zone
=
LOCATION_
DECK
+
LOCATION_EXTRA
end
zone
=
LOCATION_
HAND
+
LOCATION_GRAVE
+
LOCATION_EXTRA
end
return
Duel
.
IsExistingTarget
(
s
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
c
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
s
.
eqfilter
,
tp
,
zone
,
0
,
1
,
nil
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
...
...
@@ -40,7 +40,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsFacedown
()
or
not
tc
:
IsRelateToEffect
(
e
)
then
return
end
local
zone
=
LOCATION_
DECK
if
tc
:
GetCode
()
==
17033120
then
zone
=
LOCATION_DECK
+
LOCATION_EXTRA
end
local
zone
=
LOCATION_
HAND
+
LOCATION_GRAVE
if
tc
:
GetCode
()
==
17033120
then
zone
=
LOCATION_HAND
+
LOCATION_GRAVE
+
LOCATION_EXTRA
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
local
ec
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
eqfilter
,
tp
,
zone
,
0
,
1
,
1
,
nil
,
tp
):
GetFirst
()
if
ec
then
...
...
expansions/script/c47344556.lua
View file @
271b07d9
...
...
@@ -67,16 +67,16 @@ function s.ssop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
s
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
chkc
then
return
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsLocation
(
LOCATION_ONFIELD
)
and
chkc
:
IsCanAddCounter
(
0x
ac
f
,
1
)
end
if
chkc
then
return
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsLocation
(
LOCATION_ONFIELD
)
and
chkc
:
IsCanAddCounter
(
0x
ca
f
,
1
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsCanAddCounter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
,
0xcaf
,
1
)
end
return
e
:
GetHandler
():
IsLocation
(
LOCATION_GRAVE
)
and
r
==
REASON_SYNCHRO
end
function
s
.
thfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x6ca4
)
and
c
:
IsType
(
TYPE_SPELL
)
and
c
:
IsCanAddCounter
(
0x
ac
f
,
1
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x6ca4
)
and
c
:
IsType
(
TYPE_SPELL
)
and
c
:
IsCanAddCounter
(
0x
ca
f
,
1
)
end
function
s
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
s
.
thfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
nil
)
for
tc
in
aux
.
Next
(
g
)
do
tc
:
AddCounter
(
0x
ac
f
,
1
)
tc
:
AddCounter
(
0x
ca
f
,
1
)
end
end
\ No newline at end of file
expansions/script/c47344563.lua
View file @
271b07d9
...
...
@@ -44,7 +44,7 @@ function s.con1(e,tp,eg,ep,ev,re,r,rp)
return
(
c
:
IsSetCard
(
0x9ca4
)
or
c
:
IsSetCard
(
0x6ca4
))
and
c
:
IsPreviousLocation
(
LOCATION_EXTRA
)
end
function
s
.
counter
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetHandler
():
AddCounter
(
0x
ac
f
,
1
,
true
)
e
:
GetHandler
():
AddCounter
(
0x
ca
f
,
1
,
true
)
end
function
s
.
tkcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsCanRemoveCounter
(
tp
,
1
,
0
,
0xcaf
,
1
,
REASON_COST
)
end
...
...
expansions/script/c47344569.lua
View file @
271b07d9
...
...
@@ -71,7 +71,7 @@ function s.cncon(e,tp,eg,ep,ev,re,r,rp)
return
eg
:
IsExists
(
Card
.
IsSummonPlayer
,
1
,
nil
,
1
-
tp
)
end
function
s
.
cnfilter
(
c
)
return
c
:
IsSetCard
(
0x6ca4
)
and
c
:
IsCanAddCounter
(
0x
ac
f
,
1
)
and
c
:
IsFaceup
()
return
c
:
IsSetCard
(
0x6ca4
)
and
c
:
IsCanAddCounter
(
0x
ca
f
,
1
)
and
c
:
IsFaceup
()
end
function
s
.
cntg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
false
end
...
...
@@ -83,6 +83,6 @@ end
function
s
.
cnop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
tc
:
AddCounter
(
0x
ac
f
,
1
)
tc
:
AddCounter
(
0x
ca
f
,
1
)
end
end
\ No newline at end of file
expansions/script/c47344573.lua
View file @
271b07d9
...
...
@@ -71,7 +71,7 @@ function s.tdtg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
eg
,
1
,
0
,
0
)
end
function
s
.
acfilter
(
c
)
return
(
c
:
IsSetCard
(
0x6ca4
)
or
c
:
IsSetCard
(
0x9ca4
))
and
c
:
IsCanAddCounter
(
0x
ac
f
,
1
)
and
c
:
IsFaceup
()
return
(
c
:
IsSetCard
(
0x6ca4
)
or
c
:
IsSetCard
(
0x9ca4
))
and
c
:
IsCanAddCounter
(
0x
ca
f
,
1
)
and
c
:
IsFaceup
()
end
function
s
.
tdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
re
:
GetHandler
()
...
...
@@ -81,7 +81,7 @@ function s.tdop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_COUNTER
)
local
ag
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
acfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
1
,
nil
)
if
#
ag
>
0
then
ag
:
GetFirst
():
AddCounter
(
0x
ac
f
,
1
)
ag
:
GetFirst
():
AddCounter
(
0x
ca
f
,
1
)
end
end
end
...
...
expansions/script/c47344578.lua
View file @
271b07d9
...
...
@@ -41,8 +41,8 @@ function s.cocon(e,tp,eg,ep,ev,re,r,rp)
end
function
s
.
counter
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsCanAddCounter
(
0x
ac
f
,
1
)
then
c
:
AddCounter
(
0x
ac
f
,
1
,
true
)
if
c
:
IsCanAddCounter
(
0x
ca
f
,
1
)
then
c
:
AddCounter
(
0x
ca
f
,
1
,
true
)
end
end
function
s
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
expansions/script/c47344579.lua
View file @
271b07d9
...
...
@@ -80,7 +80,7 @@ function s.tdop(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
Release
(
g
,
REASON_EFFECT
)
>
0
then
Duel
.
SendtoDeck
(
tc
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
e
:
GetHandler
():
AddCounter
(
0x
ac
f
,
1
)
e
:
GetHandler
():
AddCounter
(
0x
ca
f
,
1
)
end
end
function
s
.
repfilter
(
c
,
tp
)
...
...
expansions/script/c47344582.lua
View file @
271b07d9
...
...
@@ -50,7 +50,7 @@ function s.tgfilter(c)
return
c
:
IsSetCard
(
0x6ca4
)
and
c
:
IsAbleToGrave
()
end
function
s
.
cofilter
(
c
)
return
(
c
:
IsSetCard
(
0x6ca4
)
or
c
:
IsSetCard
(
0x9ca4
))
and
c
:
IsFaceup
()
and
c
:
IsCanAddCounter
(
0x
ac
f
,
1
)
return
(
c
:
IsSetCard
(
0x6ca4
)
or
c
:
IsSetCard
(
0x9ca4
))
and
c
:
IsFaceup
()
and
c
:
IsCanAddCounter
(
0x
ca
f
,
1
)
end
function
s
.
tgtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
tgfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
@@ -63,5 +63,5 @@ function s.tgop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
BreakEffect
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_COUNTER
)
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
cofilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
1
,
nil
):
GetFirst
()
tc
:
AddCounter
(
0x
ac
f
,
1
)
tc
:
AddCounter
(
0x
ca
f
,
1
)
end
\ No newline at end of file
expansions/script/c50218540.lua
View file @
271b07d9
...
...
@@ -16,7 +16,7 @@ function c50218540.initial_effect(c)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetDescription
(
aux
.
Stringid
(
50218540
,
1
))
e2
:
SetType
(
EFFECT_TYPE_
SINGLE
+
EFFECT_TYPE_
TRIGGER_O
+
EFFECT_TYPE_XMATERIAL
)
e2
:
SetType
(
EFFECT_TYPE_TRIGGER_O
+
EFFECT_TYPE_XMATERIAL
)
e2
:
SetCondition
(
c50218540
.
xmcon
)
c
:
RegisterEffect
(
e2
)
end
...
...
expansions/script/c65035123.lua
View file @
271b07d9
...
...
@@ -39,6 +39,9 @@ function c65035123.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
0
,
0
,
1
-
tp
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
c65035123
.
sgfil
(
c
)
return
c
:
IsSetCard
(
0x9dac
)
and
c
:
IsAbleToHand
()
end
function
c65035123
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
Draw
(
1
-
tp
,
1
,
REASON_EFFECT
)
~=
0
and
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
>=
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_HAND
)
then
local
num
=
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_HAND
)
...
...
@@ -46,7 +49,7 @@ function c65035123.activate(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
GetDecktopGroup
(
tp
,
num
)
if
g
:
GetCount
()
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
p
,
HINTMSG_ATOHAND
)
local
sg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
local
sg
=
g
:
FilterSelect
(
c65035123
.
sgfil
,
tp
,
1
,
1
,
nil
)
if
sg
:
GetFirst
():
IsAbleToHand
()
then
Duel
.
SendtoHand
(
sg
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
sg
)
...
...
expansions/script/c65035127.lua
View file @
271b07d9
...
...
@@ -39,7 +39,7 @@ function c65035127.nontuner(c,syncard)
end
function
c65035127
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x9dac
)
and
c
:
IsAbleToRemove
()
return
c
:
IsSetCard
(
0x9dac
)
and
c
:
IsAbleToRemove
()
and
c
:
IsType
(
TYPE_MONSTER
)
end
function
c65035127
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
num
=
Duel
.
GetMatchingGroupCount
(
c65035127
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
...
...
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