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
Ai
ygopro-222DIY-cards
Commits
2a7c3374
Commit
2a7c3374
authored
Jun 24, 2022
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1145141919810
parent
dbf8d881
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
39 additions
and
18 deletions
+39
-18
expansions/script/c10700051.lua
expansions/script/c10700051.lua
+12
-5
expansions/script/c10700111.lua
expansions/script/c10700111.lua
+2
-2
expansions/script/c10700181.lua
expansions/script/c10700181.lua
+2
-1
expansions/script/c12002512.lua
expansions/script/c12002512.lua
+2
-2
expansions/script/c12002516.lua
expansions/script/c12002516.lua
+1
-1
expansions/script/c12090075.lua
expansions/script/c12090075.lua
+9
-0
expansions/script/c12090080.lua
expansions/script/c12090080.lua
+1
-3
expansions/script/c12090081.lua
expansions/script/c12090081.lua
+3
-3
expansions/script/c12090096.lua
expansions/script/c12090096.lua
+7
-1
No files found.
expansions/script/c10700051.lua
View file @
2a7c3374
...
...
@@ -35,11 +35,18 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
c
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
if
Duel
.
IsExistingMatchingCard
(
cm
.
lvfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
1
))
then
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
lvfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
0
)
if
#
g
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
1
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
m
,
2
))
local
lvl
=
Duel
.
AnnounceLevel
(
tp
,
1
,
4
)
local
lvl
=
0
if
g
:
GetCount
()
==
1
then
local
lv
=
g
:
GetFirst
():
GetLevel
()
lvl
=
Duel
.
AnnounceLevel
(
tp
,
1
,
4
,
lv
)
else
lvl
=
Duel
.
AnnounceLevel
(
tp
,
1
,
4
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
lvfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
e
,
tp
,
ni
l
):
GetFirst
()
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
lvfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
lv
l
):
GetFirst
()
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CHANGE_LEVEL
)
...
...
@@ -48,8 +55,8 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
tc
:
RegisterEffect
(
e1
)
end
end
function
cm
.
lvfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
Is
SetCard
(
0x480
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
GetLevel
()
>
0
function
cm
.
lvfilter
(
c
,
lv
)
return
c
:
IsFaceup
()
and
c
:
Is
Type
(
TYPE_MONSTER
)
and
c
:
GetLevel
()
>
0
and
not
c
:
IsLevel
(
lv
)
end
--setcard
function
cm
.
ccon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
expansions/script/c10700111.lua
View file @
2a7c3374
...
...
@@ -162,14 +162,14 @@ function cm.disop2(e,tp,eg,ep,ev,re,r,rp,chk)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_DISABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_DISABLE_EFFECT
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetValue
(
RESET_TURN_SET
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e2
)
end
end
...
...
expansions/script/c10700181.lua
View file @
2a7c3374
...
...
@@ -37,7 +37,8 @@ function cm.distg(e,c)
end
--Draw
function
cm
.
dcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
re
:
GetHandler
():
IsSetCard
(
0x480
)
local
ph
=
Duel
.
GetCurrentPhase
()
return
ph
~=
PHASE_DAMAGE
and
ph
~=
PHASE_DAMAGE_CAL
and
e
:
GetHandler
():
IsReason
(
REASON_EFFECT
)
and
re
:
GetHandler
():
IsSetCard
(
0x480
)
end
function
cm
.
dtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
end
...
...
expansions/script/c12002512.lua
View file @
2a7c3374
...
...
@@ -61,14 +61,14 @@ function cm.spfilter(c,e,tp)
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
not
c
:
IsCode
(
m
)
end
function
cm
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
spfilter
1
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
e
:
GetHandler
(),
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
e
:
GetHandler
(),
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_GRAVE
)
end
function
cm
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
spfilter
1
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
e
:
GetHandler
(),
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
e
:
GetHandler
(),
e
,
tp
)
if
g
:
GetCount
()
>
0
then
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
...
...
expansions/script/c12002516.lua
View file @
2a7c3374
...
...
@@ -14,7 +14,7 @@ function cm.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_
QUICK
_O
)
e1
:
SetType
(
EFFECT_TYPE_
FIELD
+
EFFECT_TYPE_TRIGGER
_O
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetCountLimit
(
1
)
e1
:
SetRange
(
LOCATION_HAND
)
...
...
expansions/script/c12090075.lua
View file @
2a7c3374
...
...
@@ -53,6 +53,15 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
e
:
SetOperation
(
nil
)
end
end
function
cm
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummonStep
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
then
c
:
SetCardTarget
(
tc
)
end
Duel
.
SpecialSummonComplete
()
end
function
cm
.
repfilter
(
c
,
tp
)
return
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_ONFIELD
)
and
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
and
not
c
:
IsReason
(
REASON_REPLACE
)
...
...
expansions/script/c12090080.lua
View file @
2a7c3374
...
...
@@ -64,9 +64,7 @@ end
function
cm
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
12090085
,
0xafa0
,
TYPES_TOKEN_MONSTER
,
1400
,
1200
,
4
,
RACE_WYRM
,
ATTRIBUTE_LIGHT
)
and
e
:
GetHandler
():
GetFlagEffect
(
m
)
==
0
and
not
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
TYPE_TOKEN
)
end
e
:
GetHandler
():
RegisterFlagEffect
(
m
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_CHAIN
,
0
,
1
)
and
not
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
TYPE_NORMAL
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOKEN
,
nil
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
0
,
0
)
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
...
...
expansions/script/c12090081.lua
View file @
2a7c3374
...
...
@@ -65,15 +65,15 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EFFECT
)
local
op
=
Duel
.
SelectOption
(
tp
,
table.unpack
(
ops
))
if
opval
[
op
]
==
1
then
if
opval
[
op
]
==
0
then
e
:
SetCategory
(
CATEGORY_DRAW
)
e
:
SetOperation
(
cm
.
atop
)
elseif
opval
[
op
]
==
2
then
elseif
opval
[
op
]
==
1
then
e
:
SetCategory
(
CATEGORY_DESTROY
)
e
:
SetOperation
(
cm
.
tgop
)
local
g
=
Duel
.
GetMatchingGroup
(
nil
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
elseif
opval
[
op
]
==
3
then
elseif
opval
[
op
]
==
2
then
e
:
SetOperation
(
cm
.
spop
)
end
end
...
...
expansions/script/c12090096.lua
View file @
2a7c3374
...
...
@@ -51,9 +51,15 @@ end
function
cm
.
spcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
return
(
Duel
.
GetCustomActivityCount
(
m
,
tp
,
ACTIVITY_CHAIN
)
~=
0
or
Duel
.
GetCustomActivityCount
(
m
,
1
-
tp
,
ACTIVITY_CHAIN
)
~=
0
)
return
Duel
.
GetCustomActivityCount
(
m
,
tp
,
ACTIVITY_CHAIN
)
~=
0
and
Duel
.
CheckReleaseGroup
(
tp
,
cm
.
spfilter
,
1
,
nil
,
c
,
tp
)
end
function
cm
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
cm
.
spfilter
,
1
,
1
,
nil
,
c
,
tp
)
c
:
SetMaterial
(
g
)
Duel
.
Release
(
g
,
REASON_COST
)
c
:
CompleteProcedure
()
end
function
cm
.
rmcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
end
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_COST
)
...
...
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