Skip to content

Auxiliary.TargetEqualFunction ​

Signature ​

lua
Auxiliary.TargetEqualFunction(function f, any value, [... any]) -> function

Description ​

Returns an effect target-value function that calls f on the target card and extra arguments, then checks whether the result equals value.

Parameters ​

  • f function
  • value any
  • ... any optional

Returns ​

  • function

Source ​

  • Utilities/utility.lua:448

Used By ​

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

  • Detected in 2 indexed script(s).
  • Search this function in the Script Explorer with Auxiliary.TargetEqualFunction.
CardIDScriptDetected Calls
Goyo Emperor59255742Scripts/c59255742.lua1
Owner's Seal9720537Scripts/c9720537.lua1

Script Examples ​

Goyo Emperor (59255742) ​

Source: Scripts/c59255742.lua

lua
	e1:SetProperty(EFFECT_FLAG_SET_AVAILABLE)
	e1:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE)
	e1:SetTarget(aux.TargetEqualFunction(Card.GetFlagEffect,1,59255742))
	e1:SetLabelObject(tg)
	Duel.RegisterEffect(e1,tp)

Owner's Seal (9720537) ​

Source: Scripts/c9720537.lua

lua
	e1:SetProperty(EFFECT_FLAG_SET_AVAILABLE)
	e1:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE)
	e1:SetTarget(aux.TargetEqualFunction(Card.GetFlagEffect,1,9720537))
	e1:SetLabelObject(tg)
	Duel.RegisterEffect(e1,tp)