Group.FromCards
Signature
lua
Group.FromCards(... Card) -> GroupDescription
Creates and returns a new Group containing the non-nil Card arguments.
Parameters
...Card
Returns
Group
Source
D:\Programs\GitHub\ygopro-core\libgroup.cpp:904
Used By
Generated from the local Scripts/ folder and cards.cdb.
- Detected in 430 indexed script(s).
- Search this function in the Script Explorer with
Group.FromCards.
Script Examples
Artmage Non-Finito (74631897)
Source: Scripts/c74631897.lua
lua
if tc2 then
tc2:RegisterFlagEffect(id+o,RESET_EVENT+RESETS_STANDARD,0,1)
local sg=Group.FromCards(tc,tc2)
sg:KeepAlive()
e:SetLabelObject(sg)Pendulum Evolution (55795155)
Source: Scripts/c55795155.lua
lua
local sg=Group.CreateGroup()
sg:Merge(g)
Duel.HintSelection(Group.FromCards(lpz))
Duel.HintSelection(Group.FromCards(rpz))
Duel.RaiseEvent(sg,EVENT_SPSUMMON_SUCCESS_G_P,e,REASON_EFFECT,tp,tp,0)Astrograph Sorcerer (76794549)
Source: Scripts/c76794549.lua
lua
end
function c76794549.hngoal(g,e,tp,c)
local sg=Group.FromCards(c)
sg:Merge(g)
return Duel.IsExistingMatchingCard(c76794549.hnfilter,tp,LOCATION_EXTRA,0,1,nil,e,tp,sg)