Skip to content

Auxiliary.EnableChangeCode ​

Signature ​

lua
Auxiliary.EnableChangeCode(Card c, int code, int location, function condition) -> void

Description ​

Registers code as a listed code for c and gives c an EFFECT_CHANGE_CODE effect with that value. If location is omitted, monsters use the Monster Zone and non-monsters use the Spell & Trap Zone. If condition is omitted, the code change is always active.

Parameters ​

  • c Card
  • code int
  • location int
  • condition function

Source ​

  • Utilities/utility.lua:433

Guided Examples ​

Learn how to use this function in context:

Used By ​

Generated from the local Scripts/ folder and cards.cdb.

  • Detected in 111 indexed script(s).
  • Search this function in the Script Explorer with Auxiliary.EnableChangeCode.
CardIDScriptDetected Calls
Levia-Dragoon - Daedalus78579058Scripts/c78579058.lua1
Azure Ocean Dragon Lord - Neo-Daedalus Rage41570943Scripts/c41570943.lua1
Supreme King Z-ARC - Synchro Universe48654267Scripts/c48654267.lua1
Gunkan Suship Shari Red63748694Scripts/c63748694.lua1
Harpie Conductor85696777Scripts/c85696777.lua1
Buster Blader, the Destruction Swordmaster3428069Scripts/c3428069.lua1
Frightfur Jar18138630Scripts/c18138630.lua1
Dark Magician of Destruction59400890Scripts/c59400890.lua1
Sea Stealth II58203736Scripts/c58203736.lua1
Armed Dragon Thunder LV521546416Scripts/c21546416.lua1
Avendread Savior91420202Scripts/c91420202.lua1
Shiranui Style Samsara78765160Scripts/c78765160.lua1
Perfect Toon World7293697Scripts/c7293697.lua1
Ruler of the End of the World3739500Scripts/c3739500.lua1
Shiranui Style Solemnity40364916Scripts/c40364916.lua1
Armed Dragon Thunder LV1058153103Scripts/c58153103.lua1
Monstrous Arms of Atlantis37092104Scripts/c37092104.lua1
Leviathan of Atlantis - Daedalus64603351Scripts/c64603351.lua1
Eldlich the Mad Golden Lord74889525Scripts/c74889525.lua1
Berfomet the Mythical King of Phantom Beasts69601012Scripts/c69601012.lua1
Wightbaking6128460Scripts/c6128460.lua1
Fallen Sanctuary90312154Scripts/c90312154.lua1
Evil Eye of Gorgoneio28957126Scripts/c28957126.lua1
Scarred Dragon Archfiend87451661Scripts/c87451661.lua1
...and 87 more

Script Examples ​

Levia-Dragoon - Daedalus (78579058) ​

Source: Scripts/c78579058.lua

lua
function s.initial_effect(c)
	aux.AddCodeList(c,38391684,22702055)
	aux.EnableChangeCode(c,22702055)
	--link summon
	c:EnableReviveLimit()

Azure Ocean Dragon Lord - Neo-Daedalus Rage (41570943) ​

Source: Scripts/c41570943.lua

lua
function s.initial_effect(c)
	aux.AddCodeList(c,38391684,22702055)
	aux.EnableChangeCode(c,22702055)
	--link summon
	c:EnableReviveLimit()

Supreme King Z-ARC - Synchro Universe (48654267) ​

Source: Scripts/c48654267.lua

lua
function c48654267.initial_effect(c)
	aux.AddCodeList(c,13331639)
	aux.EnableChangeCode(c,13331639,LOCATION_MZONE)
	aux.EnablePendulumAttribute(c)
	c:EnableReviveLimit()