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
5c84ea38
Commit
5c84ea38
authored
Mar 14, 2021
by
TanakaKotoha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tnndx
parent
24e414ff
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
27 additions
and
24 deletions
+27
-24
expansions/script/c12031005.lua
expansions/script/c12031005.lua
+9
-9
expansions/script/c12031010.lua
expansions/script/c12031010.lua
+2
-2
expansions/script/c12065052.lua
expansions/script/c12065052.lua
+2
-2
expansions/script/c12065060.lua
expansions/script/c12065060.lua
+1
-1
expansions/script/c12065062.lua
expansions/script/c12065062.lua
+2
-2
expansions/script/c16199990.lua
expansions/script/c16199990.lua
+1
-4
expansions/script/c16200005.lua
expansions/script/c16200005.lua
+1
-0
expansions/script/c17061060.lua
expansions/script/c17061060.lua
+7
-1
expansions/script/c21520135.lua
expansions/script/c21520135.lua
+1
-1
expansions/script/c33330153.lua
expansions/script/c33330153.lua
+0
-1
expansions/script/c33501205.lua
expansions/script/c33501205.lua
+1
-1
No files found.
expansions/script/c12031005.lua
View file @
5c84ea38
...
@@ -42,7 +42,7 @@ function cm.efilter(e,te)
...
@@ -42,7 +42,7 @@ function cm.efilter(e,te)
return
te
:
GetOwner
()
~=
e
:
GetOwner
()
return
te
:
GetOwner
()
~=
e
:
GetOwner
()
end
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_LOCATION
)
==
LOCATION_MZONE
and
re
:
IsActiveType
(
TYPE_MONSTER
)
return
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_LOCATION
)
==
LOCATION_MZONE
and
r
p
==
1
-
tp
and
r
e
:
IsActiveType
(
TYPE_MONSTER
)
end
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
...
@@ -51,16 +51,16 @@ end
...
@@ -51,16 +51,16 @@ end
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
true
then
if
true
then
Duel
.
SendtoHand
(
re
:
GetHandler
(),
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
re
:
GetHandler
(),
nil
,
REASON_EFFECT
)
end
end
local
sc
=
Duel
.
GetOperatedGroup
()
local
sc
=
Duel
.
GetOperatedGroup
()
if
sc
:
GetCount
()
==
0
then
if
sc
:
GetCount
()
==
0
then
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
NegateActivation
(
ev
)
Duel
.
NegateActivation
(
ev
)
else
else
if
not
sc
:
GetFirst
():
IsLocation
(
LOCATION_HAND
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
c
:
IsRelateToEffect
(
e
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
if
not
sc
:
GetFirst
():
IsLocation
(
LOCATION_HAND
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
NegateActivation
(
ev
)
Duel
.
NegateActivation
(
ev
)
end
end
end
end
end
end
\ No newline at end of file
expansions/script/c12031010.lua
View file @
5c84ea38
...
@@ -68,10 +68,10 @@ function c12031010.desop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -68,10 +68,10 @@ function c12031010.desop(e,tp,eg,ep,ev,re,r,rp)
if
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsRelateToEffect
(
e
)
then
local
gg
=
Duel
.
GetMatchingGroup
(
nil
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
)
local
gg
=
Duel
.
GetMatchingGroup
(
nil
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
)
if
gg
:
GetCount
()
>
0
then
if
gg
:
GetCount
()
>
0
then
tc
=
gg
:
GetFirst
()
local
tg
=
gg
:
GetFirst
()
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
if
not
tc
:
IsSetCard
(
0xfa0
)
then
return
end
if
not
tc
:
IsSetCard
(
0xfa0
)
then
return
end
local
code
=
t
c
:
GetOriginalCode
()
local
code
=
t
g
:
GetOriginalCode
()
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
...
...
expansions/script/c12065052.lua
View file @
5c84ea38
...
@@ -44,12 +44,12 @@ function cm.rthfilter(c)
...
@@ -44,12 +44,12 @@ function cm.rthfilter(c)
return
c
:
IsSetCard
(
0x9fa9
)
and
not
c
:
IsCode
(
m
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x9fa9
)
and
not
c
:
IsCode
(
m
)
and
c
:
IsAbleToHand
()
end
end
function
cm
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
aux
.
TRUE
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
aux
.
TRUE
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
nil
,
1
,
0
,
LOCATION_ONFIELD
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
nil
,
1
,
0
,
LOCATION_ONFIELD
)
end
end
function
cm
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
dg
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
TRUE
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
local
dg
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
TRUE
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
if
dg
:
GetCount
()
>
0
then
if
dg
:
GetCount
()
>
0
then
Duel
.
HintSelection
(
dg
)
Duel
.
HintSelection
(
dg
)
Duel
.
Destroy
(
dg
,
REASON_EFFECT
)
Duel
.
Destroy
(
dg
,
REASON_EFFECT
)
...
...
expansions/script/c12065060.lua
View file @
5c84ea38
...
@@ -48,7 +48,7 @@ function cm.initial_effect(c)
...
@@ -48,7 +48,7 @@ function cm.initial_effect(c)
--
--
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_TRAP_ACT_IN_
HAND
)
e2
:
SetCode
(
EFFECT_TRAP_ACT_IN_
SET_TURN
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
cm
.
costop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
costop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
expansions/script/c12065062.lua
View file @
5c84ea38
...
@@ -33,7 +33,7 @@ function cm.initial_effect(c)
...
@@ -33,7 +33,7 @@ function cm.initial_effect(c)
--
--
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_TRAP_ACT_IN_
HAND
)
e2
:
SetCode
(
EFFECT_TRAP_ACT_IN_
SET_TURN
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
cm
.
cfilter
(
c
)
function
cm
.
cfilter
(
c
)
...
@@ -43,7 +43,7 @@ function cm.spcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -43,7 +43,7 @@ function cm.spcon(e,tp,eg,ep,ev,re,r,rp)
return
not
Duel
.
IsExistingMatchingCard
(
cm
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
2
,
nil
)
return
not
Duel
.
IsExistingMatchingCard
(
cm
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
2
,
nil
)
end
end
function
cm
.
spfilter
(
c
,
e
,
tp
)
function
cm
.
spfilter
(
c
,
e
,
tp
)
return
c
:
Is
LevelBelow
(
4
)
and
c
:
Is
SetCard
(
0x9fa9
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0x9fa9
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
cm
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
...
...
expansions/script/c16199990.lua
View file @
5c84ea38
...
@@ -2,10 +2,7 @@ if not pcall(function() require("expansions/script/c16101100") end) then require
...
@@ -2,10 +2,7 @@ if not pcall(function() require("expansions/script/c16101100") end) then require
local
m
=
16199990
local
m
=
16199990
local
Version_Number
=
"1.0.0 beta"
local
Version_Number
=
"1.0.0 beta"
rk
=
{}
rk
=
{}
os
=
require
(
'os'
)
-------------"name set"------------
table
=
require
(
'table'
)
io
=
require
(
'io'
)
-------------"name set"
function
rk
.
set
(
code
,
setcode
)
function
rk
.
set
(
code
,
setcode
)
if
not
_G
[
"c"
..
code
]
then
_G
[
"c"
..
code
]
=
{}
if
not
_G
[
"c"
..
code
]
then
_G
[
"c"
..
code
]
=
{}
setmetatable
(
_G
[
"c"
..
code
],
Card
)
setmetatable
(
_G
[
"c"
..
code
],
Card
)
...
...
expansions/script/c16200005.lua
View file @
5c84ea38
...
@@ -51,6 +51,7 @@ function c16200005.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -51,6 +51,7 @@ function c16200005.cost(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c16200005
.
condition
(
e
,
tp
)
function
c16200005
.
condition
(
e
,
tp
)
return
Duel
.
GetMatchingGroupCount
(
nil
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
<
Duel
.
GetMatchingGroupCount
(
nil
,
1
-
tp
,
LOCATION_MZONE
,
0
,
nil
)
return
Duel
.
GetMatchingGroupCount
(
nil
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
<
Duel
.
GetMatchingGroupCount
(
nil
,
1
-
tp
,
LOCATION_MZONE
,
0
,
nil
)
end
function
c16200005
.
sumlimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
,
se
)
function
c16200005
.
sumlimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
,
se
)
return
e
:
GetLabelObject
()
~=
se
return
e
:
GetLabelObject
()
~=
se
end
end
...
...
expansions/script/c17061060.lua
View file @
5c84ea38
...
@@ -143,7 +143,13 @@ function cm.disop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -143,7 +143,13 @@ function cm.disop(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
rc
=
re
:
GetHandler
()
local
rc
=
re
:
GetHandler
()
if
Duel
.
NegateEffect
(
ev
)
and
c
:
IsRelateToEffect
(
e
)
and
rc
:
IsRelateToEffect
(
re
)
and
c
:
IsType
(
TYPE_XYZ
)
then
if
Duel
.
NegateEffect
(
ev
)
and
c
:
IsRelateToEffect
(
e
)
and
rc
:
IsRelateToEffect
(
re
)
and
c
:
IsType
(
TYPE_XYZ
)
then
rc
:
CancelToGrave
()
if
re
:
IsActiveType
(
TYPE_SPELL
)
then
rc
:
CancelToGrave
()
end
local
og
=
rc
:
GetOverlayGroup
()
if
og
:
GetCount
()
>
0
then
Duel
.
SendtoGrave
(
og
,
REASON_RULE
)
end
Duel
.
Overlay
(
c
,
Group
.
FromCards
(
rc
))
Duel
.
Overlay
(
c
,
Group
.
FromCards
(
rc
))
end
end
end
end
...
...
expansions/script/c21520135.lua
View file @
5c84ea38
...
@@ -52,7 +52,7 @@ function c21520135.effectfilter(c)
...
@@ -52,7 +52,7 @@ function c21520135.effectfilter(c)
return
c
:
IsCode
(
21520133
)
and
c
:
IsFaceup
()
and
not
c
:
IsStatus
(
STATUS_BATTLE_DESTROYED
)
return
c
:
IsCode
(
21520133
)
and
c
:
IsFaceup
()
and
not
c
:
IsStatus
(
STATUS_BATTLE_DESTROYED
)
end
end
function
c21520135
.
thfilter
(
c
)
function
c21520135
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x491
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x491
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
and
c
:
IsLevelBelow
(
4
)
end
end
function
c21520135
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c21520135
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
c21520135
.
effectfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
return
Duel
.
IsExistingMatchingCard
(
c21520135
.
effectfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
...
...
expansions/script/c33330153.lua
View file @
5c84ea38
...
@@ -35,7 +35,6 @@ function cm.initial_effect(c)
...
@@ -35,7 +35,6 @@ function cm.initial_effect(c)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetRange
(
LOCATION_PZONE
)
e2
:
SetRange
(
LOCATION_PZONE
)
e2
:
SetCountLimit
(
1
)
e2
:
SetCountLimit
(
1
)
e2
:
SetCondition
(
cm
.
con
)
e2
:
SetTarget
(
cm
.
tg
)
e2
:
SetTarget
(
cm
.
tg
)
e2
:
SetOperation
(
cm
.
op
)
e2
:
SetOperation
(
cm
.
op
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
...
...
expansions/script/c33501205.lua
View file @
5c84ea38
...
@@ -46,7 +46,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -46,7 +46,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
local
zone
=
c
:
GetLinkedZone
(
tp
)
local
zone
=
c
:
GetLinkedZone
(
tp
)
if
zone
~=
0
and
c
:
IsRelateToEffect
(
e
)
then
if
zone
~=
0
and
c
:
IsRelateToEffect
(
e
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g2
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
spfilter2
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
ct
,
nil
,
e
,
tp
,
zone
)
local
g2
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
spfilter2
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
,
zone
)
if
g2
:
GetCount
()
>
0
then
if
g2
:
GetCount
()
>
0
then
Duel
.
SpecialSummon
(
g2
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
,
zone
)
Duel
.
SpecialSummon
(
g2
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
,
zone
)
end
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