Skip to content

Auxiliary.TurnPlayers ​

Signature ​

lua
Auxiliary.TurnPlayers() -> function

Description ​

Returns an iterator that yields the current turn player first, then the other player.

Returns ​

  • function - Iterator that yields the turn player, then the other player.

Source ​

  • Utilities/utility.lua:68

Used By ​

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

  • Detected in 11 indexed script(s).
  • Search this function in the Script Explorer with Auxiliary.TurnPlayers.
CardIDScriptDetected Calls
Radiant Typhoon Varuroon, the Marine Eidolon39341885Scripts/c39341885.lua1
Plunder Patrollship Jord85969517Scripts/c85969517.lua1
S:P Little Knight29301450Scripts/c29301450.lua1
Cynet Refresh36368606Scripts/c36368606.lua1
Destined Duel48128081Scripts/c48128081.lua1
Bone Temple Block47778083Scripts/c47778083.lua2
The Revived Sky God59094601Scripts/c59094601.lua1
Dark Magical Curtain41350417Scripts/c41350417.lua1
Dice Dungeon11808215Scripts/c11808215.lua1
Spatial Trunade2729965Scripts/c2729965.lua2
Destructive Daruma Karma Cannon30748475Scripts/c30748475.lua1

Script Examples ​

Radiant Typhoon Varuroon, the Marine Eidolon (39341885) ​

Source: Scripts/c39341885.lua

lua
	local tg=g:Filter(Card.IsRelateToEffect,nil,e):Filter(s.mvfilter2,nil,e)
	local pg=Group.CreateGroup()
	for p in aux.TurnPlayers() do
		local sg=tg:Filter(s.isowner,nil,p)
		local ct=Duel.GetLocationCount(p,LOCATION_SZONE)

Plunder Patrollship Jord (85969517) ​

Source: Scripts/c85969517.lua

lua
		return
	end
	for p in aux.TurnPlayers() do
		local token=Duel.CreateToken(tp,id+o)
		local e1=Effect.CreateEffect(c)

S:P Little Knight (29301450) ​

Source: Scripts/c29301450.lua

lua
	if #g<=0 then return end
	Duel.Hint(HINT_CARD,0,id)
	for p in aux.TurnPlayers() do
		local tg=g:Filter(Card.IsPreviousControler,nil,p)
		local ft=Duel.GetLocationCount(p,LOCATION_MZONE)