Skip to content

Group.CancelableSelect ​

Signature ​

lua
Group.CancelableSelect(Group g, int player, int min, int max, [Card|Group|nil ex]) -> Group|nil

Description ​

Lets player select min to max cards from g, excluding ex; the selection can be canceled and return nil.

Parameters ​

  • g Group
  • player int
  • min int
  • max int
  • ex Card|Group|nil optional

Returns ​

  • Group|nil

Source ​

  • D:\Programs\GitHub\ygopro-core\libgroup.cpp:918

Used By ​

Generated from the local Scripts/ folder and cards.cdb.

  • Detected in 31 indexed script(s).
  • Search this function in the Script Explorer with Group.CancelableSelect.
CardIDScriptDetected Calls
Destiny HERO - Destro-Dogma25158975Scripts/c25158975.lua1
Meklord Astro Mekanikle63468625Scripts/c63468625.lua1
Yummy☆Surprise29369059Scripts/c29369059.lua1
Spirit Poacher85150300Scripts/c85150300.lua1
Black Chaos98684220Scripts/c98684220.lua1
SPYRAL Sleeper35699Scripts/c35699.lua1
Heavy Beetrooper Mighty Neptune14357527Scripts/c14357527.lua1
Chaos Dragon Levianeer55878038Scripts/c55878038.lua1
Chaotic Elements92221402Scripts/c92221402.lua1
Ultimate Conductor Tyranno18940556Scripts/c18940556.lua1
Regenesis Overlord47082621Scripts/c47082621.lua1
Overtex Qoatlus41782653Scripts/c41782653.lua1
Degrade Buster50426119Scripts/c50426119.lua1
Dark Necrofear31829185Scripts/c31829185.lua1
Batteryman Industrial Strength19441018Scripts/c19441018.lua1
Block Dragon94689206Scripts/c94689206.lua1
Enishi, Shien's Chancellor38280762Scripts/c38280762.lua1
Akz, the Pumer38837163Scripts/c38837163.lua1
Hieratic Dragon of Sutekh66789970Scripts/c66789970.lua1
Knight of the Red Lotus46237548Scripts/c46237548.lua1
Beargram, Shelled Emperor of the Forest Crown27134209Scripts/c27134209.lua1
Gaia Plate the Earth Giant14258627Scripts/c14258627.lua1
Gigastone Omega79080761Scripts/c79080761.lua1
Montage Dragon23303072Scripts/c23303072.lua1
...and 7 more

Script Examples ​

Destiny HERO - Destro-Dogma (25158975) ​

Source: Scripts/c25158975.lua

lua
	local g=Duel.GetMatchingGroup(s.spfilter,tp,LOCATION_GRAVE,0,c)
	Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
	local sg=g:CancelableSelect(tp,3,3,nil)
	if sg then
		sg:KeepAlive()

Meklord Astro Mekanikle (63468625) ​

Source: Scripts/c63468625.lua

lua
	local g=Duel.GetMatchingGroup(c63468625.spfilter,tp,LOCATION_HAND,0,c)
	Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
	local sg=g:CancelableSelect(tp,3,3,nil)
	if sg then
		sg:KeepAlive()

Yummy☆Surprise (29369059) ​

Source: Scripts/c29369059.lua

lua
				if fg:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(id,4)) then
					Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOFIELD)
					local tfg=fg:CancelableSelect(tp,1,1,nil)
					if not tfg then goto cancel end
					tfc=tfg:GetFirst()