Skip to content

Auxiliary.tgoval ​

Signature ​

lua
Auxiliary.tgoval(Effect e, Effect re, int rp) -> void

Description ​

Shared value function for EFFECT_CANNOT_BE_EFFECT_TARGET effects that protect against the opponent's effects. It returns true when the reason player rp is the opponent of e's handler player.

Parameters ​

  • e Effect
  • re Effect
  • rp int

Source ​

  • Utilities/utility.lua:839

Guided Examples ​

Learn how to use this function in context:

Used By ​

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

  • Detected in 237 indexed script(s).
  • Search this function in the Script Explorer with Auxiliary.tgoval.
CardIDScriptDetected Calls
Fiendsmith's Sequence49867899Scripts/c49867899.lua1
Enneacraft - Asta.PIXEA28454232Scripts/c28454232.lua1
Duel Link Dragon, the Duel Dragon60025883Scripts/c60025883.lua1
Endymion, the Mighty Master of Magic3611830Scripts/c3611830.lua1
Favorite Hero11881272Scripts/c11881272.lua1
Galaxy-Eyes Cipher X Dragon28346136Scripts/c28346136.lua1
Red Hypernova Dragon30698243Scripts/c30698243.lua1
D/D/D Super Doom King Bright Armageddon72402069Scripts/c72402069.lua1
Daigusto Laplampilica76937326Scripts/c76937326.lua1
Egyptian God Slime42166000Scripts/c42166000.lua1
Majesty Pegasus, the Dracoslayer92332424Scripts/c92332424.lua1
Groza, Tyrant of Thunder45420955Scripts/c45420955.lua1
Lost World17228908Scripts/c17228908.lua1
Gagaga Utopic Tactics75956913Scripts/c75956913.lua1
Fata Dragna41763141Scripts/c41763141.lua1
Gergonne's End59490397Scripts/c59490397.lua1
The Winged Dragon of Ra - Sphere Mode10000080Scripts/c10000080.lua1
Supreme King Z-ARC13331639Scripts/c13331639.lua1
Noble Arms - Excaliburn46008667Scripts/c46008667.lua1
Drytron Meteonis Draconids69815951Scripts/c69815951.lua1
DoomZ Command "D.O.O.M.D.U.R.G."68831625Scripts/c68831625.lua1
Guardian Chimera11321089Scripts/c11321089.lua1
Drytron Meteonis Quadrantids95209656Scripts/c95209656.lua1
Darklord Eveningstar10136446Scripts/c10136446.lua1
...and 213 more

Script Examples ​

Fiendsmith's Sequence (49867899) ​

Source: Scripts/c49867899.lua

lua
		e2:SetType(EFFECT_TYPE_EQUIP)
		e2:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET)
		e2:SetValue(aux.tgoval)
		e2:SetReset(RESET_EVENT+RESETS_STANDARD)
		c:RegisterEffect(e2)

Enneacraft - Asta.PIXEA (28454232) ​

Source: Scripts/c28454232.lua

lua
	e5:SetTargetRange(LOCATION_ONFIELD+LOCATION_GRAVE,LOCATION_ONFIELD+LOCATION_GRAVE)
	e5:SetCondition(s.effcon)
	e5:SetValue(aux.tgoval)
	c:RegisterEffect(e5)
	Duel.AddCustomActivityCounter(id,ACTIVITY_SPSUMMON,s.counterfilter)

Source: Scripts/c60025883.lua

lua
	local e3=e2:Clone()
	e3:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET)
	e3:SetValue(aux.tgoval)
	c:RegisterEffect(e3)
end