Skip to content

Effect.SetOwnerPlayer ​

Signature ​

lua
Effect.SetOwnerPlayer(Effect e, int player) -> void

Description ​

Sets e's owner player to player. Only player values 0 and 1 are accepted; any other value leaves the effect unchanged.

Parameters ​

  • e Effect
  • player int

Source ​

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

Used By ​

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

  • Detected in 52 indexed script(s).
  • Search this function in the Script Explorer with Effect.SetOwnerPlayer.
CardIDScriptDetected Calls
Accel Synchro Stardust Dragon30983281Scripts/c30983281.lua2
Fallen Paradise of the Sacred Beasts65861210Scripts/c65861210.lua1
Thunder Dragonlord5206415Scripts/c5206415.lua1
Raviel, Lord of Phantasms - Shimmering Scraper28651380Scripts/c28651380.lua1
Deep Sea Prima Donna50793215Scripts/c50793215.lua1
Mystical Elf - White Lightning15613529Scripts/c15613529.lua1
Marincess Bubble Ring19712214Scripts/c19712214.lua1
Marincess Snow80627281Scripts/c80627281.lua1
The Breaking Ruin God85182315Scripts/c85182315.lua1
Gagaga Head67120578Scripts/c67120578.lua1
Armed Dragon Thunderbolt57605303Scripts/c57605303.lua1
Phantasm Spiral Assault97795930Scripts/c97795930.lua1
Noctovision Dragon70333910Scripts/c70333910.lua1
Aiwass, the Magistus Spell Spirit35877582Scripts/c35877582.lua1
Dimension Fusion Destruction89190953Scripts/c89190953.lua1
Future Drive12508268Scripts/c12508268.lua1
Meklord Deflection66594927Scripts/c66594927.lua1
Battlin' Boxer King Dempsey46804536Scripts/c46804536.lua1
Gagaku-P.U.N.K. Crash Beat17691568Scripts/c17691568.lua2
Gouki Iron Claw71555408Scripts/c71555408.lua1
Silent Sword Slash18563744Scripts/c18563744.lua1
Attack of the Cornered Rat84389640Scripts/c84389640.lua1
Decode Destruction33062423Scripts/c33062423.lua1
Marincess Wave52945066Scripts/c52945066.lua1
...and 28 more

Script Examples ​

Accel Synchro Stardust Dragon (30983281) ​

Source: Scripts/c30983281.lua

lua
			e1:SetValue(c30983281.immval)
			e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
			e1:SetOwnerPlayer(tp)
			tc:RegisterEffect(e1,true)
			tc:CompleteProcedure()

Fallen Paradise of the Sacred Beasts (65861210) ​

Source: Scripts/c65861210.lua

lua
				e1:SetReset(RESET_EVENT+RESETS_STANDARD)
				e1:SetValue(s.efilter)
				e1:SetOwnerPlayer(tp)
				tc:RegisterEffect(e1,true)
				if flag then

Thunder Dragonlord (5206415) ​

Source: Scripts/c5206415.lua

lua
		e1:SetValue(c5206415.tgoval)
		e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
		e1:SetOwnerPlayer(tp)
		tc:RegisterEffect(e1)
	end