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
Ai
ygopro-222DIY-cards
Commits
305ec2db
Commit
305ec2db
authored
Oct 31, 2019
by
TanakaKotoha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lua fix
parent
62424159
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
18 additions
and
20 deletions
+18
-20
expansions/script/c33400402.lua
expansions/script/c33400402.lua
+4
-4
expansions/script/c33701017.lua
expansions/script/c33701017.lua
+3
-2
expansions/script/c33701018.lua
expansions/script/c33701018.lua
+4
-3
expansions/script/c33701020.lua
expansions/script/c33701020.lua
+3
-5
expansions/script/c33701021.lua
expansions/script/c33701021.lua
+3
-5
expansions/script/c81011302.lua
expansions/script/c81011302.lua
+1
-1
No files found.
expansions/script/c33400402.lua
View file @
305ec2db
...
@@ -13,14 +13,14 @@ function c33400402.initial_effect(c)
...
@@ -13,14 +13,14 @@ function c33400402.initial_effect(c)
c
:
RegisterEffect
(
e0
)
c
:
RegisterEffect
(
e0
)
--To Hand
--To Hand
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
595626
,
1
))
e1
:
SetDescription
(
aux
.
Stringid
(
33400402
,
1
))
e1
:
SetCategory
(
CATEGORY_TOHAND
)
e1
:
SetCategory
(
CATEGORY_TOHAND
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_TO_GRAVE
)
e1
:
SetCode
(
EVENT_TO_GRAVE
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetCountLimit
(
1
,
595627
)
e1
:
SetCountLimit
(
1
,
33400402
)
e1
:
SetCondition
(
c
595626
.
thcon
)
e1
:
SetCondition
(
c
33400402
.
thcon
)
e1
:
SetOperation
(
c
595626
.
thop
)
e1
:
SetOperation
(
c
33400402
.
thop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c33400402
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c33400402
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
expansions/script/c33701017.lua
View file @
305ec2db
...
@@ -61,9 +61,10 @@ function s.spcost(e, tp, eg, ep, ev, re, r, rp, chk)
...
@@ -61,9 +61,10 @@ function s.spcost(e, tp, eg, ep, ev, re, r, rp, chk)
local
rg
=
Duel
.
GetMatchingGroup
(
s
.
spfilter
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
e
:
GetHandler
())
local
rg
=
Duel
.
GetMatchingGroup
(
s
.
spfilter
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
e
:
GetHandler
())
if
chk
==
0
then
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
-
2
and
#
rg
>
1
and
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
-
2
and
#
rg
>
1
and
aux
.
SelectUnselectGroup
(
rg
,
e
,
tp
,
2
,
2
,
s
.
ChkfMMZ
(
1
),
0
)
rg
:
CheckSubGroup
(
s
.
ChkfMMZ
(
1
),
2
,
2
,
tp
)
end
end
local
g
=
aux
.
SelectUnselectGroup
(
rg
,
e
,
tp
,
2
,
2
,
s
.
ChkfMMZ
(
1
),
1
,
tp
,
HINTMSG_REMOVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
rg
:
SelectSubGroup
(
s
.
ChkfMMZ
(
1
),
tp
,
2
,
2
,
tp
)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_COST
)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_COST
)
end
end
function
s
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
expansions/script/c33701018.lua
View file @
305ec2db
...
@@ -53,7 +53,7 @@ function s.MZFilter(c, tp)
...
@@ -53,7 +53,7 @@ function s.MZFilter(c, tp)
return
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
GetSequence
()
<
5
and
c
:
IsControler
(
tp
)
return
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
GetSequence
()
<
5
and
c
:
IsControler
(
tp
)
end
end
function
s
.
ChkfMMZ
(
sumcount
)
function
s
.
ChkfMMZ
(
sumcount
)
return
function
(
sg
,
e
,
tp
,
mg
)
return
function
(
sg
,
tp
)
return
sg
:
FilterCount
(
s
.
MZFilter
,
nil
,
tp
)
+
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>=
sumcount
return
sg
:
FilterCount
(
s
.
MZFilter
,
nil
,
tp
)
+
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>=
sumcount
end
end
end
end
...
@@ -61,9 +61,10 @@ function s.spcost(e, tp, eg, ep, ev, re, r, rp, chk)
...
@@ -61,9 +61,10 @@ function s.spcost(e, tp, eg, ep, ev, re, r, rp, chk)
local
rg
=
Duel
.
GetMatchingGroup
(
s
.
spfilter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
+
LOCATION_GRAVE
,
0
,
e
:
GetHandler
())
local
rg
=
Duel
.
GetMatchingGroup
(
s
.
spfilter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
+
LOCATION_GRAVE
,
0
,
e
:
GetHandler
())
if
chk
==
0
then
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
-
3
and
#
rg
>
1
and
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
-
3
and
#
rg
>
1
and
aux
.
SelectUnselectGroup
(
rg
,
e
,
tp
,
3
,
3
,
s
.
ChkfMMZ
(
1
),
0
)
rg
:
CheckSubGroup
(
s
.
ChkfMMZ
(
1
),
3
,
3
,
tp
)
end
end
local
g
=
aux
.
SelectUnselectGroup
(
rg
,
e
,
tp
,
3
,
3
,
s
.
ChkfMMZ
(
1
),
1
,
tp
,
HINTMSG_REMOVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
rg
:
SelectSubGroup
(
s
.
ChkfMMZ
(
1
),
3
,
3
,
tp
)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_COST
)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_COST
)
end
end
function
s
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
expansions/script/c33701020.lua
View file @
305ec2db
...
@@ -62,19 +62,17 @@ end
...
@@ -62,19 +62,17 @@ end
function
s
.
tgfilter
(
c
)
function
s
.
tgfilter
(
c
)
return
c
:
IsSetCard
(
0x144e
)
and
c
:
IsAbleToGrave
()
return
c
:
IsSetCard
(
0x144e
)
and
c
:
IsAbleToGrave
()
end
end
function
s
.
rescon
(
sg
,
e
,
tp
,
mg
)
return
sg
:
GetClassCount
(
Card
.
GetCode
)
==
#
sg
end
function
s
.
tgtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
tgtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
Duel
.
GetMatchingGroup
(
s
.
tgfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
s
.
tgfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
if
chk
==
0
then
if
chk
==
0
then
return
aux
.
SelectUnselectGroup
(
g
,
e
,
tp
,
1
,
4
,
s
.
rescon
,
chk
)
return
g
:
CheckSubGroup
(
aux
.
dncheck
,
1
,
4
)
end
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
g
,
1
,
0
,
0
)
end
end
function
s
.
tgop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
tgop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
s
.
tgfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
,
e
,
tp
)
local
g
=
Duel
.
GetMatchingGroup
(
s
.
tgfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
,
e
,
tp
)
local
dg
=
aux
.
SelectUnselectGroup
(
g
,
e
,
tp
,
1
,
4
,
s
.
rescon
,
1
,
tp
,
HINTMSG_TOGRAVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
dg
=
g
:
SelectSubGroup
(
aux
.
dncheck
,
tp
,
1
,
4
)
if
#
dg
>
0
then
if
#
dg
>
0
then
local
ct
=
Duel
.
SendtoGrave
(
dg
,
REASON_EFFECT
)
local
ct
=
Duel
.
SendtoGrave
(
dg
,
REASON_EFFECT
)
if
ct
>
0
and
Duel
.
Recover
(
tp
,
ct
*
1000
,
REASON_EFFECT
)
>
0
then
if
ct
>
0
and
Duel
.
Recover
(
tp
,
ct
*
1000
,
REASON_EFFECT
)
>
0
then
...
...
expansions/script/c33701021.lua
View file @
305ec2db
...
@@ -33,16 +33,14 @@ end
...
@@ -33,16 +33,14 @@ end
function
s
.
tgfilter
(
c
)
function
s
.
tgfilter
(
c
)
return
c
:
IsSetCard
(
0x144e
)
and
c
:
IsAbleToGrave
()
return
c
:
IsSetCard
(
0x144e
)
and
c
:
IsAbleToGrave
()
end
end
function
s
.
rescon
(
sg
,
e
,
tp
,
mg
)
return
sg
:
GetClassCount
(
Card
.
GetCode
)
==
#
sg
end
function
s
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
return
end
end
local
g
=
Duel
.
GetMatchingGroup
(
s
.
tgfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
s
.
tgfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
if
aux
.
SelectUnselectGroup
(
g
,
e
,
tp
,
1
,
3
,
s
.
rescon
,
0
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
id
,
0
))
then
if
g
:
CheckSubGroup
(
aux
.
dncheck
,
1
,
3
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
id
,
0
))
then
local
dg
=
aux
.
SelectUnselectGroup
(
g
,
e
,
tp
,
1
,
3
,
s
.
rescon
,
1
,
tp
,
HINTMSG_TOGRAVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
dg
=
g
:
SelectSubGroup
(
aux
.
dncheck
,
tp
,
1
,
3
)
Duel
.
SendtoGrave
(
dg
,
REASON_EFFECT
)
Duel
.
SendtoGrave
(
dg
,
REASON_EFFECT
)
end
end
end
end
...
...
expansions/script/c81011302.lua
View file @
305ec2db
...
@@ -61,7 +61,7 @@ function c81011302.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -61,7 +61,7 @@ function c81011302.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
end
function
c81011302
.
thfilter
(
c
,
lv
)
function
c81011302
.
thfilter
(
c
,
lv
)
return
c
:
IsLevel
(
lv
)
and
c
:
Is
Race
(
RACE_DRAGON
)
and
c
:
IsAbleToHand
()
return
c
:
IsLevel
(
lv
)
and
c
:
Is
Type
(
TYPE_RITUAL
)
and
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
IsAbleToHand
()
end
end
function
c81011302
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c81011302
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
...
...
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