RushDuel.CreateSingleEffect
Alias: RD.CreateSingleEffect. Requires the matching Rush Duel Lua bootstrap.
Signature
lua
RushDuel.CreateSingleEffect(any e, any desc, any card, any code, any value, any reset, any forced) -> anyDescription
Rush Duel helper declared in RDBase.lua. Its argument names are extracted from the pinned source; parameter and return types have not yet been reviewed.
Upstream source comment
text
创建效果: Buff类效果Parameters
eany: Type and behavior are not yet reviewed; see the source.descany: Type and behavior are not yet reviewed; see the source.cardany: Type and behavior are not yet reviewed; see the source.codeany: Type and behavior are not yet reviewed; see the source.valueany: Type and behavior are not yet reviewed; see the source.resetany: Type and behavior are not yet reviewed; see the source.forcedany: 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/RDBase.lua:163
lua
function RushDuel.CreateSingleEffect(e, desc, card, code, value, reset, forced)
local e1 = Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(code)
if desc ~= nil then
e1:SetDescription(desc)
e1:SetProperty(EFFECT_FLAG_CLIENT_HINT)
end
e1:SetLabel(FLAG_ATTACH_EFFECT)
if value ~= nil then
e1:SetValue(value)
end
if reset ~= nil then
e1:SetReset(reset)
end
card:RegisterEffect(e1, forced)
return e1
endUsed By
Generated from the local Rush/Scripts/ folder and rush_cards.cdb.
No indexed local card script currently calls this function.
This can mean the function is unused in the current script set, is only called through an alias, or is available for future/manual scripts.