Auxiliary.SetUnionState
Signature
lua
Auxiliary.SetUnionState(Card c) -> voidDescription
Applies the equipped Union state to c after it becomes equipped. If c has an EFFECT_UNION_LIMIT effect, this registers the matching EFFECT_EQUIP_LIMIT and EFFECT_UNION_STATUS reset effects. Old Union cards also receive EFFECT_OLDUNION_STATUS.
Parameters
cCard
Source
Utilities/utility.lua:312
Guided Examples
Learn how to use this function in context:
Used By
Generated from the local Scripts/ folder and cards.cdb.
- Detected in 27 indexed script(s).
- Search this function in the Script Explorer with
Auxiliary.SetUnionState.
| Card | ID | Script | Detected Calls |
|---|---|---|---|
| Union Hangar | 66399653 | Scripts/c66399653.lua | 1 |
| Buster Blaster | 63676256 | Scripts/c63676256.lua | 1 |
| Burning Beast | 59364406 | Scripts/c59364406.lua | 1 |
| Delta Tri | 12079734 | Scripts/c12079734.lua | 1 |
| Kiryu | 84814897 | Scripts/c84814897.lua | 1 |
| Zombie Tiger | 47693640 | Scripts/c47693640.lua | 1 |
| Spirit of the Six Samurai | 65685470 | Scripts/c65685470.lua | 1 |
| Armor Breaker | 87798440 | Scripts/c87798440.lua | 1 |
| Oilman | 31768112 | Scripts/c31768112.lua | 1 |
| Des Dendle | 12965761 | Scripts/c12965761.lua | 1 |
| Freezing Beast | 85359414 | Scripts/c85359414.lua | 1 |
| Trigon | 48568432 | Scripts/c48568432.lua | 1 |
| Second Goblin | 19086954 | Scripts/c19086954.lua | 1 |
| Union Driver | 99249638 | Scripts/c99249638.lua | 1 |
| Vylon Pentachloro | 47228077 | Scripts/c47228077.lua | 1 |
| Protective Soul Ailin | 11678191 | Scripts/c11678191.lua | 1 |
| Vylon Tesseract | 84313685 | Scripts/c84313685.lua | 1 |
| X-Cross Cannon | 70860415 | Scripts/c70860415.lua | 1 |
| Pitch-Dark Dragon | 47415292 | Scripts/c47415292.lua | 1 |
| Metallizing Parasite - Lunatite | 7369217 | Scripts/c7369217.lua | 1 |
| Metallizing Parasite - Soltite | 87564935 | Scripts/c87564935.lua | 1 |
| Union Pilot | 89357740 | Scripts/c89357740.lua | 1 |
| Formation Union | 26931058 | Scripts/c26931058.lua | 1 |
| Koitsu | 69456283 | Scripts/c69456283.lua | 1 |
| ...and 3 more |
Script Examples
Union Hangar (66399653)
Source: Scripts/c66399653.lua
lua
local ec=sg:GetFirst()
if ec and Duel.Equip(tp,ec,tc) then
aux.SetUnionState(ec)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE)Buster Blaster (63676256)
Source: Scripts/c63676256.lua
lua
end
if not Duel.Equip(tp,c,tc,false) then return end
aux.SetUnionState(c)
end
function c63676256.sptg(e,tp,eg,ep,ev,re,r,rp,chk)Burning Beast (59364406)
Source: Scripts/c59364406.lua
lua
end
if not Duel.Equip(tp,c,tc,false) then return end
aux.SetUnionState(c)
end
function c59364406.sptg(e,tp,eg,ep,ev,re,r,rp,chk)