Duel.RaiseEvent
Signature
lua
Duel.RaiseEvent(Card|Group eg, int code, Effect|nil re, int r, int rp, int ep, int ev) -> voidDescription
Raises event code for a Card or Group with the supplied effect, reason, reason player, event player, and event value. The core processes instant events after raising the event and yields without returning Lua values.
Parameters
egCard|GroupcodeintreEffect|nilrintrpintepintevint
Source
D:\Programs\GitHub\ygopro-core\libduel.cpp:4895
Guided Examples
Learn how to use this function in context:
Used By
Generated from the local Scripts/ folder and cards.cdb.
- Detected in 110 indexed script(s).
- Search this function in the Script Explorer with
Duel.RaiseEvent.
Script Examples
Pendulum Evolution (55795155)
Source: Scripts/c55795155.lua
lua
Duel.HintSelection(Group.FromCards(lpz))
Duel.HintSelection(Group.FromCards(rpz))
Duel.RaiseEvent(sg,EVENT_SPSUMMON_SUCCESS_G_P,e,REASON_EFFECT,tp,tp,0)
Duel.SpecialSummon(sg,SUMMON_TYPE_PENDULUM,tp,tp,true,true,POS_FACEUP)
e1:Reset()Astrograph Sorcerer (76794549)
Source: Scripts/c76794549.lua
lua
end
function c76794549.regop(e,tp,eg,ep,ev,re,r,rp)
Duel.RaiseEvent(eg,EVENT_CUSTOM+76794549,re,r,rp,ep,e:GetLabel())
end
function c76794549.rpfilter(c,e,tp)Performage Cup Tricker (6812770)
Source: Scripts/c6812770.lua
lua
local oc=sg:GetFirst():GetOverlayTarget()
Duel.RaiseSingleEvent(tc,EVENT_DETACH_MATERIAL,e,0,0,0,0)
Duel.RaiseEvent(tc,EVENT_DETACH_MATERIAL,e,0,0,0,0)
end
end