Skip to content

Duel.GetFieldGroup ​

Signature ​

lua
Duel.GetFieldGroup(int player, int s, int o) -> Group

Description ​

Returns the cards in the specified locations from player's viewpoint; s is player's side and o is the opponent's side.

Parameters ​

  • player int
  • s int
  • o int

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.
CardIDScriptDetected Calls
Pendulum Evolution55795155Scripts/c55795155.lua1
Levia-Dragoon - Daedalus78579058Scripts/c78579058.lua1
Goyo Emperor59255742Scripts/c59255742.lua1
Deftero Enneacraft - "alazoneIA"92171126Scripts/c92171126.lua1
PSY-Framelord Omega74586817Scripts/c74586817.lua1
D/D/D/D Super-Dimensional Sovereign Emperor Zero Paradox97417863Scripts/c97417863.lua1
Kewl Tune Crackle39576656Scripts/c39576656.lua2
DoSolfachord Coolia80776622Scripts/c80776622.lua1
A Bao A Qu, the Lightless Shadow4731783Scripts/c4731783.lua1
Chaos Emperor, the Dragon of Armageddon4538826Scripts/c4538826.lua1
R.B. Lambda Cannon81794107Scripts/c81794107.lua1
Witchcrafter Pittore95245544Scripts/c95245544.lua1
Dreaming Nemleria70155677Scripts/c70155677.lua1
Hyperinvoked Aeon33166263Scripts/c33166263.lua1
Genex Ally Triarm17760003Scripts/c17760003.lua1
Number 78: Number Archive29085954Scripts/c29085954.lua1
Supreme King Gate Zero96227613Scripts/c96227613.lua2
Red Hypernova Dragon30698243Scripts/c30698243.lua1
Chaos Emperor Dragon - Envoy of the End82301904Scripts/c82301904.lua2
Cyberdark End Dragon37542782Scripts/c37542782.lua1
Psychic Omnibuster70659412Scripts/c70659412.lua1
Zebufera, Vaalmonican Hallow Heathen2815176Scripts/c2815176.lua2
Egyptian God Slime42166000Scripts/c42166000.lua1
Majesty Pegasus, the Dracoslayer92332424Scripts/c92332424.lua1
...and 395 more

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()