Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts
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
八宫一月
ygopro-scripts
Commits
a652ee7c
Commit
a652ee7c
authored
Nov 30, 2018
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new card LVP2-JP011
parent
e97499e8
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
91 additions
and
0 deletions
+91
-0
c12081875.lua
c12081875.lua
+86
-0
c20318029.lua
c20318029.lua
+1
-0
c29596581.lua
c29596581.lua
+1
-0
c31786629.lua
c31786629.lua
+1
-0
c56713174.lua
c56713174.lua
+1
-0
c83107873.lua
c83107873.lua
+1
-0
No files found.
c12081875.lua
0 → 100644
View file @
a652ee7c
--轟雷機龍-サンダー・ドラゴン
function
c12081875
.
initial_effect
(
c
)
--link summon
c
:
EnableReviveLimit
()
aux
.
AddLinkProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsLinkRace
,
RACE_THUNDER
),
2
)
--apply effect
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
12081875
,
0
))
e1
:
SetCategory
(
CATEGORY_TODECK
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
,
12081875
)
e1
:
SetCondition
(
c12081875
.
effcon
)
e1
:
SetTarget
(
c12081875
.
efftg
)
e1
:
SetOperation
(
c12081875
.
effop
)
c
:
RegisterEffect
(
e1
)
--destroy replace
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_DESTROY_REPLACE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetTarget
(
c12081875
.
reptg
)
e2
:
SetValue
(
c12081875
.
repval
)
c
:
RegisterEffect
(
e2
)
end
function
c12081875
.
effcon
(
e
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_LINK
)
end
function
c12081875
.
efffilter
(
c
,
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
(
c
:
IsSetCard
(
0x11c
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToDeck
()
and
(
c
:
IsLocation
(
LOCATION_GRAVE
)
or
c
:
IsFaceup
()))
then
return
false
end
local
m
=
_G
[
"c"
..
c
:
GetCode
()]
if
not
m
then
return
false
end
local
te
=
m
.
discard_effect
if
not
te
then
return
false
end
local
tg
=
te
:
GetTarget
()
return
not
tg
or
tg
and
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
0
)
end
function
c12081875
.
efftg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
+
LOCATION_REMOVED
)
and
chkc
:
IsControler
(
tp
)
and
c12081875
.
efffilter
(
chkc
,
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c12081875
.
efffilter
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
1
,
nil
,
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c12081875
.
efffilter
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
,
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
g
,
1
,
0
,
0
)
local
tc
=
g
:
GetFirst
()
Duel
.
ClearTargetCard
()
tc
:
CreateEffectRelation
(
e
)
e
:
SetLabelObject
(
tc
)
local
m
=
_G
[
"c"
..
tc
:
GetCode
()]
local
te
=
m
.
discard_effect
local
tg
=
te
:
GetTarget
()
if
tg
then
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
1
)
end
end
function
c12081875
.
effop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
tc
=
e
:
GetLabelObject
()
if
tc
:
IsRelateToEffect
(
e
)
then
local
m
=
_G
[
"c"
..
tc
:
GetCode
()]
local
te
=
m
.
discard_effect
local
op
=
te
:
GetOperation
()
if
op
then
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
Duel
.
BreakEffect
()
local
opt
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
12081875
,
1
),
aux
.
Stringid
(
12081875
,
2
))
if
opt
==
0
then
Duel
.
SendtoDeck
(
tc
,
nil
,
0
,
REASON_EFFECT
)
else
Duel
.
SendtoDeck
(
tc
,
nil
,
1
,
REASON_EFFECT
)
end
end
end
function
c12081875
.
repfilter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsRace
(
RACE_THUNDER
)
and
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
and
not
c
:
IsReason
(
REASON_REPLACE
)
end
function
c12081875
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
eg
:
IsExists
(
c12081875
.
repfilter
,
1
,
nil
,
tp
)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_GRAVE
,
0
,
3
,
nil
)
end
if
Duel
.
SelectEffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToRemove
,
tp
,
LOCATION_GRAVE
,
0
,
3
,
3
,
nil
)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_EFFECT
+
REASON_REPLACE
)
return
true
end
return
false
end
function
c12081875
.
repval
(
e
,
c
)
return
c12081875
.
repfilter
(
c
,
e
:
GetHandlerPlayer
())
end
c20318029.lua
View file @
a652ee7c
...
@@ -15,6 +15,7 @@ function c20318029.initial_effect(c)
...
@@ -15,6 +15,7 @@ function c20318029.initial_effect(c)
e1
:
SetTarget
(
c20318029
.
atktg
)
e1
:
SetTarget
(
c20318029
.
atktg
)
e1
:
SetOperation
(
c20318029
.
atkop
)
e1
:
SetOperation
(
c20318029
.
atkop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
c20318029
.
discard_effect
=
e1
--search
--search
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
20318029
,
1
))
e2
:
SetDescription
(
aux
.
Stringid
(
20318029
,
1
))
...
...
c29596581.lua
View file @
a652ee7c
...
@@ -11,6 +11,7 @@ function c29596581.initial_effect(c)
...
@@ -11,6 +11,7 @@ function c29596581.initial_effect(c)
e1
:
SetTarget
(
c29596581
.
target
)
e1
:
SetTarget
(
c29596581
.
target
)
e1
:
SetOperation
(
c29596581
.
operation
)
e1
:
SetOperation
(
c29596581
.
operation
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
c29596581
.
discard_effect
=
e1
--spsummon
--spsummon
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
29596581
,
1
))
e2
:
SetDescription
(
aux
.
Stringid
(
29596581
,
1
))
...
...
c31786629.lua
View file @
a652ee7c
...
@@ -10,6 +10,7 @@ function c31786629.initial_effect(c)
...
@@ -10,6 +10,7 @@ function c31786629.initial_effect(c)
e1
:
SetTarget
(
c31786629
.
target
)
e1
:
SetTarget
(
c31786629
.
target
)
e1
:
SetOperation
(
c31786629
.
operation
)
e1
:
SetOperation
(
c31786629
.
operation
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
c31786629
.
discard_effect
=
e1
end
end
function
c31786629
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c31786629
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
c56713174.lua
View file @
a652ee7c
...
@@ -13,6 +13,7 @@ function c56713174.initial_effect(c)
...
@@ -13,6 +13,7 @@ function c56713174.initial_effect(c)
e1
:
SetTarget
(
c56713174
.
target
)
e1
:
SetTarget
(
c56713174
.
target
)
e1
:
SetOperation
(
c56713174
.
operation
)
e1
:
SetOperation
(
c56713174
.
operation
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
c56713174
.
discard_effect
=
e1
--search thunder dragon
--search thunder dragon
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
56713174
,
1
))
e2
:
SetDescription
(
aux
.
Stringid
(
56713174
,
1
))
...
...
c83107873.lua
View file @
a652ee7c
...
@@ -11,6 +11,7 @@ function c83107873.initial_effect(c)
...
@@ -11,6 +11,7 @@ function c83107873.initial_effect(c)
e1
:
SetTarget
(
c83107873
.
target
)
e1
:
SetTarget
(
c83107873
.
target
)
e1
:
SetOperation
(
c83107873
.
operation
)
e1
:
SetOperation
(
c83107873
.
operation
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
c83107873
.
discard_effect
=
e1
--shuffle and draw
--shuffle and draw
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
83107873
,
1
))
e2
:
SetDescription
(
aux
.
Stringid
(
83107873
,
1
))
...
...
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