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
473b2b12
Commit
473b2b12
authored
Apr 30, 2019
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
further applications
parent
cc8b147e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
108 deletions
+30
-108
c79229522.lua
c79229522.lua
+15
-54
c87116928.lua
c87116928.lua
+15
-54
No files found.
c79229522.lua
View file @
473b2b12
...
...
@@ -3,6 +3,7 @@ function c79229522.initial_effect(c)
--fusion material
c
:
EnableReviveLimit
()
aux
.
AddFusionProcCodeFun
(
c
,
70095154
,
aux
.
FilterBoolFunction
(
Card
.
IsRace
,
RACE_MACHINE
),
1
,
true
,
true
)
aux
.
AddContactFusionProcedure
(
c
,
c79229522
.
cfilter
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
c79229522
.
sprop
(
c
))
--spsummon condition
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
@@ -10,15 +11,6 @@ function c79229522.initial_effect(c)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetValue
(
c79229522
.
splimit
)
c
:
RegisterEffect
(
e1
)
--special summon rule
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e2
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e2
:
SetRange
(
LOCATION_EXTRA
)
e2
:
SetCondition
(
c79229522
.
sprcon
)
e2
:
SetOperation
(
c79229522
.
sprop
)
c
:
RegisterEffect
(
e2
)
--cannot be fusion material
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
@@ -31,49 +23,18 @@ c79229522.material_setcode=0x1093
function
c79229522
.
splimit
(
e
,
se
,
sp
,
st
)
return
e
:
GetHandler
():
GetLocation
()
~=
LOCATION_EXTRA
end
function
c79229522
.
cfilter
(
c
,
tp
)
return
(
c
:
IsFusionCode
(
70095154
)
or
c
:
IsRace
(
RACE_MACHINE
)
and
c
:
IsType
(
TYPE_MONSTER
))
and
c
:
IsCanBeFusionMaterial
()
and
c
:
IsAbleToGraveAsCost
()
and
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
function
c79229522
.
cfilter
(
c
,
fc
)
return
c
:
IsAbleToGraveAsCost
()
and
(
c
:
IsControler
(
fc
:
GetControler
())
or
c
:
IsFaceup
())
end
function
c79229522
.
fcheck
(
c
,
sg
)
return
c
:
IsFusionCode
(
70095154
)
and
sg
:
FilterCount
(
c79229522
.
fcheck2
,
c
)
+
1
==
sg
:
GetCount
()
end
function
c79229522
.
fcheck2
(
c
)
return
c
:
IsRace
(
RACE_MACHINE
)
and
c
:
IsType
(
TYPE_MONSTER
)
end
function
c79229522
.
fgoal
(
c
,
tp
,
sg
)
return
sg
:
GetCount
()
>
1
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
sg
)
>
0
and
sg
:
IsExists
(
c79229522
.
fcheck
,
1
,
nil
,
sg
)
end
function
c79229522
.
fselect
(
c
,
tp
,
mg
,
sg
)
sg
:
AddCard
(
c
)
local
res
=
c79229522
.
fgoal
(
c
,
tp
,
sg
)
or
mg
:
IsExists
(
c79229522
.
fselect
,
1
,
sg
,
tp
,
mg
,
sg
)
sg
:
RemoveCard
(
c
)
return
res
end
function
c79229522
.
sprcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
local
mg
=
Duel
.
GetMatchingGroup
(
c79229522
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
,
tp
)
local
sg
=
Group
.
CreateGroup
()
return
mg
:
IsExists
(
c79229522
.
fselect
,
1
,
nil
,
tp
,
mg
,
sg
)
end
function
c79229522
.
sprop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
mg
=
Duel
.
GetMatchingGroup
(
c79229522
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
,
tp
)
local
sg
=
Group
.
CreateGroup
()
while
true
do
local
cg
=
mg
:
Filter
(
c79229522
.
fselect
,
sg
,
tp
,
mg
,
sg
)
if
cg
:
GetCount
()
==
0
or
(
c79229522
.
fgoal
(
c
,
tp
,
sg
)
and
not
Duel
.
SelectYesNo
(
tp
,
210
))
then
break
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
cg
:
Select
(
tp
,
1
,
1
,
nil
)
sg
:
Merge
(
g
)
end
Duel
.
SendtoGrave
(
sg
,
REASON_COST
)
function
c79229522
.
sprop
(
c
)
return
function
(
g
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
--spsummon condition
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_BASE_ATTACK
)
e1
:
SetReset
(
RESET_EVENT
+
0xff0000
)
e1
:
SetValue
(
s
g
:
GetCount
()
*
1000
)
e1
:
SetValue
(
g
:
GetCount
()
*
1000
)
c
:
RegisterEffect
(
e1
)
end
end
c87116928.lua
View file @
473b2b12
...
...
@@ -3,6 +3,7 @@ function c87116928.initial_effect(c)
--fusion material
c
:
EnableReviveLimit
()
aux
.
AddFusionProcFunFunRep
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsFusionSetCard
,
0x1093
),
c87116928
.
matfilter
,
1
,
63
,
true
)
aux
.
AddContactFusionProcedure
(
c
,
c87116928
.
cfilter
,
LOCATION_MZONE
,
LOCATION_MZONE
,
c87116928
.
sprop
(
c
))
--spsummon condition
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
@@ -10,15 +11,6 @@ function c87116928.initial_effect(c)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetValue
(
c87116928
.
splimit
)
c
:
RegisterEffect
(
e1
)
--special summon rule
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e2
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e2
:
SetRange
(
LOCATION_EXTRA
)
e2
:
SetCondition
(
c87116928
.
sprcon
)
e2
:
SetOperation
(
c87116928
.
sprop
)
c
:
RegisterEffect
(
e2
)
--cannot be fusion material
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
@@ -34,49 +26,18 @@ end
function
c87116928
.
splimit
(
e
,
se
,
sp
,
st
)
return
e
:
GetHandler
():
GetLocation
()
~=
LOCATION_EXTRA
end
function
c87116928
.
cfilter
(
c
,
tp
)
return
(
c
:
IsFusionSetCard
(
0x1093
)
or
c
:
GetSequence
()
>
4
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsCanBeFusionMaterial
()
and
c
:
IsAbleToGraveAsCost
()
and
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
function
c87116928
.
cfilter
(
c
,
fc
)
return
c
:
IsAbleToGraveAsCost
()
and
(
c
:
IsControler
(
fc
:
GetControler
())
or
c
:
IsFaceup
())
end
function
c87116928
.
fcheck
(
c
,
sg
)
return
c
:
IsFusionSetCard
(
0x1093
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
sg
:
FilterCount
(
c87116928
.
fcheck2
,
c
)
+
1
==
sg
:
GetCount
()
end
function
c87116928
.
fcheck2
(
c
)
return
c
:
GetSequence
()
>
4
end
function
c87116928
.
fgoal
(
c
,
tp
,
sg
)
return
#
sg
>
1
and
#
sg
<=
3
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
sg
)
>
0
and
sg
:
IsExists
(
c87116928
.
fcheck
,
1
,
nil
,
sg
)
end
function
c87116928
.
fselect
(
c
,
tp
,
mg
,
sg
)
sg
:
AddCard
(
c
)
local
res
=
c87116928
.
fgoal
(
c
,
tp
,
sg
)
or
mg
:
IsExists
(
c87116928
.
fselect
,
1
,
sg
,
tp
,
mg
,
sg
)
sg
:
RemoveCard
(
c
)
return
res
end
function
c87116928
.
sprcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
local
mg
=
Duel
.
GetMatchingGroup
(
c87116928
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
,
tp
)
local
sg
=
Group
.
CreateGroup
()
return
mg
:
IsExists
(
c87116928
.
fselect
,
1
,
nil
,
tp
,
mg
,
sg
)
end
function
c87116928
.
sprop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
mg
=
Duel
.
GetMatchingGroup
(
c87116928
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
,
tp
)
local
sg
=
Group
.
CreateGroup
()
while
true
do
local
cg
=
mg
:
Filter
(
c87116928
.
fselect
,
sg
,
tp
,
mg
,
sg
)
if
cg
:
GetCount
()
==
0
or
(
c87116928
.
fgoal
(
c
,
tp
,
sg
)
and
not
Duel
.
SelectYesNo
(
tp
,
210
))
then
break
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
cg
:
Select
(
tp
,
1
,
1
,
nil
)
sg
:
Merge
(
g
)
end
Duel
.
SendtoGrave
(
sg
,
REASON_COST
)
function
c87116928
.
sprop
(
c
)
return
function
(
g
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
--spsummon condition
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_BASE_ATTACK
)
e1
:
SetReset
(
RESET_EVENT
+
0xff0000
)
e1
:
SetValue
(
sg
:
GetCount
()
*
12
00
)
e1
:
SetValue
(
g
:
GetCount
()
*
10
00
)
c
:
RegisterEffect
(
e1
)
end
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