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
76239843
Commit
76239843
authored
Aug 30, 2022
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
E
parent
50b3cab3
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
6 deletions
+16
-6
expansions/script/c12899017.lua
expansions/script/c12899017.lua
+1
-1
expansions/script/c31300023.lua
expansions/script/c31300023.lua
+5
-2
expansions/script/c31300025.lua
expansions/script/c31300025.lua
+6
-3
expansions/script/c31300028.lua
expansions/script/c31300028.lua
+4
-0
No files found.
expansions/script/c12899017.lua
View file @
76239843
...
...
@@ -43,7 +43,7 @@ function c12899017.cfilter(c)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x5a71
)
end
function
c12899017
.
sumcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
c12899017
.
cfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
return
Duel
.
IsExistingMatchingCard
(
c12899017
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
function
c12899017
.
sumtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
...
...
expansions/script/c31300023.lua
View file @
76239843
...
...
@@ -21,7 +21,7 @@ function s.eqlimit(e,c)
return
s
.
eqfilter
(
c
)
end
function
s
.
resfilter
(
c
)
return
c
:
IsComplexType
(
TYPE_SPELL
+
TYPE_EQUIP
)
or
(
c
:
IsRace
(
RACE_SEASERPENT
)
and
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
and
c
:
IsLevel
(
1
))
return
c
:
IsComplexType
(
TYPE_SPELL
+
TYPE_EQUIP
)
or
(
c
:
IsRace
(
RACE_SEASERPENT
)
and
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
and
c
:
IsLevel
(
1
))
and
c
:
IsReleasable
()
end
function
s
.
thop
(
e
,
tp
)
local
c
=
rscf
.
GetSelf
(
e
)
...
...
@@ -78,15 +78,18 @@ function s.tg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
op
=
rshint
.
SelectOption
(
tp
,
b1
,{
id
,
0
},
b2
,{
id
,
1
})
if
op
==
1
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
e
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
Duel
.
SelectTarget
(
tp
,
s
.
eqfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_EQUIP
,
e
:
GetHandler
(),
1
,
0
,
0
)
else
e
:
SetProperty
(
0
)
rstg
.
token
(
id
+
1
)(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_EQUIP
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
e
:
SetLabel
(
op
)
end
function
s
.
act
(
e
,
tp
)
local
c
=
rscf
.
GetFaceUpSelf
(
e
),
rscf
.
GetTargetCard
(
Card
.
IsFaceup
)
local
c
,
tc
=
rscf
.
GetFaceUpSelf
(
e
),
rscf
.
GetTargetCard
(
Card
.
IsFaceup
)
local
op
=
e
:
GetLabel
()
if
op
==
1
then
if
c
and
tc
then
...
...
expansions/script/c31300025.lua
View file @
76239843
...
...
@@ -21,7 +21,7 @@ function s.eqlimit(e,c)
return
s
.
eqfilter
(
c
)
end
function
s
.
resfilter
(
c
)
return
c
:
IsComplexType
(
TYPE_SPELL
+
TYPE_EQUIP
)
or
(
c
:
IsRace
(
RACE_SEASERPENT
)
and
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
and
c
:
IsLevel
(
1
))
return
c
:
IsComplexType
(
TYPE_SPELL
+
TYPE_EQUIP
)
or
(
c
:
IsRace
(
RACE_SEASERPENT
)
and
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
and
c
:
IsLevel
(
1
))
and
c
:
IsReleasable
()
end
function
s
.
thop
(
e
,
tp
)
local
c
=
rscf
.
GetSelf
(
e
)
...
...
@@ -75,18 +75,21 @@ function s.tg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
b2
=
rstg
.
token
(
id
+
1
)(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
0
)
and
not
Duel
.
IsExistingMatchingCard
(
s
.
exfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
if
chkc
then
return
s
.
eqfilter
(
chkc
)
and
chkc
:
IsControler
(
tp
)
end
if
chk
==
0
then
return
b1
or
b2
end
local
op
=
rshint
.
SelectOption
(
tp
,
b1
,{
m
,
0
},
b2
,{
m
,
1
})
local
op
=
rshint
.
SelectOption
(
tp
,
b1
,{
id
,
0
},
b2
,{
id
,
1
})
if
op
==
1
then
e
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
Duel
.
SelectTarget
(
tp
,
s
.
eqfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_EQUIP
,
e
:
GetHandler
(),
1
,
0
,
0
)
else
e
:
SetProperty
(
0
)
rstg
.
token
(
id
+
1
)(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_EQUIP
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
e
:
SetLabel
(
op
)
end
function
s
.
act
(
e
,
tp
)
local
c
=
rscf
.
GetFaceUpSelf
(
e
),
rscf
.
GetTargetCard
(
Card
.
IsFaceup
)
local
c
,
tc
=
rscf
.
GetFaceUpSelf
(
e
),
rscf
.
GetTargetCard
(
Card
.
IsFaceup
)
local
op
=
e
:
GetLabel
()
if
op
==
1
then
if
c
and
tc
then
...
...
expansions/script/c31300028.lua
View file @
76239843
...
...
@@ -22,6 +22,10 @@ function s.initial_effect(c)
e2
:
SetValue
(
s
.
eqlimit
)
c
:
RegisterEffect
(
e2
)
end
function
s
.
thcon
(
e
,
tp
)
local
c
=
e
:
GetHandler
()
return
c
:
IsPreviousLocation
(
LOCATION_ONFIELD
)
end
function
s
.
thfilter
(
c
)
return
c
:
IsComplexType
(
TYPE_SPELL
+
TYPE_EQUIP
)
and
c
:
IsAbleToHand
()
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