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
Soulgamer
ygopro-222DIY-cards
Commits
2a071b3b
Commit
2a071b3b
authored
Nov 06, 2019
by
TanakaKotoha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lua fix
parent
2fd922cd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
30 deletions
+36
-30
expansions/script/c12031011.lua
expansions/script/c12031011.lua
+4
-1
expansions/script/c65071106.lua
expansions/script/c65071106.lua
+5
-8
expansions/script/c77702002.lua
expansions/script/c77702002.lua
+27
-21
No files found.
expansions/script/c12031011.lua
View file @
2a071b3b
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
function
c12031011
.
initial_effect
(
c
)
function
c12031011
.
initial_effect
(
c
)
c
:
SetSPSummonOnce
(
12031011
)
c
:
SetSPSummonOnce
(
12031011
)
--xyz summon
--xyz summon
aux
.
AddXyzProcedure
(
c
,
nil
,
8
,
2
,
c12031011
.
ovfilter
,
aux
.
Stringid
(
12031011
,
0
))
aux
.
AddXyzProcedure
(
c
,
c12031011
.
ovfilter1
,
4
,
4
,
c12031011
.
ovfilter
,
aux
.
Stringid
(
12031011
,
0
))
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
--effect
--effect
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
...
@@ -47,6 +47,9 @@ end
...
@@ -47,6 +47,9 @@ end
function
c12031011
.
ovfilter
(
c
)
function
c12031011
.
ovfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
12031000
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
12031000
)
end
end
function
c12031011
.
ovfilter1
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsAttribute
(
ATTRIBUTE_DARK
)
end
function
c12031011
.
discon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c12031011
.
discon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ep
~=
tp
return
ep
~=
tp
end
end
...
...
expansions/script/c65071106.lua
View file @
2a071b3b
...
@@ -32,9 +32,9 @@ function c65071106.initial_effect(c)
...
@@ -32,9 +32,9 @@ function c65071106.initial_effect(c)
local
e5
=
Effect
.
CreateEffect
(
c
)
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetCategory
(
CATEGORY_COUNTER
)
e5
:
SetCategory
(
CATEGORY_COUNTER
)
e5
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e5
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e5
:
SetRange
(
LOCATION_SZONE
)
e5
:
SetCountLimit
(
1
)
e5
:
SetCountLimit
(
1
)
e5
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e5
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e5
:
SetTarget
(
c65071106
.
contg
)
e5
:
SetOperation
(
c65071106
.
conop
)
e5
:
SetOperation
(
c65071106
.
conop
)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
--tograve
--tograve
...
@@ -64,21 +64,18 @@ function c65071106.eqop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -64,21 +64,18 @@ function c65071106.eqop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c65071106
.
confil
(
c
,
e
)
function
c65071106
.
confil
(
c
,
e
)
return
c
:
GetCounter
(
0x1da0
)
==
0
return
c
:
GetCounter
(
0x1da0
)
==
0
and
c
:
IsFaceup
()
end
function
c65071106
.
contg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c65071106
.
confil
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
e
:
GetHandler
(),
e
)
and
Duel
.
IsExistingMatchingCard
(
c65071106
.
confil
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
,
e
)
end
end
end
function
c65071106
.
conop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c65071106
.
conop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
(
Duel
.
IsExistingMatchingCard
(
c65071106
.
confil
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
e
:
GetHandler
(),
e
)
and
Duel
.
IsExistingMatchingCard
(
c65071106
.
confil
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
,
e
))
then
return
end
if
not
(
Duel
.
IsExistingMatchingCard
(
c65071106
.
confil
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
e
:
GetHandler
(),
e
)
and
Duel
.
IsExistingMatchingCard
(
c65071106
.
confil
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
,
e
))
then
return
end
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
local
g1
=
Duel
.
SelectMatchingCard
(
tp
,
c65071106
.
confil
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
1
,
e
:
GetHandler
(),
e
)
local
g1
=
Duel
.
SelectMatchingCard
(
tp
,
c65071106
.
confil
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
1
,
e
:
GetHandler
(),
e
)
Duel
.
HintSelection
(
g1
)
Duel
.
HintSelection
(
g1
)
local
g2
=
Duel
.
SelectMatchingCard
(
c65071106
.
confil
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
,
e
)
local
g2
=
Duel
.
SelectMatchingCard
(
tp
,
c65071106
.
confil
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
,
e
)
Duel
.
HintSelection
(
g2
)
Duel
.
HintSelection
(
g2
)
local
tc1
=
g1
:
GetFirst
()
local
tc1
=
g1
:
GetFirst
()
local
tc2
=
g
1
:
GetFirst
()
local
tc2
=
g
2
:
GetFirst
()
tc1
:
AddCounter
(
0x1da0
,
1
)
tc1
:
AddCounter
(
0x1da0
,
1
)
tc2
:
AddCounter
(
0x1da0
,
1
)
tc2
:
AddCounter
(
0x1da0
,
1
)
end
end
...
...
expansions/script/c77702002.lua
View file @
2a071b3b
...
@@ -83,16 +83,16 @@ function scard.initial_effect(c)
...
@@ -83,16 +83,16 @@ function scard.initial_effect(c)
Duel
.
RegisterEffect
(
e7
,
tp
)
Duel
.
RegisterEffect
(
e7
,
tp
)
end
)
end
)
c
:
RegisterEffect
(
e6
)
c
:
RegisterEffect
(
e6
)
local
e8
=
Effect
.
CreateEffect
(
c
)
--
local e8=Effect.CreateEffect(c)
e8
:
SetDescription
(
m
*
16
+
4
)
--
e8:SetDescription(m*16+4)
e8
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
--
e8:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e8
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
+
EFFECT_FLAG_CANNOT_DISABLE
)
--
e8:SetProperty(EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_CANNOT_DISABLE)
e8
:
SetRange
(
LOCATION_FZONE
)
--
e8:SetRange(LOCATION_FZONE)
e8
:
SetCountLimit
(
1
)
--
e8:SetCountLimit(1)
e8
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
--
e8:SetCode(EVENT_PHASE+PHASE_END)
e8
:
SetCondition
(
cm
.
descon
)
--
e8:SetCondition(cm.descon)
e8
:
SetOperation
(
cm
.
desop
)
--
e8:SetOperation(cm.desop)
c
:
RegisterEffect
(
e8
)
--
c:RegisterEffect(e8)
if
scard
.
counter
==
nil
then
if
scard
.
counter
==
nil
then
scard
.
counter
=
true
scard
.
counter
=
true
scard
[
0
]
=
0
scard
[
0
]
=
0
...
@@ -165,20 +165,26 @@ function scard.gyop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -165,20 +165,26 @@ function scard.gyop(e,tp,eg,ep,ev,re,r,rp)
local
ct
=
c
:
GetTurnCounter
()
local
ct
=
c
:
GetTurnCounter
()
ct
=
ct
+
1
ct
=
ct
+
1
c
:
SetTurnCounter
(
ct
)
c
:
SetTurnCounter
(
ct
)
if
ct
==
3
then
if
ct
==
3
then
Duel
.
SendtoGrave
(
c
,
REASON_RULE
)
Duel
.
SendtoGrave
(
c
,
REASON_RULE
)
end
else
if
Duel
.
IsExistingMatchingCard
(
Card
.
IsDiscardable
,
tp
,
LOCATION_HAND
,
0
,
1
,
e
:
GetHandler
())
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
5
))
then
end
function
cm
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnPlayer
()
==
tp
end
function
cm
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
Duel
.
HintSelection
(
Group
.
FromCards
(
c
))
if
Duel
.
IsExistingMatchingCard
(
Card
.
IsDiscardable
,
tp
,
LOCATION_HAND
,
0
,
1
,
e
:
GetHandler
())
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
5
))
then
Duel
.
DiscardHand
(
tp
,
Card
.
IsDiscardable
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
,
e
:
GetHandler
())
Duel
.
DiscardHand
(
tp
,
Card
.
IsDiscardable
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
,
e
:
GetHandler
())
else
Duel
.
SendtoGrave
(
c
,
REASON_COST
)
end
else
Duel
.
SendtoGrave
(
c
,
REASON_COST
)
end
end
end
end
--function cm.descon(e,tp,eg,ep,ev,re,r,rp)
--local c=e:GetHandler()
--return Duel.GetTurnPlayer()==tp and
--end
--function cm.desop(e,tp,eg,ep,ev,re,r,rp)
--local c=e:GetHandler()
--Duel.HintSelection(Group.FromCards(c))
--if Duel.IsExistingMatchingCard(Card.IsDiscardable,tp,LOCATION_HAND,0,1,e:GetHandler()) and Duel.SelectYesNo(tp,aux.Stringid(m,5)) then
--Duel.DiscardHand(tp,Card.IsDiscardable,1,1,REASON_COST+REASON_DISCARD,e:GetHandler())
--else Duel.SendtoGrave(c,REASON_COST) end
--end
function
cm
.
setlimit
(
e
,
c
,
tp
)
function
cm
.
setlimit
(
e
,
c
,
tp
)
return
c
:
IsType
(
TYPE_FIELD
)
return
c
:
IsType
(
TYPE_FIELD
)
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