Auxiliary.PendOperation
Signature
lua
Auxiliary.PendOperation(Effect e, int tp, Group eg, int ep, int ev, Effect re, int r, int rp, Card c, Group sg, Group|nil og) -> voidDescription
Operation function for the shared Pendulum Summon procedure. It chooses the regular or extra Pendulum Summon option, computes hand, Extra Deck, and total Monster Zone limits, selects a legal subgroup, updates the shared checklist or consumes the extra effect's count limit, and merges the selected cards into sg for the core group Summon path.
Parameters
eEffecttpintegGroupepintevintreEffectrintrpintcCard- Left Pendulum Zone card whose procedure is being used.sgGroup- Core-provided group that receives the selected Pendulum Summon monsters.ogGroup|nil- Optional candidate group; nil rebuilds candidates from the player's hand and face-up Extra Deck.
Source
Utilities/procedure.lua:2033
Guided Examples
Learn how to use this function in context:
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
Auxiliary.PendOperation.
| Card | ID | Script | Detected Calls |
|---|---|---|---|
| Pendulum Encore | 6992184 | Scripts/c6992184.lua | 1 |
Script Examples
Pendulum Encore (6992184)
Source: Scripts/c6992184.lua
lua
--the summon should be done after the chain end
local sg=Group.CreateGroup()
aux.PendOperation(e,tp,eg,ep,ev,re,r,rp,lpz,sg,g)
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)