Effect.SetDescription
Signature
lua
Effect.SetDescription(Effect e, int desc) -> voidDescription
Sets e's description id, usually produced with Auxiliary.Stringid for card text choices.
How To Use It
Descriptions are integer string ids, not raw text.
Most card scripts use aux.Stringid(id,n) to point at the nth string for that card:
lua
e1:SetDescription(aux.Stringid(id,0))Descriptions are commonly shown for optional triggers, selectable effects, and effects registered to Spell/Trap activations.
Related Functions
Parameters
eEffectdescint
Source
D:\Programs\GitHub\ygopro-core\libeffect.cpp:612
Guided Examples
Learn how to use this function in context:
Used By
Generated from the local Scripts/ folder and cards.cdb.
- Detected in 9207 indexed script(s).
- Search this function in the Script Explorer with
Effect.SetDescription.
Script Examples
Astrograph Sorcerer, the Starfrost Magician (48171151)
Source: Scripts/c48171151.lua
lua
--place
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(id,0))
e1:SetCategory(CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_IGNITION)Artmage Non-Finito (74631897)
Source: Scripts/c74631897.lua
lua
--set
local e4=Effect.CreateEffect(c)
e4:SetDescription(aux.Stringid(id,0))
e4:SetCategory(CATEGORY_SSET)
e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)Pendulum Evolution (55795155)
Source: Scripts/c55795155.lua
lua
--to hand
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(55795155,0))
e2:SetCategory(CATEGORY_SEARCH+CATEGORY_TOHAND)
e2:SetType(EFFECT_TYPE_IGNITION)