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
0da8ec1b
Commit
0da8ec1b
authored
May 17, 2016
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix and update Destiny Board
parent
13bb48af
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
37 deletions
+17
-37
c94212438.lua
c94212438.lua
+17
-37
No files found.
c94212438.lua
View file @
0da8ec1b
...
@@ -6,13 +6,14 @@ function c94212438.initial_effect(c)
...
@@ -6,13 +6,14 @@ function c94212438.initial_effect(c)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetHintTiming
(
0
,
TIMING_END_PHASE
)
e1
:
SetHintTiming
(
0
,
TIMING_END_PHASE
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--
--
place card
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
94212438
,
0
))
e2
:
SetDescription
(
aux
.
Stringid
(
94212438
,
0
))
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e2
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e2
:
SetCountLimit
(
1
)
e2
:
SetCountLimit
(
1
)
e2
:
SetLabel
(
94212438
)
e2
:
SetCondition
(
c94212438
.
condition
)
e2
:
SetCondition
(
c94212438
.
condition
)
e2
:
SetOperation
(
c94212438
.
operation
)
e2
:
SetOperation
(
c94212438
.
operation
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
...
@@ -45,55 +46,34 @@ function c94212438.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -45,55 +46,34 @@ function c94212438.operation(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
<=
0
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
<=
0
then
return
end
if
c
:
GetFlagEffect
(
94212438
)
==
0
then
local
ids
=
{
31893528
,
67287533
,
94772232
,
30170981
}
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
94212438
,
1
))
local
id
=
ids
[
c
:
GetFlagEffect
(
94212438
)
+
1
]
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsCode
,
tp
,
LOCATION_DECK
+
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
31893528
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
94212438
,
1
))
if
g
:
GetCount
()
>
0
then
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsCode
,
tp
,
LOCATION_DECK
+
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
id
)
Duel
.
MoveToField
(
g
:
GetFirst
(),
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEUP
,
true
)
if
g
:
GetCount
()
>
0
and
Duel
.
MoveToField
(
g
:
GetFirst
(),
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEUP
,
true
)
then
end
c
:
RegisterFlagEffect
(
94212438
,
RESET_EVENT
+
0x1fe0000
,
0
,
0
)
elseif
c
:
GetFlagEffect
(
94212438
)
==
1
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
94212438
,
1
))
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsCode
,
tp
,
LOCATION_DECK
+
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
67287533
)
if
g
:
GetCount
()
>
0
then
Duel
.
MoveToField
(
g
:
GetFirst
(),
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEUP
,
true
)
end
elseif
c
:
GetFlagEffect
(
94212438
)
==
2
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
94212438
,
1
))
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsCode
,
tp
,
LOCATION_DECK
+
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
94772232
)
if
g
:
GetCount
()
>
0
then
Duel
.
MoveToField
(
g
:
GetFirst
(),
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEUP
,
true
)
end
elseif
c
:
GetFlagEffect
(
94212438
)
==
3
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
94212438
,
1
))
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsCode
,
tp
,
LOCATION_DECK
+
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
30170981
)
if
g
:
GetCount
()
>
0
then
Duel
.
MoveToField
(
g
:
GetFirst
(),
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEUP
,
true
)
end
end
end
c
:
RegisterFlagEffect
(
94212438
,
RESET_EVENT
+
0x1fe0000
,
0
,
0
)
end
end
function
c94212438
.
cfilter
2
(
c
,
tp
)
function
c94212438
.
cfilter
1
(
c
,
tp
)
return
c
:
IsCo
de
(
94212438
,
31893528
,
67287533
,
94772232
,
30170981
)
and
c
:
IsControler
(
tp
)
return
c
:
IsCo
ntroler
(
tp
)
and
c
:
IsCode
(
94212438
,
31893528
,
67287533
,
94772232
,
30170981
)
end
end
function
c94212438
.
cfilter
3
(
c
)
function
c94212438
.
cfilter
2
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
94212438
,
31893528
,
67287533
,
94772232
,
30170981
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
94212438
,
31893528
,
67287533
,
94772232
,
30170981
)
end
end
function
c94212438
.
tgcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c94212438
.
tgcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c94212438
.
cfilter
2
,
1
,
nil
,
tp
)
return
eg
:
IsExists
(
c94212438
.
cfilter
1
,
1
,
nil
,
tp
)
end
end
function
c94212438
.
tgop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c94212438
.
tgop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
c94212438
.
cfilter
3
,
tp
,
LOCATION_ONFIELD
,
0
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
c94212438
.
cfilter
2
,
tp
,
LOCATION_ONFIELD
,
0
,
nil
)
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
end
end
function
c94212438
.
cfilter
1
(
c
,
code
)
function
c94212438
.
cfilter
3
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
code
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
31893528
,
67287533
,
94772232
,
30170981
)
end
end
function
c94212438
.
winop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c94212438
.
winop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
WIN_REASON_DESTINY_BOARD
=
0x15
local
WIN_REASON_DESTINY_BOARD
=
0x15
local
c
=
e
:
GetHandler
()
local
g
=
Duel
.
GetMatchingGroup
(
c94212438
.
cfilter3
,
tp
,
LOCATION_ONFIELD
,
0
,
e
:
GetHandler
())
local
g
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_ONFIELD
,
0
)
if
g
:
GetClassCount
(
Card
.
GetCode
)
==
4
then
if
g
:
IsExists
(
c94212438
.
cfilter1
,
1
,
nil
,
94212438
)
and
g
:
IsExists
(
c94212438
.
cfilter1
,
1
,
nil
,
31893528
)
and
g
:
IsExists
(
c94212438
.
cfilter1
,
1
,
nil
,
67287533
)
and
g
:
IsExists
(
c94212438
.
cfilter1
,
1
,
nil
,
94772232
)
and
g
:
IsExists
(
c94212438
.
cfilter1
,
1
,
nil
,
30170981
)
then
Duel
.
Win
(
tp
,
WIN_REASON_DESTINY_BOARD
)
Duel
.
Win
(
tp
,
WIN_REASON_DESTINY_BOARD
)
end
end
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