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
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
八宫一月
ygopro-scripts
Commits
06b6d943
Commit
06b6d943
authored
Sep 28, 2017
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add max count parameter for aux.AddSynchroProcedure
parent
beeabe75
Changes
23
Hide whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
34 additions
and
77 deletions
+34
-77
c13574687.lua
c13574687.lua
+1
-1
c17994645.lua
c17994645.lua
+1
-1
c21435914.lua
c21435914.lua
+1
-1
c22858242.lua
c22858242.lua
+1
-1
c24696097.lua
c24696097.lua
+1
-1
c25165047.lua
c25165047.lua
+1
-1
c25472513.lua
c25472513.lua
+1
-1
c31919988.lua
c31919988.lua
+1
-1
c33541430.lua
c33541430.lua
+2
-11
c36857073.lua
c36857073.lua
+1
-1
c37038993.lua
c37038993.lua
+1
-1
c3966653.lua
c3966653.lua
+2
-11
c42291297.lua
c42291297.lua
+2
-11
c50091196.lua
c50091196.lua
+1
-1
c58074177.lua
c58074177.lua
+1
-1
c62560742.lua
c62560742.lua
+1
-1
c63465535.lua
c63465535.lua
+1
-1
c76891401.lua
c76891401.lua
+1
-1
c8310162.lua
c8310162.lua
+1
-1
c87460579.lua
c87460579.lua
+2
-11
c94515289.lua
c94515289.lua
+1
-1
c9753964.lua
c9753964.lua
+1
-1
utility.lua
utility.lua
+8
-15
No files found.
c13574687.lua
View file @
06b6d943
--ワンショット・キャノン
function
c13574687
.
initial_effect
(
c
)
--synchro summon
aux
.
AddSynchroProcedure
2
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsCode
,
6142213
),
aux
.
NonTuner
(
nil
)
)
aux
.
AddSynchroProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsCode
,
6142213
),
aux
.
NonTuner
(
nil
),
1
,
1
)
c
:
EnableReviveLimit
()
--destroy & damage
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
c17994645.lua
View file @
06b6d943
--A BF-雨隠れのサヨ
function
c17994645
.
initial_effect
(
c
)
--synchro summon
aux
.
AddSynchroProcedure
2
(
c
,
nil
,
aux
.
NonTuner
(
nil
)
)
aux
.
AddSynchroProcedure
(
c
,
nil
,
aux
.
NonTuner
(
nil
),
1
,
1
)
c
:
EnableReviveLimit
()
--add type
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
c21435914.lua
View file @
06b6d943
--冥界濁龍 ドラゴキュートス
function
c21435914
.
initial_effect
(
c
)
--synchro summon
aux
.
AddSynchroProcedure
2
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsAttribute
,
ATTRIBUTE_DARK
),
aux
.
NonTuner
(
Card
.
IsRace
,
RACE_DRAGON
)
)
aux
.
AddSynchroProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsAttribute
,
ATTRIBUTE_DARK
),
aux
.
NonTuner
(
Card
.
IsRace
,
RACE_DRAGON
),
1
,
1
)
c
:
EnableReviveLimit
()
--battle indestructable
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
c22858242.lua
View file @
06b6d943
--猿魔王ゼーマン
function
c22858242
.
initial_effect
(
c
)
--synchro summon
aux
.
AddSynchroProcedure
2
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsAttribute
,
ATTRIBUTE_DARK
),
aux
.
NonTuner
(
Card
.
IsRace
,
RACE_BEAST
)
)
aux
.
AddSynchroProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsAttribute
,
ATTRIBUTE_DARK
),
aux
.
NonTuner
(
Card
.
IsRace
,
RACE_BEAST
),
1
,
1
)
c
:
EnableReviveLimit
()
--actlimit
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
c24696097.lua
View file @
06b6d943
--シューティング・スター・ドラゴン
function
c24696097
.
initial_effect
(
c
)
--synchro summon
aux
.
AddSynchroProcedure
2
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsSynchroType
,
TYPE_SYNCHRO
),
aux
.
FilterBoolFunction
(
Card
.
IsCode
,
44508094
)
)
aux
.
AddSynchroProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsSynchroType
,
TYPE_SYNCHRO
),
aux
.
FilterBoolFunction
(
Card
.
IsCode
,
44508094
),
1
,
1
)
c
:
EnableReviveLimit
()
--multi attack
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
c25165047.lua
View file @
06b6d943
--ライフ・ストリーム・ドラゴン
function
c25165047
.
initial_effect
(
c
)
--synchro summon
aux
.
AddSynchroProcedure
2
(
c
,
nil
,
aux
.
FilterBoolFunction
(
Card
.
IsCode
,
2403771
)
)
aux
.
AddSynchroProcedure
(
c
,
nil
,
aux
.
FilterBoolFunction
(
Card
.
IsCode
,
2403771
),
1
,
1
)
c
:
EnableReviveLimit
()
--change lp
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
c25472513.lua
View file @
06b6d943
--天輪の双星道士
function
c25472513
.
initial_effect
(
c
)
--synchro summon
aux
.
AddSynchroProcedure
2
(
c
,
nil
,
aux
.
NonTuner
(
nil
)
)
aux
.
AddSynchroProcedure
(
c
,
nil
,
aux
.
NonTuner
(
nil
),
1
,
1
)
c
:
EnableReviveLimit
()
--special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
c31919988.lua
View file @
06b6d943
--漆黒のズムウォルト
function
c31919988
.
initial_effect
(
c
)
--synchro summon
aux
.
AddSynchroProcedure
2
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsAttribute
,
ATTRIBUTE_DARK
),
aux
.
NonTuner
(
Card
.
IsRace
,
RACE_INSECT
)
)
aux
.
AddSynchroProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsAttribute
,
ATTRIBUTE_DARK
),
aux
.
NonTuner
(
Card
.
IsRace
,
RACE_INSECT
),
1
,
1
)
c
:
EnableReviveLimit
()
--indes
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
c33541430.lua
View file @
06b6d943
--花札衛-月花見-
function
c33541430
.
initial_effect
(
c
)
c
:
EnableReviveLimit
()
--synchro summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetRange
(
LOCATION_EXTRA
)
e1
:
SetCondition
(
aux
.
SynCondition
(
nil
,
aux
.
NonTuner
(
nil
),
2
,
2
))
e1
:
SetTarget
(
aux
.
SynTarget
(
nil
,
aux
.
NonTuner
(
nil
),
2
,
2
))
e1
:
SetOperation
(
aux
.
SynOperation
(
nil
,
aux
.
NonTuner
(
nil
),
2
,
2
))
e1
:
SetValue
(
SUMMON_TYPE_SYNCHRO
)
c
:
RegisterEffect
(
e1
)
aux
.
AddSynchroProcedure
(
c
,
nil
,
aux
.
NonTuner
(
nil
),
2
,
2
)
c
:
EnableReviveLimit
()
--draw
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
33541430
,
0
))
...
...
c36857073.lua
View file @
06b6d943
--琰魔竜 レッド・デーモン・ベリアル
function
c36857073
.
initial_effect
(
c
)
--synchro summon
aux
.
AddSynchroProcedure
2
(
c
,
nil
,
aux
.
NonTuner
(
c36857073
.
sfilter
)
)
aux
.
AddSynchroProcedure
(
c
,
nil
,
aux
.
NonTuner
(
c36857073
.
sfilter
),
1
,
1
)
c
:
EnableReviveLimit
()
--spsummon
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
c37038993.lua
View file @
06b6d943
--焔紫竜ピュラリス
function
c37038993
.
initial_effect
(
c
)
--synchro summon
aux
.
AddSynchroProcedure
2
(
c
,
nil
,
aux
.
NonTuner
(
nil
)
)
aux
.
AddSynchroProcedure
(
c
,
nil
,
aux
.
NonTuner
(
nil
),
1
,
1
)
c
:
EnableReviveLimit
()
--synchro summon success
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
c3966653.lua
View file @
06b6d943
--花札衛-猪鹿蝶-
function
c3966653
.
initial_effect
(
c
)
c
:
EnableReviveLimit
()
--synchro summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetRange
(
LOCATION_EXTRA
)
e1
:
SetCondition
(
aux
.
SynCondition
(
nil
,
aux
.
NonTuner
(
nil
),
2
,
2
))
e1
:
SetTarget
(
aux
.
SynTarget
(
nil
,
aux
.
NonTuner
(
nil
),
2
,
2
))
e1
:
SetOperation
(
aux
.
SynOperation
(
nil
,
aux
.
NonTuner
(
nil
),
2
,
2
))
e1
:
SetValue
(
SUMMON_TYPE_SYNCHRO
)
c
:
RegisterEffect
(
e1
)
aux
.
AddSynchroProcedure
(
c
,
nil
,
aux
.
NonTuner
(
nil
),
2
,
2
)
c
:
EnableReviveLimit
()
--pierce
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
...
...
c42291297.lua
View file @
06b6d943
--花札衛-雨四光-
function
c42291297
.
initial_effect
(
c
)
c
:
EnableReviveLimit
()
--synchro summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetRange
(
LOCATION_EXTRA
)
e1
:
SetCondition
(
aux
.
SynCondition
(
nil
,
aux
.
NonTuner
(
nil
),
3
,
3
))
e1
:
SetTarget
(
aux
.
SynTarget
(
nil
,
aux
.
NonTuner
(
nil
),
3
,
3
))
e1
:
SetOperation
(
aux
.
SynOperation
(
nil
,
aux
.
NonTuner
(
nil
),
3
,
3
))
e1
:
SetValue
(
SUMMON_TYPE_SYNCHRO
)
c
:
RegisterEffect
(
e1
)
aux
.
AddSynchroProcedure
(
c
,
nil
,
aux
.
NonTuner
(
nil
),
3
,
3
)
c
:
EnableReviveLimit
()
--indes
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_EFFECT
)
...
...
c50091196.lua
View file @
06b6d943
--フォーミュラ・シンクロン
function
c50091196
.
initial_effect
(
c
)
--synchro summon
aux
.
AddSynchroProcedure
2
(
c
,
nil
,
aux
.
NonTuner
(
nil
)
)
aux
.
AddSynchroProcedure
(
c
,
nil
,
aux
.
NonTuner
(
nil
),
1
,
1
)
c
:
EnableReviveLimit
()
--synchro summon success
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
c58074177.lua
View file @
06b6d943
...
...
@@ -2,7 +2,7 @@
function
c58074177
.
initial_effect
(
c
)
c
:
EnableReviveLimit
()
aux
.
EnablePendulumAttribute
(
c
,
false
)
aux
.
AddSynchroProcedure
2
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsAttribute
,
ATTRIBUTE_DARK
),
aux
.
NonTuner
(
Card
.
IsSetCard
,
0xff
)
)
aux
.
AddSynchroProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsAttribute
,
ATTRIBUTE_DARK
),
aux
.
NonTuner
(
Card
.
IsSetCard
,
0xff
),
1
,
1
)
--atk
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
58074177
,
0
))
...
...
c62560742.lua
View file @
06b6d943
--TG レシプロ・ドラゴン・フライ
function
c62560742
.
initial_effect
(
c
)
--synchro summon
aux
.
AddSynchroProcedure
2
(
c
,
nil
,
aux
.
NonTuner
(
nil
)
)
aux
.
AddSynchroProcedure
(
c
,
nil
,
aux
.
NonTuner
(
nil
),
1
,
1
)
c
:
EnableReviveLimit
()
--special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
c63465535.lua
View file @
06b6d943
--地底のアラクネー
function
c63465535
.
initial_effect
(
c
)
--synchro summon
aux
.
AddSynchroProcedure
2
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsAttribute
,
ATTRIBUTE_DARK
),
aux
.
NonTuner
(
Card
.
IsRace
,
RACE_INSECT
)
)
aux
.
AddSynchroProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsAttribute
,
ATTRIBUTE_DARK
),
aux
.
NonTuner
(
Card
.
IsRace
,
RACE_INSECT
),
1
,
1
)
c
:
EnableReviveLimit
()
--actlimit
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
c76891401.lua
View file @
06b6d943
--神海竜ギシルノドン
function
c76891401
.
initial_effect
(
c
)
--synchro summon
aux
.
AddSynchroProcedure
2
(
c
,
nil
,
aux
.
NonTuner
(
c76891401
.
synfilter
)
)
aux
.
AddSynchroProcedure
(
c
,
nil
,
aux
.
NonTuner
(
c76891401
.
synfilter
),
1
,
1
)
c
:
EnableReviveLimit
()
--atk change
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
c8310162.lua
View file @
06b6d943
--Sin パラドクス・ドラゴン
function
c8310162
.
initial_effect
(
c
)
--synchro summon
aux
.
AddSynchroProcedure
2
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsCode
,
74509280
),
aux
.
NonTuner
(
Card
.
IsSetCard
,
0x23
)
)
aux
.
AddSynchroProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsCode
,
74509280
),
aux
.
NonTuner
(
Card
.
IsSetCard
,
0x23
),
1
,
1
)
c
:
EnableReviveLimit
()
c
:
SetUniqueOnField
(
1
,
1
,
8310162
)
--special summon
...
...
c87460579.lua
View file @
06b6d943
--花札衛-五光-
function
c87460579
.
initial_effect
(
c
)
c
:
EnableReviveLimit
()
--synchro summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetRange
(
LOCATION_EXTRA
)
e1
:
SetCondition
(
aux
.
SynCondition
(
nil
,
aux
.
NonTuner
(
nil
),
4
,
4
))
e1
:
SetTarget
(
aux
.
SynTarget
(
nil
,
aux
.
NonTuner
(
nil
),
4
,
4
))
e1
:
SetOperation
(
aux
.
SynOperation
(
nil
,
aux
.
NonTuner
(
nil
),
4
,
4
))
e1
:
SetValue
(
SUMMON_TYPE_SYNCHRO
)
c
:
RegisterEffect
(
e1
)
aux
.
AddSynchroProcedure
(
c
,
nil
,
aux
.
NonTuner
(
nil
),
4
,
4
)
c
:
EnableReviveLimit
()
--negate
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
87460579
,
0
))
...
...
c94515289.lua
View file @
06b6d943
--氷結のフィッツジェラルド
function
c94515289
.
initial_effect
(
c
)
--synchro summon
aux
.
AddSynchroProcedure
2
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsAttribute
,
ATTRIBUTE_DARK
),
aux
.
NonTuner
(
Card
.
IsRace
,
RACE_BEAST
)
)
aux
.
AddSynchroProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsAttribute
,
ATTRIBUTE_DARK
),
aux
.
NonTuner
(
Card
.
IsRace
,
RACE_BEAST
),
1
,
1
)
c
:
EnableReviveLimit
()
--actlimit
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
c9753964.lua
View file @
06b6d943
--琰魔竜 レッド・デーモン・アビス
function
c9753964
.
initial_effect
(
c
)
--synchro summon
aux
.
AddSynchroProcedure
2
(
c
,
nil
,
aux
.
NonTuner
(
c9753964
.
sfilter
)
)
aux
.
AddSynchroProcedure
(
c
,
nil
,
aux
.
NonTuner
(
c9753964
.
sfilter
),
1
,
1
)
c
:
EnableReviveLimit
()
--negate
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
utility.lua
View file @
06b6d943
...
...
@@ -186,16 +186,17 @@ function Auxiliary.NonTuner(f,a,b,c)
return
target
:
IsNotTuner
()
and
(
not
f
or
f
(
target
,
a
,
b
,
c
))
end
end
--Synchro monster, 1 tuner + n or more monsters
function
Auxiliary
.
AddSynchroProcedure
(
c
,
f1
,
f2
,
ct
)
--Synchro monster, 1 tuner + min to max monsters
function
Auxiliary
.
AddSynchroProcedure
(
c
,
f1
,
f2
,
minc
,
maxc
)
if
maxc
==
nil
then
maxc
=
99
end
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetRange
(
LOCATION_EXTRA
)
e1
:
SetCondition
(
Auxiliary
.
SynCondition
(
f1
,
f2
,
ct
,
99
))
e1
:
SetTarget
(
Auxiliary
.
SynTarget
(
f1
,
f2
,
ct
,
99
))
e1
:
SetOperation
(
Auxiliary
.
SynOperation
(
f1
,
f2
,
ct
,
99
))
e1
:
SetCondition
(
Auxiliary
.
SynCondition
(
f1
,
f2
,
minc
,
maxc
))
e1
:
SetTarget
(
Auxiliary
.
SynTarget
(
f1
,
f2
,
minc
,
maxc
))
e1
:
SetOperation
(
Auxiliary
.
SynOperation
(
f1
,
f2
,
minc
,
maxc
))
e1
:
SetValue
(
SUMMON_TYPE_SYNCHRO
)
c
:
RegisterEffect
(
e1
)
end
...
...
@@ -232,17 +233,9 @@ function Auxiliary.SynOperation(f1,f2,minct,maxc)
end
end
--Synchro monster, 1 tuner + 1 monster
--backward compatibility
function
Auxiliary
.
AddSynchroProcedure2
(
c
,
f1
,
f2
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetRange
(
LOCATION_EXTRA
)
e1
:
SetCondition
(
Auxiliary
.
SynCondition
(
f1
,
f2
,
1
,
1
))
e1
:
SetTarget
(
Auxiliary
.
SynTarget
(
f1
,
f2
,
1
,
1
))
e1
:
SetOperation
(
Auxiliary
.
SynOperation
(
f1
,
f2
,
1
,
1
))
e1
:
SetValue
(
SUMMON_TYPE_SYNCHRO
)
c
:
RegisterEffect
(
e1
)
Auxiliary
.
AddSynchroProcedure
(
c
,
f1
,
f2
,
1
,
1
)
end
function
Auxiliary
.
XyzAlterFilter
(
c
,
alterf
,
xyzc
,
e
,
tp
,
op
)
return
alterf
(
c
)
and
c
:
IsCanBeXyzMaterial
(
xyzc
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
Group
.
FromCards
(
c
),
xyzc
)
>
0
and
(
not
op
or
op
(
e
,
tp
,
0
,
c
))
...
...
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