Duel.GetFieldGroupCount
Signature
lua
Duel.GetFieldGroupCount(int player, int s, int o) -> intDescription
Returns the number of cards in the specified locations from player's viewpoint.
Parameters
playerintsintoint
Returns
int
Source
D:\Programs\GitHub\ygopro-core\libduel.cpp:4966
Guided Examples
Learn how to use this function in context:
Used By
Generated from the local Scripts/ folder and cards.cdb.
- Detected in 950 indexed script(s).
- Search this function in the Script Explorer with
Duel.GetFieldGroupCount.
Script Examples
Levia-Dragoon - Daedalus (78579058)
Source: Scripts/c78579058.lua
lua
function s.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then
local h=Duel.GetFieldGroupCount(tp,0,LOCATION_HAND)
return h>0 and Duel.IsPlayerCanDraw(1-tp,h)
endSpellbook of the Grand Circle (11911336)
Source: Scripts/c11911336.lua
lua
if Duel.SendtoHand(sg,nil,REASON_EFFECT)>0 then
Duel.ConfirmCards(1-tp,sg)
if sg:IsExists(Card.IsLocation,1,nil,LOCATION_HAND) and Duel.GetFieldGroupCount(tp,LOCATION_HAND,0)>1 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local dg=Duel.SelectMatchingCard(tp,Card.IsAbleToDeck,tp,LOCATION_HAND,0,2,2,nil)El Shaddoll Apkallone (50907446)
Source: Scripts/c50907446.lua
lua
if g:GetCount()>0 and Duel.SendtoHand(g,nil,REASON_EFFECT)~=0 then
Duel.ConfirmCards(1-tp,g)
if g:GetFirst():IsLocation(LOCATION_HAND) and Duel.GetFieldGroupCount(tp,LOCATION_HAND,0)>0 then
Duel.BreakEffect()
Duel.ShuffleHand(tp)