Duel.GetFieldGroup
Signature
lua
Duel.GetFieldGroup(int player, int s, int o) -> GroupDescription
Returns the cards in the specified locations from player's viewpoint; s is player's side and o is the opponent's side.
Parameters
playerintsintoint
Returns
Group
Source
D:\Programs\GitHub\ygopro-core\libduel.cpp:4965
Guided Examples
Learn how to use this function in context:
Used By
Generated from the local Scripts/ folder and cards.cdb.
- Detected in 419 indexed script(s).
- Search this function in the Script Explorer with
Duel.GetFieldGroup.
Script Examples
Pendulum Evolution (55795155)
Source: Scripts/c55795155.lua
lua
local rscale=rpz:GetRightScale()
if lscale>rscale then lscale,rscale=rscale,lscale end
local g=Duel.GetFieldGroup(tp,loc,0)
local res=g:IsExists(aux.PConditionFilter,1,nil,e,tp,lscale,rscale,eset)
e1:Reset()Levia-Dragoon - Daedalus (78579058)
Source: Scripts/c78579058.lua
lua
function s.drop(e,tp,eg,ep,ev,re,r,rp)
local h=Duel.GetFieldGroupCount(tp,0,LOCATION_HAND)
local g=Duel.GetFieldGroup(tp,0,LOCATION_HAND)
if Duel.SendtoGrave(g,REASON_EFFECT+REASON_DISCARD)>0 then
Duel.BreakEffect()Goyo Emperor (59255742)
Source: Scripts/c59255742.lua
lua
end
function c59255742.ctop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetFieldGroup(tp,LOCATION_MZONE,0)
local tc=g:GetFirst()
local tg=Group.CreateGroup()