Group.SelectWithSumGreater
Signature
lua
Group.SelectWithSumGreater(Group g, int player, function f, int sum, ... any) -> GroupDescription
Lets player select a subset of g whose f-value sum reaches or exceeds sum according to the core's exact greater-sum selection rule; returns an empty Group if no valid subset exists.
Parameters
gGroupplayerintffunctionsumint...any
Returns
Group
Source
D:\Programs\GitHub\ygopro-core\libgroup.cpp:923
Used By
Generated from the local Scripts/ folder and cards.cdb.
- Detected in 1 indexed script(s).
- Search this function in the Script Explorer with
Group.SelectWithSumGreater.
| Card | ID | Script | Detected Calls |
|---|---|---|---|
| Ferret Flames | 31044787 | Scripts/c31044787.lua | 1 |
Script Examples
Ferret Flames (31044787)
Source: Scripts/c31044787.lua
lua
if diff<=0 then return end
Duel.Hint(HINT_SELECTMSG,1-tp,HINTMSG_TODECK)
local sg=g:SelectWithSumGreater(1-tp,c31044787.getAttack,diff)
Duel.SendtoDeck(sg,nil,SEQ_DECKSHUFFLE,REASON_RULE,1-tp)
end