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
435dfb06
Commit
435dfb06
authored
Mar 01, 2021
by
TanakaKotoha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
110
parent
3507dbad
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
19 deletions
+24
-19
expansions/script/c12044021.lua
expansions/script/c12044021.lua
+4
-2
expansions/script/c12066000.lua
expansions/script/c12066000.lua
+12
-8
expansions/script/c16199990.lua
expansions/script/c16199990.lua
+7
-8
expansions/script/c33400409.lua
expansions/script/c33400409.lua
+1
-1
No files found.
expansions/script/c12044021.lua
View file @
435dfb06
...
@@ -35,7 +35,8 @@ function cm.initial_effect(c)
...
@@ -35,7 +35,8 @@ function cm.initial_effect(c)
local
e5
=
Effect
.
CreateEffect
(
c
)
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetDescription
(
aux
.
Stringid
(
m
,
3
))
e5
:
SetDescription
(
aux
.
Stringid
(
m
,
3
))
e5
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e5
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_DESTROY
)
e5
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e5
:
SetCode
(
EVENT_CHAINING
)
e5
:
SetCode
(
EVENT_CHAINING
)
e5
:
SetRange
(
LOCATION_MZONE
)
e5
:
SetRange
(
LOCATION_MZONE
)
e5
:
SetCondition
(
cm
.
descon
)
e5
:
SetCondition
(
cm
.
descon
)
...
@@ -100,7 +101,8 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp,c)
...
@@ -100,7 +101,8 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp,c)
Duel
.
Release
(
g
,
REASON_COST
)
Duel
.
Release
(
g
,
REASON_COST
)
end
end
function
cm
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
re
:
GetHandler
():
IsSetCard
(
0x1fbd
)
local
loc
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_LOCATION
)
return
re
:
GetHandler
():
IsSetCard
(
0x1fbd
)
and
loc
==
LOCATION_HAND
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
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
12044025
,
0
,
0x4011
,
1800
,
1800
,
4
,
RACE_PSYCHO
,
ATTRIBUTE_DARK
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
12044025
,
0
,
0x4011
,
1800
,
1800
,
4
,
RACE_PSYCHO
,
ATTRIBUTE_DARK
)
end
...
...
expansions/script/c12066000.lua
View file @
435dfb06
...
@@ -117,21 +117,25 @@ function Sr_skyland.commoneffect_spop(e,tp,eg,ep,ev,re,r,rp,c)
...
@@ -117,21 +117,25 @@ function Sr_skyland.commoneffect_spop(e,tp,eg,ep,ev,re,r,rp,c)
g
:
GetFirst
():
RegisterFlagEffect
(
tp
,
12066012
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
g
:
GetFirst
():
RegisterFlagEffect
(
tp
,
12066012
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
end
else
else
local
g
=
Duel
.
GetMatchingGroup
(
Sr_skyland
.
exfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DISCARD
)
if
#
g
>
1
then
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Sr_skyland
.
commoneffect_filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
c
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
+
REASON_DISCARD
)
end
elseif
Duel
.
IsExistingMatchingCard
(
Sr_skyland
.
commoneffect_filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DISCARD
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Sr_skyland
.
commoneffect_filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
c
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
+
REASON_DISCARD
)
elseif
Duel
.
IsExistingMatchingCard
(
Sr_skyland
.
exfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
then
local
g
=
Duel
.
GetMatchingGroup
(
Sr_skyland
.
exfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
if
#
g
>
1
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
12066012
,
3
))
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
12066012
,
3
))
local
tg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
local
tg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
tg
:
GetFirst
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_COST
)
tg
:
GetFirst
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_COST
)
tg
:
GetFirst
():
RegisterFlagEffect
(
12066012
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
tg
:
GetFirst
():
RegisterFlagEffect
(
12066012
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
else
else
g
:
GetFirst
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_COST
)
g
:
GetFirst
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_COST
)
g
:
GetFirst
():
RegisterFlagEffect
(
12066012
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
g
:
GetFirst
():
RegisterFlagEffect
(
tp
,
12066012
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
end
end
else
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DISCARD
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Sr_skyland
.
commoneffect_filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
c
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
+
REASON_DISCARD
)
end
end
end
end
--天境 机动腕的卡雷
--天境 机动腕的卡雷
...
...
expansions/script/c16199990.lua
View file @
435dfb06
...
@@ -17,12 +17,9 @@ end
...
@@ -17,12 +17,9 @@ end
function
rk
.
check
(
c
,
str
)
function
rk
.
check
(
c
,
str
)
local
substr
=
c
.
rksetcode
local
substr
=
c
.
rksetcode
--Debug.Message(substr)
if
substr
==
nil
then
return
false
end
--Debug.Message(str)
if
string.match
(
substr
,
str
)
==
str
then
return
true
end
--Debug.Message(string.find(substr,str))
return
false
--Debug.Message(string.find(substr,str)==nil)
if
string.find
(
substr
,
str
)
==
nil
then
return
false
end
return
true
end
end
function
rk
.
effectg
(
c
,
code
)
function
rk
.
effectg
(
c
,
code
)
local
tc
=
c
local
tc
=
c
...
@@ -43,15 +40,17 @@ function rk.efcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -43,15 +40,17 @@ function rk.efcon(e,tp,eg,ep,ev,re,r,rp)
end
end
function
rk
.
efop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
rk
.
efop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
e
:
SetOwnerPlayer
(
tp
)
local
rc
=
c
:
GetReasonCard
()
local
rc
=
c
:
GetReasonCard
()
local
code
=
e
:
GetLabel
()
local
code
=
e
:
GetLabel
()
local
reset_flag
=
RESET_EVENT
+
RESETS_STANDARD
local
reset_flag
=
RESET_EVENT
+
RESETS_STANDARD
rc
:
CopyEffect
(
code
,
reset_flag
,
1
)
local
cid
=
rc
:
CopyEffect
(
code
,
0
,
1
)
--Debug.Message(e:GetOwnerPlayer()==rc:GetControler())
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetReset
(
reset_flag
)
e1
:
SetReset
(
reset_flag
)
e1
:
SetCode
(
EFFECT_
CHANGE
_CODE
)
e1
:
SetCode
(
EFFECT_
ADD
_CODE
)
e1
:
SetValue
(
code
)
e1
:
SetValue
(
code
)
rc
:
RegisterEffect
(
e1
,
true
)
rc
:
RegisterEffect
(
e1
,
true
)
rc
:
RegisterFlagEffect
(
0
,
reset_flag
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
code
,
5
))
rc
:
RegisterFlagEffect
(
0
,
reset_flag
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
code
,
5
))
...
...
expansions/script/c33400409.lua
View file @
435dfb06
...
@@ -36,7 +36,7 @@ function c33400409.imtg(e,c)
...
@@ -36,7 +36,7 @@ function c33400409.imtg(e,c)
end
end
function
c33400409
.
filter1
(
c
,
e
,
tp
)
function
c33400409
.
filter1
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x534
1
)
and
c
:
IsType
(
TYPE_XYZ
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0x534
2
)
and
c
:
IsType
(
TYPE_XYZ
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
IsExistingMatchingCard
(
c33400409
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
c
,
c
:
GetRank
()
+
2
)
and
Duel
.
IsExistingMatchingCard
(
c33400409
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
c
,
c
:
GetRank
()
+
2
)
end
end
function
c33400409
.
filter2
(
c
,
e
,
tp
,
mc
,
rk
)
function
c33400409
.
filter2
(
c
,
e
,
tp
,
mc
,
rk
)
...
...
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