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
Nguyễn Anh Kiệt
ygopro-222DIY-cards
Commits
4b59a4a0
Commit
4b59a4a0
authored
Jun 29, 2024
by
聖園ミカ
🐟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
byd
parent
08fde6ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
23 deletions
+34
-23
expansions/script/c81015010.lua
expansions/script/c81015010.lua
+34
-23
No files found.
expansions/script/c81015010.lua
View file @
4b59a4a0
--MS-765·北上丽花
local
m
=
81015010
local
cm
=
_G
[
"c"
..
m
]
Duel
.
LoadScript
(
"c81000000.lua"
)
function
c
81015010
.
initial_effect
(
c
)
function
c
m
.
initial_effect
(
c
)
--summon limit
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
e0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e0
:
SetCode
(
EFFECT_CANNOT_SUMMON
)
e0
:
SetCondition
(
aux
.
NOT
(
Tenka
.
ReikaCon
)
)
e0
:
SetCondition
(
cm
.
sumcon
)
c
:
RegisterEffect
(
e0
)
--spsummon limit
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetValue
(
Tenka
.
ReikaCon
)
e1
:
SetValue
(
cm
.
sumlimit
)
c
:
RegisterEffect
(
e1
)
--summon with no tribute
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
81015010
,
0
))
e2
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_SUMMON_PROC
)
e2
:
SetCondition
(
c
81015010
.
ntcon
)
e2
:
SetCondition
(
c
m
.
ntcon
)
c
:
RegisterEffect
(
e2
)
--synchro level
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
EFFECT_SYNCHRO_MATERIAL_CUSTOM
)
e3
:
SetTarget
(
c
81015010
.
syntg
)
e3
:
SetTarget
(
c
m
.
syntg
)
e3
:
SetValue
(
1
)
e3
:
SetOperation
(
c
81015010
.
synop
)
e3
:
SetOperation
(
c
m
.
synop
)
c
:
RegisterEffect
(
e3
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
@@ -37,52 +39,61 @@ function c81015010.initial_effect(c)
e4
:
SetRange
(
LOCATION_MZONE
)
c
:
RegisterEffect
(
e4
)
end
function
c81015010
.
ntcon
(
e
,
c
,
minc
)
function
cm
.
confilter
(
c
)
return
c
:
GetSequence
()
<
5
end
function
cm
.
sumcon
(
e
)
return
Duel
.
GetMatchingGroupCount
(
cm
.
confilter
,
e
:
GetHandler
():
GetControler
(),
LOCATION_SZONE
,
0
,
nil
)
>
0
end
function
cm
.
sumlimit
(
e
,
se
,
sp
,
st
,
pos
,
tp
)
return
Duel
.
GetMatchingGroupCount
(
cm
.
confilter
,
sp
,
LOCATION_SZONE
,
0
,
nil
)
==
0
end
function
cm
.
ntcon
(
e
,
c
,
minc
)
if
c
==
nil
then
return
true
end
return
minc
==
0
and
c
:
IsLevelAbove
(
5
)
and
Duel
.
GetLocationCount
(
c
:
GetControler
(),
LOCATION_MZONE
)
>
0
end
function
c
81015010
.
cardiansynlevel
(
c
)
function
c
m
.
cardiansynlevel
(
c
)
return
3
end
function
c
81015010
.
synfilter
(
c
,
syncard
,
tuner
,
f
)
function
c
m
.
synfilter
(
c
,
syncard
,
tuner
,
f
)
return
c
:
IsFaceup
()
and
c
:
IsCanBeSynchroMaterial
(
syncard
,
tuner
)
and
(
f
==
nil
or
f
(
c
,
syncard
))
end
function
c
81015010
.
syncheck
(
c
,
g
,
mg
,
tp
,
lv
,
syncard
,
minc
,
maxc
)
function
c
m
.
syncheck
(
c
,
g
,
mg
,
tp
,
lv
,
syncard
,
minc
,
maxc
)
g
:
AddCard
(
c
)
local
ct
=
g
:
GetCount
()
local
res
=
c
81015010
.
syngoal
(
g
,
tp
,
lv
,
syncard
,
minc
,
ct
)
or
(
ct
<
maxc
and
mg
:
IsExists
(
c
81015010
.
syncheck
,
1
,
g
,
g
,
mg
,
tp
,
lv
,
syncard
,
minc
,
maxc
))
local
res
=
c
m
.
syngoal
(
g
,
tp
,
lv
,
syncard
,
minc
,
ct
)
or
(
ct
<
maxc
and
mg
:
IsExists
(
c
m
.
syncheck
,
1
,
g
,
g
,
mg
,
tp
,
lv
,
syncard
,
minc
,
maxc
))
g
:
RemoveCard
(
c
)
return
res
end
function
c
81015010
.
syngoal
(
g
,
tp
,
lv
,
syncard
,
minc
,
ct
)
function
c
m
.
syngoal
(
g
,
tp
,
lv
,
syncard
,
minc
,
ct
)
return
ct
>=
minc
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
g
,
syncard
)
>
0
and
(
g
:
CheckWithSumEqual
(
Card
.
GetSynchroLevel
,
lv
,
ct
,
ct
,
syncard
)
or
g
:
CheckWithSumEqual
(
c
81015010
.
cardiansynlevel
,
lv
,
ct
,
ct
,
syncard
))
or
g
:
CheckWithSumEqual
(
c
m
.
cardiansynlevel
,
lv
,
ct
,
ct
,
syncard
))
end
function
c
81015010
.
syntg
(
e
,
syncard
,
f
,
min
,
max
)
function
c
m
.
syntg
(
e
,
syncard
,
f
,
min
,
max
)
local
minc
=
min
+
1
local
maxc
=
max
+
1
local
c
=
e
:
GetHandler
()
local
tp
=
syncard
:
GetControler
()
local
lv
=
syncard
:
GetLevel
()
if
lv
<=
c
:
GetLevel
()
and
lv
<=
c
81015010
.
cardiansynlevel
(
c
)
then
return
false
end
if
lv
<=
c
:
GetLevel
()
and
lv
<=
c
m
.
cardiansynlevel
(
c
)
then
return
false
end
local
g
=
Group
.
FromCards
(
c
)
local
mg
=
Duel
.
GetMatchingGroup
(
c
81015010
.
synfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
c
,
syncard
,
c
,
f
)
return
mg
:
IsExists
(
c
81015010
.
syncheck
,
1
,
g
,
g
,
mg
,
tp
,
lv
,
syncard
,
minc
,
maxc
)
local
mg
=
Duel
.
GetMatchingGroup
(
c
m
.
synfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
c
,
syncard
,
c
,
f
)
return
mg
:
IsExists
(
c
m
.
syncheck
,
1
,
g
,
g
,
mg
,
tp
,
lv
,
syncard
,
minc
,
maxc
)
end
function
c
81015010
.
synop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
syncard
,
f
,
min
,
max
)
function
c
m
.
synop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
syncard
,
f
,
min
,
max
)
local
minc
=
min
+
1
local
maxc
=
max
+
1
local
c
=
e
:
GetHandler
()
local
lv
=
syncard
:
GetLevel
()
local
g
=
Group
.
FromCards
(
c
)
local
mg
=
Duel
.
GetMatchingGroup
(
c
81015010
.
synfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
c
,
syncard
,
c
,
f
)
local
mg
=
Duel
.
GetMatchingGroup
(
c
m
.
synfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
c
,
syncard
,
c
,
f
)
for
i
=
1
,
maxc
do
local
cg
=
mg
:
Filter
(
c
81015010
.
syncheck
,
g
,
g
,
mg
,
tp
,
lv
,
syncard
,
minc
,
maxc
)
local
cg
=
mg
:
Filter
(
c
m
.
syncheck
,
g
,
g
,
mg
,
tp
,
lv
,
syncard
,
minc
,
maxc
)
if
cg
:
GetCount
()
==
0
then
break
end
local
minct
=
1
if
c
81015010
.
syngoal
(
g
,
tp
,
lv
,
syncard
,
minc
,
i
)
then
if
c
m
.
syngoal
(
g
,
tp
,
lv
,
syncard
,
minc
,
i
)
then
if
not
Duel
.
SelectYesNo
(
tp
,
210
)
then
break
end
minct
=
0
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