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
5672ac76
Commit
5672ac76
authored
Nov 07, 2017
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
b68df2a6
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
25 additions
and
154 deletions
+25
-154
c21377582.lua
c21377582.lua
+4
-37
c22499034.lua
c22499034.lua
+4
-20
c58984738.lua
c58984738.lua
+4
-20
c82697428.lua
c82697428.lua
+4
-37
c94982447.lua
c94982447.lua
+4
-20
c95004025.lua
c95004025.lua
+4
-20
constant.lua
constant.lua
+1
-0
No files found.
c21377582.lua
View file @
5672ac76
...
...
@@ -2,13 +2,12 @@
function
c21377582
.
initial_effect
(
c
)
--summon with s/t
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
21377582
,
0
))
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EFFECT_
SUMMON_PROC
)
e1
:
Set
Condition
(
c21377582
.
otcon
)
e1
:
Set
Operation
(
c21377582
.
otop
)
e1
:
SetValue
(
SUMMON_TYPE_ADVANCE
)
e1
:
SetCode
(
EFFECT_
ADD_EXTRA_TRIBUTE
)
e1
:
Set
TargetRange
(
LOCATION_SZONE
,
0
)
e1
:
Set
Target
(
aux
.
TargetBoolFunction
(
Card
.
IsType
,
TYPE_CONTINUOUS
)
)
e1
:
SetValue
(
POS_FACEUP_ATTACK
)
c
:
RegisterEffect
(
e1
)
--tribute check
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -41,38 +40,6 @@ function c21377582.initial_effect(c)
e4
:
SetOperation
(
c21377582
.
desop
)
c
:
RegisterEffect
(
e4
)
end
function
c21377582
.
otfilter
(
c
)
return
c
:
IsType
(
TYPE_CONTINUOUS
)
and
c
:
IsReleasable
()
end
function
c21377582
.
otcon
(
e
,
c
,
minc
)
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
local
mg
=
Duel
.
GetMatchingGroup
(
c21377582
.
otfilter
,
tp
,
LOCATION_SZONE
,
0
,
nil
)
return
c
:
GetLevel
()
>
6
and
minc
<=
2
and
(
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
mg
:
GetCount
()
>=
2
or
Duel
.
CheckTribute
(
c
,
1
)
and
mg
:
GetCount
()
>=
1
)
or
c
:
GetLevel
()
>
4
and
c
:
GetLevel
()
<=
6
and
minc
<=
1
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
mg
:
GetCount
()
>=
1
end
function
c21377582
.
otop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
mg
=
Duel
.
GetMatchingGroup
(
c21377582
.
otfilter
,
tp
,
LOCATION_SZONE
,
0
,
nil
)
local
b1
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
mg
:
GetCount
()
>=
2
local
b2
=
Duel
.
CheckTribute
(
c
,
1
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
g
=
mg
:
Select
(
tp
,
1
,
1
,
nil
)
if
c
:
GetLevel
()
>
6
then
local
g2
=
nil
if
b1
and
(
not
b2
or
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
21377582
,
1
)))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
g2
=
mg
:
Select
(
tp
,
1
,
1
,
g
:
GetFirst
())
else
g2
=
Duel
.
SelectTribute
(
tp
,
c
,
1
,
1
)
end
g
:
Merge
(
g2
)
end
c
:
SetMaterial
(
g
)
Duel
.
Release
(
g
,
REASON_SUMMON
+
REASON_MATERIAL
)
end
function
c21377582
.
valcheck
(
e
,
c
)
local
g
=
c
:
GetMaterial
()
local
typ
=
0
...
...
c22499034.lua
View file @
5672ac76
...
...
@@ -2,13 +2,12 @@
function
c22499034
.
initial_effect
(
c
)
--summon with s/t
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
22499034
,
0
))
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EFFECT_
SUMMON_PROC
)
e1
:
Set
Condition
(
c22499034
.
otcon
)
e1
:
Set
Operation
(
c22499034
.
otop
)
e1
:
SetValue
(
SUMMON_TYPE_ADVANCE
)
e1
:
SetCode
(
EFFECT_
ADD_EXTRA_TRIBUTE
)
e1
:
Set
TargetRange
(
LOCATION_SZONE
,
0
)
e1
:
Set
Target
(
aux
.
TargetBoolFunction
(
Card
.
IsType
,
TYPE_CONTINUOUS
)
)
e1
:
SetValue
(
POS_FACEUP_ATTACK
)
c
:
RegisterEffect
(
e1
)
--search
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -23,21 +22,6 @@ function c22499034.initial_effect(c)
e2
:
SetOperation
(
c22499034
.
thop
)
c
:
RegisterEffect
(
e2
)
end
function
c22499034
.
otfilter
(
c
)
return
c
:
IsType
(
TYPE_CONTINUOUS
)
and
c
:
IsReleasable
()
end
function
c22499034
.
otcon
(
e
,
c
,
minc
)
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
return
c
:
GetLevel
()
>
4
and
minc
<=
1
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c22499034
.
otfilter
,
tp
,
LOCATION_SZONE
,
0
,
1
,
nil
)
end
function
c22499034
.
otop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
c22499034
.
otfilter
,
tp
,
LOCATION_SZONE
,
0
,
1
,
1
,
nil
)
c
:
SetMaterial
(
sg
)
Duel
.
Release
(
sg
,
REASON_SUMMON
+
REASON_MATERIAL
)
end
function
c22499034
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_ADVANCE
)
and
rp
~=
tp
end
...
...
c58984738.lua
View file @
5672ac76
...
...
@@ -2,13 +2,12 @@
function
c58984738
.
initial_effect
(
c
)
--summon with s/t
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
58984738
,
0
))
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EFFECT_
SUMMON_PROC
)
e1
:
Set
Condition
(
c58984738
.
otcon
)
e1
:
Set
Operation
(
c58984738
.
otop
)
e1
:
SetValue
(
SUMMON_TYPE_ADVANCE
)
e1
:
SetCode
(
EFFECT_
ADD_EXTRA_TRIBUTE
)
e1
:
Set
TargetRange
(
LOCATION_SZONE
,
0
)
e1
:
Set
Target
(
aux
.
TargetBoolFunction
(
Card
.
IsType
,
TYPE_CONTINUOUS
)
)
e1
:
SetValue
(
POS_FACEUP_ATTACK
)
c
:
RegisterEffect
(
e1
)
--search
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -23,21 +22,6 @@ function c58984738.initial_effect(c)
e2
:
SetOperation
(
c58984738
.
thop
)
c
:
RegisterEffect
(
e2
)
end
function
c58984738
.
otfilter
(
c
)
return
c
:
IsType
(
TYPE_CONTINUOUS
)
and
c
:
IsReleasable
()
end
function
c58984738
.
otcon
(
e
,
c
,
minc
)
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
return
c
:
GetLevel
()
>
4
and
minc
<=
1
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c58984738
.
otfilter
,
tp
,
LOCATION_SZONE
,
0
,
1
,
nil
)
end
function
c58984738
.
otop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
c58984738
.
otfilter
,
tp
,
LOCATION_SZONE
,
0
,
1
,
1
,
nil
)
c
:
SetMaterial
(
sg
)
Duel
.
Release
(
sg
,
REASON_SUMMON
+
REASON_MATERIAL
)
end
function
c58984738
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_ADVANCE
)
and
rp
~=
tp
end
...
...
c82697428.lua
View file @
5672ac76
...
...
@@ -2,13 +2,12 @@
function
c82697428
.
initial_effect
(
c
)
--summon with s/t
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
82697428
,
0
))
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EFFECT_
SUMMON_PROC
)
e1
:
Set
Condition
(
c82697428
.
otcon
)
e1
:
Set
Operation
(
c82697428
.
otop
)
e1
:
SetValue
(
SUMMON_TYPE_ADVANCE
)
e1
:
SetCode
(
EFFECT_
ADD_EXTRA_TRIBUTE
)
e1
:
Set
TargetRange
(
LOCATION_SZONE
,
0
)
e1
:
Set
Target
(
aux
.
TargetBoolFunction
(
Card
.
IsType
,
TYPE_TRAP
)
)
e1
:
SetValue
(
POS_FACEUP_ATTACK
)
c
:
RegisterEffect
(
e1
)
--destroy
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -25,38 +24,6 @@ end
function
c82697428
.
counterfilter
(
c
)
return
c
:
IsSetCard
(
0x8
)
end
function
c82697428
.
otfilter
(
c
)
return
c
:
IsType
(
TYPE_TRAP
)
and
c
:
IsReleasable
()
end
function
c82697428
.
otcon
(
e
,
c
,
minc
)
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
local
mg
=
Duel
.
GetMatchingGroup
(
c82697428
.
otfilter
,
tp
,
LOCATION_SZONE
,
0
,
nil
)
return
c
:
GetLevel
()
>
6
and
minc
<=
2
and
(
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
mg
:
GetCount
()
>=
2
or
Duel
.
CheckTribute
(
c
,
1
)
and
mg
:
GetCount
()
>=
1
)
or
c
:
GetLevel
()
>
4
and
c
:
GetLevel
()
<=
6
and
minc
<=
1
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
mg
:
GetCount
()
>=
1
end
function
c82697428
.
otop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
mg
=
Duel
.
GetMatchingGroup
(
c82697428
.
otfilter
,
tp
,
LOCATION_SZONE
,
0
,
nil
)
local
b1
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
mg
:
GetCount
()
>=
2
local
b2
=
Duel
.
CheckTribute
(
c
,
1
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
g
=
mg
:
Select
(
tp
,
1
,
1
,
nil
)
if
c
:
GetLevel
()
>
6
then
local
g2
=
nil
if
b1
and
(
not
b2
or
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
82697428
,
2
)))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
g2
=
mg
:
Select
(
tp
,
1
,
1
,
g
:
GetFirst
())
else
g2
=
Duel
.
SelectTribute
(
tp
,
c
,
1
,
1
)
end
g
:
Merge
(
g2
)
end
c
:
SetMaterial
(
g
)
Duel
.
Release
(
g
,
REASON_SUMMON
+
REASON_MATERIAL
)
end
function
c82697428
.
descost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetCustomActivityCount
(
82697428
,
tp
,
ACTIVITY_SPSUMMON
)
==
0
end
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
...
c94982447.lua
View file @
5672ac76
...
...
@@ -2,13 +2,12 @@
function
c94982447
.
initial_effect
(
c
)
--summon with s/t
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
94982447
,
0
))
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EFFECT_
SUMMON_PROC
)
e1
:
Set
Condition
(
c94982447
.
otcon
)
e1
:
Set
Operation
(
c94982447
.
otop
)
e1
:
SetValue
(
SUMMON_TYPE_ADVANCE
)
e1
:
SetCode
(
EFFECT_
ADD_EXTRA_TRIBUTE
)
e1
:
Set
TargetRange
(
LOCATION_SZONE
,
0
)
e1
:
Set
Target
(
aux
.
TargetBoolFunction
(
Card
.
IsType
,
TYPE_CONTINUOUS
)
)
e1
:
SetValue
(
POS_FACEUP_ATTACK
)
c
:
RegisterEffect
(
e1
)
--spsummon
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -36,21 +35,6 @@ function c94982447.initial_effect(c)
e4
:
SetValue
(
aux
.
tgoval
)
c
:
RegisterEffect
(
e4
)
end
function
c94982447
.
otfilter
(
c
)
return
c
:
IsType
(
TYPE_CONTINUOUS
)
and
c
:
IsReleasable
()
end
function
c94982447
.
otcon
(
e
,
c
,
minc
)
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
return
c
:
GetLevel
()
>
4
and
minc
<=
1
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c94982447
.
otfilter
,
tp
,
LOCATION_SZONE
,
0
,
1
,
nil
)
end
function
c94982447
.
otop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
c94982447
.
otfilter
,
tp
,
LOCATION_SZONE
,
0
,
1
,
1
,
nil
)
c
:
SetMaterial
(
sg
)
Duel
.
Release
(
sg
,
REASON_SUMMON
+
REASON_MATERIAL
)
end
function
c94982447
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
c
:
IsPreviousPosition
(
POS_FACEUP
)
and
...
...
c95004025.lua
View file @
5672ac76
...
...
@@ -2,13 +2,12 @@
function
c95004025
.
initial_effect
(
c
)
--summon with s/t
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
95004025
,
0
))
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EFFECT_
SUMMON_PROC
)
e1
:
Set
Condition
(
c95004025
.
otcon
)
e1
:
Set
Operation
(
c95004025
.
otop
)
e1
:
SetValue
(
SUMMON_TYPE_ADVANCE
)
e1
:
SetCode
(
EFFECT_
ADD_EXTRA_TRIBUTE
)
e1
:
Set
TargetRange
(
LOCATION_SZONE
,
0
)
e1
:
Set
Target
(
aux
.
TargetBoolFunction
(
Card
.
IsType
,
TYPE_CONTINUOUS
)
)
e1
:
SetValue
(
POS_FACEUP_ATTACK
)
c
:
RegisterEffect
(
e1
)
--search
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -23,21 +22,6 @@ function c95004025.initial_effect(c)
e2
:
SetOperation
(
c95004025
.
thop
)
c
:
RegisterEffect
(
e2
)
end
function
c95004025
.
otfilter
(
c
)
return
c
:
IsType
(
TYPE_CONTINUOUS
)
and
c
:
IsReleasable
()
end
function
c95004025
.
otcon
(
e
,
c
,
minc
)
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
return
c
:
GetLevel
()
>
4
and
minc
<=
1
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c95004025
.
otfilter
,
tp
,
LOCATION_SZONE
,
0
,
1
,
nil
)
end
function
c95004025
.
otop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
c95004025
.
otfilter
,
tp
,
LOCATION_SZONE
,
0
,
1
,
1
,
nil
)
c
:
SetMaterial
(
sg
)
Duel
.
Release
(
sg
,
REASON_SUMMON
+
REASON_MATERIAL
)
end
function
c95004025
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_ADVANCE
)
and
rp
~=
tp
end
...
...
constant.lua
View file @
5672ac76
...
...
@@ -420,6 +420,7 @@ EFFECT_EXTRA_RELEASE =153 --必須使用的代替解放(灵魂交错)
EFFECT_TRIBUTE_LIMIT
=
154
--祭品限制
EFFECT_EXTRA_RELEASE_SUM
=
155
--代替召唤解放(帝王的烈旋)
EFFECT_TRIPLE_TRIBUTE
=
156
--N/A
EFFECT_ADD_EXTRA_TRIBUTE
=
157
--
EFFECT_PUBLIC
=
160
--公开手牌
EFFECT_COUNTER_PERMIT
=
0x10000
--允许放置指示物类型
EFFECT_COUNTER_LIMIT
=
0x20000
--允许放置指示物数量
...
...
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