forked from YGOProjectUnderground/CardScripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcustom_set_codes.lua
More file actions
46 lines (38 loc) · 1.55 KB
/
custom_set_codes.lua
File metadata and controls
46 lines (38 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
--Custom Archtypes
if not CustomArchetype then
CustomArchetype = {}
local MakeCheck=function(setcodes,archtable,extrafuncs)
return function(c,sc,sumtype,playerid)
sumtype=sumtype or 0
playerid=playerid or PLAYER_NONE
if extrafuncs then
for _,func in pairs(extrafuncs) do
if Card[func](c,sc,sumtype,playerid) then return true end
end
end
if setcodes then
for _,setcode in pairs(setcodes) do
if c:IsSetCard(setcode,sc,sumtype,playerid) then return true end
end
end
if archtable then
if c:IsSummonCode(sc,sumtype,playerid,table.unpack(archtable)) then return true end
end
return false
end
end
CustomArchetype.Shinobird={66815913,92200612,39817919,73055622,9553721,276357,2002000007
}
Card.IsSetShinobird=MakeCheck({SET_SHINOBIRD},CustomArchetype.Shinobird)
-- CustomArchetype.Metalmorph={68540059,504700111,12503902,504700017,511006005}
-- Card.IsSetMetalmorph=MakeCheck({SET_METALMORPH},CustomArchetype.Metalmorph)
CustomArchetype.Guardragon={11012154,35183584,6990577,43411769,79905468,84899094,95793022,
59537380,13143275,86148577,40003819,87571563,50186558,47393199,11908584}
Card.IsSetGuardragon=MakeCheck({SET_GUARDRAGON},CustomArchetype.Guardragon)
CustomArchetype.WNebula={90075978,2002000026}
Card.IsSetWNebula=MakeCheck({SET_W_NEBULA},CustomArchetype.WNebula)
CustomArchetype.Pikeru={81383947,75917088,58015506,74270067}
Card.IsSetPikeru=MakeCheck({SET_PIKERU},CustomArchetype.Pikeru)
CustomArchetype.Curran={46128076,2316186}
Card.IsSetCurran=MakeCheck({SET_Curran},CustomArchetype.Curran)
end