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
a29368bf
You need to sign in or sign up before continuing.
Commit
a29368bf
authored
Jun 05, 2019
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes
parent
e9f58d84
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
42 additions
and
28 deletions
+42
-28
expansions/script/c13254078.lua
expansions/script/c13254078.lua
+4
-0
expansions/script/c13257326.lua
expansions/script/c13257326.lua
+24
-17
expansions/script/c9980200.lua
expansions/script/c9980200.lua
+2
-2
expansions/script/c9980205.lua
expansions/script/c9980205.lua
+1
-1
expansions/script/c9980207.lua
expansions/script/c9980207.lua
+8
-8
expansions/script/c9980208.lua
expansions/script/c9980208.lua
+3
-0
No files found.
expansions/script/c13254078.lua
View file @
a29368bf
...
@@ -4,6 +4,7 @@ function c13254078.initial_effect(c)
...
@@ -4,6 +4,7 @@ function c13254078.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCondition
(
c13254078
.
pccon
)
e1
:
SetTarget
(
c13254078
.
pctg
)
e1
:
SetTarget
(
c13254078
.
pctg
)
e1
:
SetOperation
(
c13254078
.
pcop
)
e1
:
SetOperation
(
c13254078
.
pcop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
...
@@ -18,6 +19,9 @@ function c13254078.initial_effect(c)
...
@@ -18,6 +19,9 @@ function c13254078.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c13254078
.
pccon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
not
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,
0
)
and
not
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,
1
)
end
function
c13254078
.
pcfilter
(
c
)
function
c13254078
.
pcfilter
(
c
)
return
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
IsSetCard
(
0x5356
)
and
not
c
:
IsForbidden
()
and
c
:
IsLevelBelow
(
2
)
return
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
IsSetCard
(
0x5356
)
and
not
c
:
IsForbidden
()
and
c
:
IsLevelBelow
(
2
)
end
end
...
...
expansions/script/c13257326.lua
View file @
a29368bf
...
@@ -29,11 +29,16 @@ function c13257326.filter(c)
...
@@ -29,11 +29,16 @@ function c13257326.filter(c)
local
eflist
=
mt
[
c
]
local
eflist
=
mt
[
c
]
local
i
=
1
local
i
=
1
while
eflist
[
i
]
do
while
eflist
[
i
]
do
if
eflist
[
i
]
==
"power_capsule"
then
i
=
i
+
1
break
end
--if eflist[i]=="power_capsule" then i=i+1 break end
if
eflist
[
i
]
==
"power_capsule"
then
--i=i+1
--local PCe=eflist[i]
--return PCe
return
true
end
i
=
i
+
1
i
=
i
+
1
end
end
local
PCe
=
eflist
[
i
]
return
false
-- and PCe:IsActivatable(PCe:GetOwnerPlayer())
return
PCe
-- and PCe:IsActivatable(PCe:GetOwnerPlayer())
end
end
function
c13257326
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c13257326
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsOnField
()
and
c13257326
.
filter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsOnField
()
and
c13257326
.
filter
(
chkc
)
end
...
@@ -51,22 +56,24 @@ function c13257326.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -51,22 +56,24 @@ function c13257326.activate(e,tp,eg,ep,ev,re,r,rp)
local
eflist
=
mt
[
tc
]
local
eflist
=
mt
[
tc
]
local
i
=
1
local
i
=
1
while
eflist
[
i
]
do
while
eflist
[
i
]
do
if
eflist
[
i
]
==
"power_capsule"
then
i
=
i
+
1
break
end
if
eflist
[
i
]
==
"power_capsule"
then
i
=
i
+
1
if
eflist
[
i
]
then
local
PCe
=
eflist
[
i
]
local
cost
=
PCe
:
GetCost
()
local
target
=
PCe
:
GetTarget
()
local
operation
=
PCe
:
GetOperation
()
Duel
.
ClearTargetCard
()
e
:
SetProperty
(
PCe
:
GetProperty
())
tc
:
CreateEffectRelation
(
PCe
)
if
cost
then
cost
(
PCe
,
tep
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
1
)
end
if
target
then
target
(
PCe
,
tep
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
1
)
end
if
operation
then
operation
(
PCe
,
tep
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
tc
:
ReleaseEffectRelation
(
PCe
)
end
return
end
i
=
i
+
1
i
=
i
+
1
end
end
if
eflist
[
i
]
then
local
PCe
=
eflist
[
i
]
local
cost
=
PCe
:
GetCost
()
local
target
=
PCe
:
GetTarget
()
local
operation
=
PCe
:
GetOperation
()
Duel
.
ClearTargetCard
()
e
:
SetProperty
(
PCe
:
GetProperty
())
tc
:
CreateEffectRelation
(
PCe
)
if
cost
then
cost
(
PCe
,
tep
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
1
)
end
if
target
then
target
(
PCe
,
tep
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
1
)
end
if
operation
then
operation
(
PCe
,
tep
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
tc
:
ReleaseEffectRelation
(
PCe
)
end
end
end
end
end
end
end
...
...
expansions/script/c9980200.lua
View file @
a29368bf
...
@@ -47,13 +47,13 @@ function c9980200.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -47,13 +47,13 @@ function c9980200.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
+
LOCATION_EXTRA
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
+
LOCATION_EXTRA
)
end
end
function
c9980200
.
mfilter
(
c
)
function
c9980200
.
mfilter
(
c
)
return
c
:
IsCode
(
9980205
)
or
c
:
IsCode
(
9980206
)
or
c
:
IsCode
(
9980207
)
or
c
:
IsCode
(
9980208
)
return
c
:
IsCode
(
9980205
,
9980206
,
9980207
,
9980208
)
end
end
function
c9980200
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c9980200
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
mg
=
Duel
.
GetRitualMaterial
(
tp
)
local
mg
=
Duel
.
GetRitualMaterial
(
tp
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
tg
=
Duel
.
SelectMatchingCard
(
tp
,
c9980200
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
tp
,
mg
,
ft
)
local
tg
=
Duel
.
SelectMatchingCard
(
tp
,
c9980200
.
filter
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
+
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
,
mg
,
ft
)
local
tc
=
tg
:
GetFirst
()
local
tc
=
tg
:
GetFirst
()
if
tc
then
if
tc
then
mg
=
mg
:
Filter
(
Card
.
IsCanBeRitualMaterial
,
tc
,
tc
)
mg
=
mg
:
Filter
(
Card
.
IsCanBeRitualMaterial
,
tc
,
tc
)
...
...
expansions/script/c9980205.lua
View file @
a29368bf
...
@@ -56,7 +56,7 @@ function c9980205.initial_effect(c)
...
@@ -56,7 +56,7 @@ function c9980205.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
9980205
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
9980205
,
0
))
e1
:
SetCategory
(
CATEGORY_REMOVE
)
e1
:
SetCategory
(
CATEGORY_REMOVE
)
e1
:
SetType
(
EFFECT_TYPE_
TRIGGER
_O
)
e1
:
SetType
(
EFFECT_TYPE_
QUICK
_O
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
...
...
expansions/script/c9980207.lua
View file @
a29368bf
...
@@ -52,10 +52,10 @@ function c9980207.initial_effect(c)
...
@@ -52,10 +52,10 @@ function c9980207.initial_effect(c)
e2
:
SetCode
(
EVENT_SPSUMMON
)
e2
:
SetCode
(
EVENT_SPSUMMON
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCountLimit
(
1
)
e2
:
SetCountLimit
(
1
)
e2
:
SetCondition
(
c9980207
.
discon
)
e2
:
SetCondition
(
c9980207
.
discon
3
)
e2
:
SetCost
(
c9980207
.
discost
)
e2
:
SetCost
(
c9980207
.
discost
3
)
e2
:
SetTarget
(
c9980207
.
distg
)
e2
:
SetTarget
(
c9980207
.
distg
3
)
e2
:
SetOperation
(
c9980207
.
disop
)
e2
:
SetOperation
(
c9980207
.
disop
3
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c9980207
.
filter
(
c
,
e
,
tp
,
m1
,
m2
,
ft
)
function
c9980207
.
filter
(
c
,
e
,
tp
,
m1
,
m2
,
ft
)
...
@@ -166,24 +166,24 @@ function c9980207.desop2(e,tp,eg,ep,ev,re,r,rp)
...
@@ -166,24 +166,24 @@ function c9980207.desop2(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
end
end
end
end
function
c9980207
.
discon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c9980207
.
discon
3
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
tp
~=
ep
and
Duel
.
GetCurrentChain
()
==
0
return
tp
~=
ep
and
Duel
.
GetCurrentChain
()
==
0
end
end
function
c9980207
.
disfilter
(
c
)
function
c9980207
.
disfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xbc8
)
and
c
:
IsAbleToHandAsCost
()
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xbc8
)
and
c
:
IsAbleToHandAsCost
()
end
end
function
c9980207
.
discost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c9980207
.
discost
3
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c9980207
.
disfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c9980207
.
disfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RTOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RTOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c9980207
.
disfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c9980207
.
disfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
1
,
nil
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_COST
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_COST
)
end
end
function
c9980207
.
distg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c9980207
.
distg
3
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DISABLE_SUMMON
,
eg
,
eg
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DISABLE_SUMMON
,
eg
,
eg
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
eg
,
eg
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
eg
,
eg
:
GetCount
(),
0
,
0
)
end
end
function
c9980207
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c9980207
.
disop
3
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
NegateSummon
(
eg
)
Duel
.
NegateSummon
(
eg
)
Duel
.
Remove
(
eg
,
POS_FACEUP
,
REASON_EFFECT
)
Duel
.
Remove
(
eg
,
POS_FACEUP
,
REASON_EFFECT
)
end
end
\ No newline at end of file
expansions/script/c9980208.lua
View file @
a29368bf
--美丽的守护女神next·翠绿之心next
--美丽的守护女神next·翠绿之心next
function
c9980208
.
initial_effect
(
c
)
function
c9980208
.
initial_effect
(
c
)
--pendulum summon
aux
.
EnablePendulumAttribute
(
c
)
c
:
EnableReviveLimit
()
--Activate
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
9980208
,
2
))
e1
:
SetDescription
(
aux
.
Stringid
(
9980208
,
2
))
...
...
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