Effect.SetLabel
Signature
lua
Effect.SetLabel(Effect e, ... int) -> voidDescription
Stores one or more integer label values on e, replacing any previous labels.
Parameters
eEffect...int
Source
D:\Programs\GitHub\ygopro-core\libeffect.cpp:621
Guided Examples
Learn how to use this function in context:
- Activation Legality
- Common Script Errors And Debugging
- Creation, Building, and Registration of an Effect Object
Used By
Generated from the local Scripts/ folder and cards.cdb.
- Detected in 1741 indexed script(s).
- Search this function in the Script Explorer with
Effect.SetLabel.
Script Examples
Salamandra with Chain (62091148)
Source: Scripts/c62091148.lua
lua
e2:SetCode(EVENT_CHAIN_DISABLED)
e2:SetOperation(s.tgop)
e2:SetLabel(cid)
e2:SetReset(RESET_CHAIN)
Duel.RegisterEffect(e2,tp)Pendulum Evolution (55795155)
Source: Scripts/c55795155.lua
lua
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local g=Duel.SelectMatchingCard(tp,c55795155.cfilter,tp,LOCATION_HAND,0,1,1,nil,tp)
e:SetLabel(g:GetFirst():GetCode())
Duel.ConfirmCards(1-tp,g)
Duel.SendtoDeck(g,nil,SEQ_DECKSHUFFLE,REASON_COST)Eternal Favorite (87532344)
Source: Scripts/c87532344.lua
lua
end
function s.sumop(e,tp,eg,ep,ev,re,r,rp)
e:SetLabel(1)
if Duel.GetCurrentChain()==0 then
Duel.SetChainLimitTillChainEnd(aux.FALSE)