Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts-888
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
Vee4
ygopro-scripts-888
Commits
ec0696cb
Commit
ec0696cb
authored
Jun 17, 2024
by
mercury233
Committed by
Chen Bill
Oct 06, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update リペア・ジェネクス・コントローラー (#2570)
parent
66028af3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
8 deletions
+26
-8
procedure.lua
procedure.lua
+26
-8
No files found.
procedure.lua
View file @
ec0696cb
...
@@ -175,8 +175,14 @@ function Auxiliary.SynMixCondition(f1,f2,f3,f4,minct,maxct,gc)
...
@@ -175,8 +175,14 @@ function Auxiliary.SynMixCondition(f1,f2,f3,f4,minct,maxct,gc)
if
max
-
exct
<
maxc
then
maxc
=
max
-
exct
end
if
max
-
exct
<
maxc
then
maxc
=
max
-
exct
end
if
minc
>
maxc
then
return
false
end
if
minc
>
maxc
then
return
false
end
end
end
if
smat
and
not
smat
:
IsCanBeSynchroMaterial
(
c
)
then
return
false
end
local
tp
=
c
:
GetControler
()
local
tp
=
c
:
GetControler
()
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
8173184
)
then
Duel
.
RegisterFlagEffect
(
tp
,
8173184
+
1
,
0
,
0
,
1
)
end
if
smat
and
not
smat
:
IsCanBeSynchroMaterial
(
c
)
then
Duel
.
ResetFlagEffect
(
tp
,
8173184
+
1
)
return
false
end
local
mg
local
mg
local
mgchk
=
false
local
mgchk
=
false
if
mg1
then
if
mg1
then
...
@@ -186,7 +192,9 @@ function Auxiliary.SynMixCondition(f1,f2,f3,f4,minct,maxct,gc)
...
@@ -186,7 +192,9 @@ function Auxiliary.SynMixCondition(f1,f2,f3,f4,minct,maxct,gc)
mg
=
Auxiliary
.
GetSynMaterials
(
tp
,
c
)
mg
=
Auxiliary
.
GetSynMaterials
(
tp
,
c
)
end
end
if
smat
~=
nil
then
mg
:
AddCard
(
smat
)
end
if
smat
~=
nil
then
mg
:
AddCard
(
smat
)
end
return
mg
:
IsExists
(
Auxiliary
.
SynMixFilter1
,
1
,
nil
,
f1
,
f2
,
f3
,
f4
,
minc
,
maxc
,
c
,
mg
,
smat
,
gc
,
mgchk
)
local
res
=
mg
:
IsExists
(
Auxiliary
.
SynMixFilter1
,
1
,
nil
,
f1
,
f2
,
f3
,
f4
,
minc
,
maxc
,
c
,
mg
,
smat
,
gc
,
mgchk
)
Duel
.
ResetFlagEffect
(
tp
,
8173184
+
1
)
return
res
end
end
end
end
function
Auxiliary
.
SynMixTarget
(
f1
,
f2
,
f3
,
f4
,
minct
,
maxct
,
gc
)
function
Auxiliary
.
SynMixTarget
(
f1
,
f2
,
f3
,
f4
,
minct
,
maxct
,
gc
)
...
@@ -202,6 +210,9 @@ function Auxiliary.SynMixTarget(f1,f2,f3,f4,minct,maxct,gc)
...
@@ -202,6 +210,9 @@ function Auxiliary.SynMixTarget(f1,f2,f3,f4,minct,maxct,gc)
if
minc
>
maxc
then
return
false
end
if
minc
>
maxc
then
return
false
end
end
end
::
SynMixTargetSelectStart
::
::
SynMixTargetSelectStart
::
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
8173184
)
then
Duel
.
RegisterFlagEffect
(
tp
,
8173184
+
1
,
0
,
0
,
1
)
end
local
g
=
Group
.
CreateGroup
()
local
g
=
Group
.
CreateGroup
()
local
mg
local
mg
local
mgchk
=
false
local
mgchk
=
false
...
@@ -215,26 +226,26 @@ function Auxiliary.SynMixTarget(f1,f2,f3,f4,minct,maxct,gc)
...
@@ -215,26 +226,26 @@ function Auxiliary.SynMixTarget(f1,f2,f3,f4,minct,maxct,gc)
local
c1
local
c1
local
c2
local
c2
local
c3
local
c3
local
g4
=
Group
.
CreateGroup
()
local
cancel
=
Duel
.
IsSummonCancelable
()
local
cancel
=
Duel
.
IsSummonCancelable
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SMATERIAL
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SMATERIAL
)
c1
=
mg
:
Filter
(
Auxiliary
.
SynMixFilter1
,
nil
,
f1
,
f2
,
f3
,
f4
,
minc
,
maxc
,
c
,
mg
,
smat
,
gc
,
mgchk
):
SelectUnselect
(
g
,
tp
,
false
,
cancel
,
1
,
1
)
c1
=
mg
:
Filter
(
Auxiliary
.
SynMixFilter1
,
nil
,
f1
,
f2
,
f3
,
f4
,
minc
,
maxc
,
c
,
mg
,
smat
,
gc
,
mgchk
):
SelectUnselect
(
g
,
tp
,
false
,
cancel
,
1
,
1
)
if
not
c1
then
return
false
end
if
not
c1
then
goto
SynMixTargetSelectCancel
end
g
:
AddCard
(
c1
)
g
:
AddCard
(
c1
)
if
f2
then
if
f2
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SMATERIAL
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SMATERIAL
)
c2
=
mg
:
Filter
(
Auxiliary
.
SynMixFilter2
,
g
,
f2
,
f3
,
f4
,
minc
,
maxc
,
c
,
mg
,
smat
,
c1
,
gc
,
mgchk
):
SelectUnselect
(
g
,
tp
,
false
,
cancel
,
1
,
1
)
c2
=
mg
:
Filter
(
Auxiliary
.
SynMixFilter2
,
g
,
f2
,
f3
,
f4
,
minc
,
maxc
,
c
,
mg
,
smat
,
c1
,
gc
,
mgchk
):
SelectUnselect
(
g
,
tp
,
false
,
cancel
,
1
,
1
)
if
not
c2
then
return
false
end
if
not
c2
then
goto
SynMixTargetSelectCancel
end
if
g
:
IsContains
(
c2
)
then
goto
SynMixTargetSelectStart
end
if
g
:
IsContains
(
c2
)
then
goto
SynMixTargetSelectStart
end
g
:
AddCard
(
c2
)
g
:
AddCard
(
c2
)
if
f3
then
if
f3
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SMATERIAL
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SMATERIAL
)
c3
=
mg
:
Filter
(
Auxiliary
.
SynMixFilter3
,
g
,
f3
,
f4
,
minc
,
maxc
,
c
,
mg
,
smat
,
c1
,
c2
,
gc
,
mgchk
):
SelectUnselect
(
g
,
tp
,
false
,
cancel
,
1
,
1
)
c3
=
mg
:
Filter
(
Auxiliary
.
SynMixFilter3
,
g
,
f3
,
f4
,
minc
,
maxc
,
c
,
mg
,
smat
,
c1
,
c2
,
gc
,
mgchk
):
SelectUnselect
(
g
,
tp
,
false
,
cancel
,
1
,
1
)
if
not
c3
then
return
false
end
if
not
c3
then
goto
SynMixTargetSelectCancel
end
if
g
:
IsContains
(
c3
)
then
goto
SynMixTargetSelectStart
end
if
g
:
IsContains
(
c3
)
then
goto
SynMixTargetSelectStart
end
g
:
AddCard
(
c3
)
g
:
AddCard
(
c3
)
end
end
end
end
local
g4
=
Group
.
CreateGroup
()
for
i
=
0
,
maxc
-
1
do
for
i
=
0
,
maxc
-
1
do
local
mg2
=
mg
:
Clone
()
local
mg2
=
mg
:
Clone
()
if
f4
then
if
f4
then
...
@@ -249,7 +260,7 @@ function Auxiliary.SynMixTarget(f1,f2,f3,f4,minct,maxct,gc)
...
@@ -249,7 +260,7 @@ function Auxiliary.SynMixTarget(f1,f2,f3,f4,minct,maxct,gc)
local
c4
=
cg
:
SelectUnselect
(
g
+
g4
,
tp
,
finish
,
cancel
,
minc
,
maxc
)
local
c4
=
cg
:
SelectUnselect
(
g
+
g4
,
tp
,
finish
,
cancel
,
minc
,
maxc
)
if
not
c4
then
if
not
c4
then
if
finish
then
break
if
finish
then
break
else
return
false
end
else
goto
SynMixTargetSelectCancel
end
end
end
if
g
:
IsContains
(
c4
)
or
g4
:
IsContains
(
c4
)
then
goto
SynMixTargetSelectStart
end
if
g
:
IsContains
(
c4
)
or
g4
:
IsContains
(
c4
)
then
goto
SynMixTargetSelectStart
end
g4
:
AddCard
(
c4
)
g4
:
AddCard
(
c4
)
...
@@ -258,8 +269,12 @@ function Auxiliary.SynMixTarget(f1,f2,f3,f4,minct,maxct,gc)
...
@@ -258,8 +269,12 @@ function Auxiliary.SynMixTarget(f1,f2,f3,f4,minct,maxct,gc)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
g
:
KeepAlive
()
g
:
KeepAlive
()
e
:
SetLabelObject
(
g
)
e
:
SetLabelObject
(
g
)
Duel
.
ResetFlagEffect
(
tp
,
8173184
+
1
)
return
true
return
true
else
return
false
end
end
::
SynMixTargetSelectCancel
::
Duel
.
ResetFlagEffect
(
tp
,
8173184
+
1
)
return
false
end
end
end
end
function
Auxiliary
.
SynMixOperation
(
f1
,
f2
,
f3
,
f4
,
minct
,
maxct
,
gc
)
function
Auxiliary
.
SynMixOperation
(
f1
,
f2
,
f3
,
f4
,
minct
,
maxct
,
gc
)
...
@@ -361,6 +376,8 @@ function Auxiliary.SynMixCheckGoal(tp,sg,minc,ct,syncard,sg1,smat,gc,mgchk)
...
@@ -361,6 +376,8 @@ function Auxiliary.SynMixCheckGoal(tp,sg,minc,ct,syncard,sg1,smat,gc,mgchk)
if
gc
and
not
gc
(
g
)
then
return
false
end
if
gc
and
not
gc
(
g
)
then
return
false
end
if
smat
and
not
g
:
IsContains
(
smat
)
then
return
false
end
if
smat
and
not
g
:
IsContains
(
smat
)
then
return
false
end
if
not
Auxiliary
.
MustMaterialCheck
(
g
,
tp
,
EFFECT_MUST_BE_SMATERIAL
)
then
return
false
end
if
not
Auxiliary
.
MustMaterialCheck
(
g
,
tp
,
EFFECT_MUST_BE_SMATERIAL
)
then
return
false
end
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
8173184
)
and
not
g
:
IsExists
(
Auxiliary
.
Tuner
(
Card
.
IsSetCard
,
0x2
),
1
,
nil
,
syncard
)
then
return
false
end
if
not
g
:
CheckWithSumEqual
(
Card
.
GetSynchroLevel
,
syncard
:
GetLevel
(),
g
:
GetCount
(),
g
:
GetCount
(),
syncard
)
if
not
g
:
CheckWithSumEqual
(
Card
.
GetSynchroLevel
,
syncard
:
GetLevel
(),
g
:
GetCount
(),
g
:
GetCount
(),
syncard
)
and
(
not
g
:
IsExists
(
Card
.
IsHasEffect
,
1
,
nil
,
89818984
)
and
(
not
g
:
IsExists
(
Card
.
IsHasEffect
,
1
,
nil
,
89818984
)
or
not
g
:
CheckWithSumEqual
(
Auxiliary
.
GetSynchroLevelFlowerCardian
,
syncard
:
GetLevel
(),
g
:
GetCount
(),
g
:
GetCount
(),
syncard
))
or
not
g
:
CheckWithSumEqual
(
Auxiliary
.
GetSynchroLevelFlowerCardian
,
syncard
:
GetLevel
(),
g
:
GetCount
(),
g
:
GetCount
(),
syncard
))
...
@@ -2258,6 +2275,7 @@ function Auxiliary.MustMaterialCheck(v,tp,code)
...
@@ -2258,6 +2275,7 @@ function Auxiliary.MustMaterialCheck(v,tp,code)
local
g
=
Duel
.
GetMustMaterial
(
tp
,
code
)
local
g
=
Duel
.
GetMustMaterial
(
tp
,
code
)
if
not
v
then
if
not
v
then
if
code
==
EFFECT_MUST_BE_XMATERIAL
and
Duel
.
IsPlayerAffectedByEffect
(
tp
,
67120578
)
then
return
false
end
if
code
==
EFFECT_MUST_BE_XMATERIAL
and
Duel
.
IsPlayerAffectedByEffect
(
tp
,
67120578
)
then
return
false
end
if
code
==
EFFECT_MUST_BE_SMATERIAL
and
Duel
.
IsPlayerAffectedByEffect
(
tp
,
8173184
)
then
return
false
end
return
#
g
==
0
return
#
g
==
0
end
end
return
Duel
.
CheckMustMaterial
(
tp
,
v
,
code
)
return
Duel
.
CheckMustMaterial
(
tp
,
v
,
code
)
...
...
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