Skip to content

Effect.GetCost ​

Signature ​

lua
Effect.GetCost(Effect e) -> function|nil

Description ​

Returns e's cost function, or nil when no cost function is set.

Parameters ​

  • e Effect

Returns ​

  • function|nil

Source ​

  • D:\Programs\GitHub\ygopro-core\libeffect.cpp:643

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 Effect.GetCost.
CardIDScriptDetected Calls
Ghostrick Renovation61818176Scripts/c61818176.lua1
Ursarctic Polari27693363Scripts/c27693363.lua1
Sea Stealth Attack19089195Scripts/c19089195.lua1
Favorite Hero11881272Scripts/c11881272.lua1
Triamid Dancer69529337Scripts/c69529337.lua1
Numeron Wall42352091Scripts/c42352091.lua1
The Sacred Waters in the Sky26684111Scripts/c26684111.lua1
Triamid Master32912040Scripts/c32912040.lua1
Performapal Sky Magician73734821Scripts/c73734821.lua1
Bait Doll7165085Scripts/c7165085.lua1
Necrovalley Temple56773577Scripts/c56773577.lua1
Springans Booty7496001Scripts/c7496001.lua1
Triamid Hunter95923441Scripts/c95923441.lua1
Double Spell24096228Scripts/c24096228.lua1
F.A. Overheat32036866Scripts/c32036866.lua1
Dream Mirror of Joy74665651Scripts/c74665651.lua1
Vampire Takeover22900598Scripts/c22900598.lua1
Dream Mirror of Terror1050355Scripts/c1050355.lua1
Malefic Territory75223115Scripts/c75223115.lua1
Ignis Heat, the True Dracowarrior22499034Scripts/c22499034.lua1
Dinomight Knight, the True Dracofighter58984738Scripts/c58984738.lua1
Metaverse89208725Scripts/c89208725.lua1
Necroworld Banshee66570171Scripts/c66570171.lua1
Pop-Up15248873Scripts/c15248873.lua1
...and 3 more

Script Examples ​

Ghostrick Renovation (61818176) ​

Source: Scripts/c61818176.lua

lua
			te:UseCountLimit(tp,1,true)
			local tep=sc:GetControler()
			local cost=te:GetCost()
			if cost then cost(te,tep,eg,ep,ev,re,r,rp,1) end
			Duel.RaiseEvent(sc,4179255,te,0,tp,tp,Duel.GetCurrentChain())

Ursarctic Polari (27693363) ​

Source: Scripts/c27693363.lua

lua
		te:UseCountLimit(tp,1,true)
		local tep=tc:GetControler()
		local cost=te:GetCost()
		if cost then cost(te,tep,eg,ep,ev,re,r,rp,1) end
		Duel.RaiseEvent(tc,4179255,te,0,tp,tp,Duel.GetCurrentChain())

Sea Stealth Attack (19089195) ​

Source: Scripts/c19089195.lua

lua
			te:UseCountLimit(tp,1,true)
			local tep=tc:GetControler()
			local cost=te:GetCost()
			if cost then cost(te,tep,eg,ep,ev,re,r,rp,1) end
			if field then