Duel.GetTurnPlayer
Signature
lua
Duel.GetTurnPlayer() -> intDescription
Returns the current turn player.
Returns
int
Source
D:\Programs\GitHub\ygopro-core\libduel.cpp:4849
Guided Examples
Learn how to use this function in context:
Used By
Generated from the local Scripts/ folder and cards.cdb.
- Detected in 1234 indexed script(s).
- Search this function in the Script Explorer with
Duel.GetTurnPlayer.
Script Examples
Artmage Non-Finito (74631897)
Source: Scripts/c74631897.lua
lua
end
function s.fspcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==1-tp
end
function s.filter1(c,e)Mixousia the Confounder (80843006)
Source: Scripts/c80843006.lua
lua
end
function s.fspcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()~=tp and Duel.IsMainPhase()
end
function s.filter1(c,e)Ehther the Heavenly Monarch (96570609)
Source: Scripts/c96570609.lua
lua
function c96570609.sumcon(e,tp,eg,ep,ev,re,r,rp)
local ph=Duel.GetCurrentPhase()
return Duel.GetTurnPlayer()~=tp and (ph==PHASE_MAIN1 or ph==PHASE_MAIN2)
end
function c96570609.cfilter(c)