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
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
MyCard
ygopro-scripts
Commits
96080a9f
Commit
96080a9f
authored
Apr 15, 2016
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
d8a09f73
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
18 additions
and
4 deletions
+18
-4
c12079734.lua
c12079734.lua
+2
-0
c12467005.lua
c12467005.lua
+2
-0
c20032555.lua
c20032555.lua
+3
-1
c40044918.lua
c40044918.lua
+5
-2
c56350972.lua
c56350972.lua
+3
-0
c84305651.lua
c84305651.lua
+3
-1
No files found.
c12079734.lua
View file @
96080a9f
...
@@ -37,10 +37,12 @@ function c12079734.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -37,10 +37,12 @@ function c12079734.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
op
==
0
then
if
op
==
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c12079734
.
filter1
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
c
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c12079734
.
filter1
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
c
)
e
:
SetCategory
(
CATEGORY_EQUIP
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_LEAVE_GRAVE
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_LEAVE_GRAVE
,
g
,
1
,
0
,
0
)
else
else
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c12079734
.
filter2
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c12079734
.
filter2
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
e
:
SetCategory
(
CATEGORY_TODECK
+
CATEGORY_DRAW
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
end
end
...
...
c12467005.lua
View file @
96080a9f
...
@@ -29,10 +29,12 @@ function c12467005.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -29,10 +29,12 @@ function c12467005.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
op
==
0
then
if
op
==
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_POSCHANGE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_POSCHANGE
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c12467005
.
filter1
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c12467005
.
filter1
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
e
:
SetCategory
(
CATEGORY_POSITION
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_POSITION
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_POSITION
,
g
,
1
,
0
,
0
)
else
else
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RTOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RTOHAND
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c12467005
.
filter2
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c12467005
.
filter2
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
e
:
SetCategory
(
CATEGORY_TOHAND
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
1
,
0
,
0
)
end
end
end
end
...
...
c20032555.lua
View file @
96080a9f
...
@@ -2,7 +2,6 @@
...
@@ -2,7 +2,6 @@
function
c20032555
.
initial_effect
(
c
)
function
c20032555
.
initial_effect
(
c
)
--effects
--effects
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_DAMAGE
)
e1
:
SetDescription
(
aux
.
Stringid
(
20032555
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
20032555
,
0
))
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
...
@@ -25,7 +24,10 @@ function c20032555.efftg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -25,7 +24,10 @@ function c20032555.efftg(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
e
:
SetLabel
(
opt
)
e
:
SetLabel
(
opt
)
if
opt
==
0
then
if
opt
==
0
then
e
:
SetCategory
(
CATEGORY_DAMAGE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
800
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
800
)
else
e
:
SetCategory
(
CATEGORY_LVCHANGE
)
end
end
end
end
function
c20032555
.
effop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c20032555
.
effop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c40044918.lua
View file @
96080a9f
...
@@ -3,7 +3,6 @@ function c40044918.initial_effect(c)
...
@@ -3,7 +3,6 @@ function c40044918.initial_effect(c)
--effect
--effect
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
40044918
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
40044918
,
0
))
e1
:
SetCategory
(
CATEGORY_DESTROY
+
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e1
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
)
e1
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
)
e1
:
SetType
(
EFFECT_TYPE_TRIGGER_O
+
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_TRIGGER_O
+
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e1
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
...
@@ -45,8 +44,12 @@ function c40044918.tg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -45,8 +44,12 @@ function c40044918.tg(e,tp,eg,ep,ev,re,r,rp,chk)
e
:
SetLabel
(
sel
)
e
:
SetLabel
(
sel
)
if
sel
==
1
then
if
sel
==
1
then
local
g
=
Duel
.
GetMatchingGroup
(
c40044918
.
desfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
c40044918
.
desfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
)
e
:
SetCategory
(
CATEGORY_DESTROY
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
else
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
else
e
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
end
end
function
c40044918
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c40044918
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
c56350972.lua
View file @
96080a9f
...
@@ -72,11 +72,14 @@ function c56350972.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -72,11 +72,14 @@ function c56350972.target(e,tp,eg,ep,ev,re,r,rp,chk)
local
sel
=
opval
[
op
]
local
sel
=
opval
[
op
]
e
:
SetLabel
(
sel
)
e
:
SetLabel
(
sel
)
if
sel
==
1
then
if
sel
==
1
then
e
:
SetCategory
(
CATEGORY_DRAW
+
CATEGORY_HANDES
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
0
,
0
,
tp
,
2
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
0
,
0
,
tp
,
2
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_HANDES
,
0
,
0
,
tp
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_HANDES
,
0
,
0
,
tp
,
1
)
elseif
sel
==
2
then
elseif
sel
==
2
then
e
:
SetCategory
(
CATEGORY_HANDES
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_HANDES
,
0
,
0
,
1
-
tp
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_HANDES
,
0
,
0
,
1
-
tp
,
1
)
else
else
e
:
SetCategory
(
CATEGORY_TOHAND
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_GRAVE
)
end
end
end
end
...
...
c84305651.lua
View file @
96080a9f
...
@@ -14,7 +14,6 @@ function c84305651.initial_effect(c)
...
@@ -14,7 +14,6 @@ function c84305651.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--special summon
--special summon
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetCode
(
EVENT_BATTLE_DESTROYING
)
e2
:
SetCode
(
EVENT_BATTLE_DESTROYING
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCondition
(
aux
.
bdogcon
)
e2
:
SetCondition
(
aux
.
bdogcon
)
...
@@ -58,7 +57,10 @@ function c84305651.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -58,7 +57,10 @@ function c84305651.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
if
op
==
0
then
if
op
==
0
then
Duel
.
SetTargetCard
(
bc
)
Duel
.
SetTargetCard
(
bc
)
e
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
bc
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
bc
,
1
,
0
,
0
)
else
e
:
SetCategory
(
CATEGORY_CONTROL
)
end
end
e
:
SetLabel
(
op
)
e
:
SetLabel
(
op
)
end
end
...
...
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