RushDuel.GetTributeCount
Alias: RD.GetTributeCount. Requires the matching Rush Duel Lua bootstrap.
Signature
lua
RushDuel.GetTributeCount(any card) -> anyDescription
Rush Duel helper declared in RDSummon.lua. Its argument names are extracted from the pinned source; parameter and return types have not yet been reviewed.
Upstream source comment
text
获取召唤的解放数量Parameters
cardany: Type and behavior are not yet reviewed; see the source.
Returns
any: Return contract has not been reviewed; inspect the source below.
Source
Rush/Utilities/RDSummon.lua:214
lua
function RushDuel.GetTributeCount(card)
if card:IsSummonType(SUMMON_VALUE_ZERO) then
return 0
elseif card:IsSummonType(SUMMON_VALUE_ONE) then
return 1
elseif card:IsSummonType(SUMMON_VALUE_TWO) then
return 2
elseif card:IsSummonType(SUMMON_VALUE_THREE) then
return 3
elseif card:IsLevelBelow(4) then
return 0
elseif card:IsLevelBelow(6) then
return 1
else
return 2
end
endUsed By
Generated from the local Rush/Scripts/ folder and rush_cards.cdb.
- Detected in 1 indexed script(s).
- Search this function in the Script Explorer with
RushDuel.GetTributeCount.
| Card | ID | Script | Detected Calls |
|---|---|---|---|
| Behemoth the King of All Animals | 120238002 | Rush/Scripts/c120238002.lua | 1 |
Script Examples
Behemoth the King of All Animals (120238002)
Source: Rush/Scripts/c120238002.lua
lua
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
local ct=RD.GetTributeCount(e:GetHandler())
if chk==0 then return ct>0 and Duel.IsExistingMatchingCard(cm.thfilter,tp,LOCATION_GRAVE,0,ct,nil) end
e:SetLabel(ct)