Auxiliary.TurnPlayers
Signature
lua
Auxiliary.TurnPlayers() -> functionDescription
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.
| Card | ID | Script | Detected Calls |
|---|---|---|---|
| Radiant Typhoon Varuroon, the Marine Eidolon | 39341885 | Scripts/c39341885.lua | 1 |
| Plunder Patrollship Jord | 85969517 | Scripts/c85969517.lua | 1 |
| S:P Little Knight | 29301450 | Scripts/c29301450.lua | 1 |
| Cynet Refresh | 36368606 | Scripts/c36368606.lua | 1 |
| Destined Duel | 48128081 | Scripts/c48128081.lua | 1 |
| Bone Temple Block | 47778083 | Scripts/c47778083.lua | 2 |
| The Revived Sky God | 59094601 | Scripts/c59094601.lua | 1 |
| Dark Magical Curtain | 41350417 | Scripts/c41350417.lua | 1 |
| Dice Dungeon | 11808215 | Scripts/c11808215.lua | 1 |
| Spatial Trunade | 2729965 | Scripts/c2729965.lua | 2 |
| Destructive Daruma Karma Cannon | 30748475 | Scripts/c30748475.lua | 1 |
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)