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
alstroemeria-silentlove
ygopro-222DIY-cards
Commits
a29368bf
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)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCondition
(
c13254078
.
pccon
)
e1
:
SetTarget
(
c13254078
.
pctg
)
e1
:
SetOperation
(
c13254078
.
pcop
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -18,6 +19,9 @@ function c13254078.initial_effect(c)
c
:
RegisterEffect
(
e2
)
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
)
return
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
IsSetCard
(
0x5356
)
and
not
c
:
IsForbidden
()
and
c
:
IsLevelBelow
(
2
)
end
...
...
expansions/script/c13257326.lua
View file @
a29368bf
...
...
@@ -29,11 +29,16 @@ function c13257326.filter(c)
local
eflist
=
mt
[
c
]
local
i
=
1
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
end
local
PCe
=
eflist
[
i
]
return
PCe
-- and PCe:IsActivatable(PCe:GetOwnerPlayer())
return
false
-- and PCe:IsActivatable(PCe:GetOwnerPlayer())
end
function
c13257326
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
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)
local
eflist
=
mt
[
tc
]
local
i
=
1
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
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
...
...
expansions/script/c9980200.lua
View file @
a29368bf
...
...
@@ -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
)
end
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
function
c9980200
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
mg
=
Duel
.
GetRitualMaterial
(
tp
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
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
()
if
tc
then
mg
=
mg
:
Filter
(
Card
.
IsCanBeRitualMaterial
,
tc
,
tc
)
...
...
expansions/script/c9980205.lua
View file @
a29368bf
...
...
@@ -56,7 +56,7 @@ function c9980205.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
9980205
,
0
))
e1
:
SetCategory
(
CATEGORY_REMOVE
)
e1
:
SetType
(
EFFECT_TYPE_
TRIGGER
_O
)
e1
:
SetType
(
EFFECT_TYPE_
QUICK
_O
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetRange
(
LOCATION_MZONE
)
...
...
expansions/script/c9980207.lua
View file @
a29368bf
...
...
@@ -52,10 +52,10 @@ function c9980207.initial_effect(c)
e2
:
SetCode
(
EVENT_SPSUMMON
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCountLimit
(
1
)
e2
:
SetCondition
(
c9980207
.
discon
)
e2
:
SetCost
(
c9980207
.
discost
)
e2
:
SetTarget
(
c9980207
.
distg
)
e2
:
SetOperation
(
c9980207
.
disop
)
e2
:
SetCondition
(
c9980207
.
discon
3
)
e2
:
SetCost
(
c9980207
.
discost
3
)
e2
:
SetTarget
(
c9980207
.
distg
3
)
e2
:
SetOperation
(
c9980207
.
disop
3
)
c
:
RegisterEffect
(
e2
)
end
function
c9980207
.
filter
(
c
,
e
,
tp
,
m1
,
m2
,
ft
)
...
...
@@ -166,24 +166,24 @@ function c9980207.desop2(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
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
end
function
c9980207
.
disfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xbc8
)
and
c
:
IsAbleToHandAsCost
()
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
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RTOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c9980207
.
disfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
1
,
nil
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_COST
)
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
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DISABLE_SUMMON
,
eg
,
eg
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
eg
,
eg
:
GetCount
(),
0
,
0
)
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
.
Remove
(
eg
,
POS_FACEUP
,
REASON_EFFECT
)
end
\ No newline at end of file
expansions/script/c9980208.lua
View file @
a29368bf
--美丽的守护女神next·翠绿之心next
function
c9980208
.
initial_effect
(
c
)
--pendulum summon
aux
.
EnablePendulumAttribute
(
c
)
c
:
EnableReviveLimit
()
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
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