Effect.CreateEffect
Signature
lua
Effect.CreateEffect(Card c) -> EffectDescription
Creates a new empty Effect object owned by card c.
Parameters
cCard
Returns
Effect
Source
D:\Programs\GitHub\ygopro-core\libeffect.cpp:607
Guided Examples
Learn how to use this function in context:
- Beginner Script Ladder
- Creation, Building, and Registration of an Effect Object
- Write Your First Custom Card
- First Scripts To Study
Used By
Generated from the local Scripts/ folder and cards.cdb.
- Detected in 13438 indexed script(s).
- Search this function in the Script Explorer with
Effect.CreateEffect.
Script Examples
Salamandra with Chain (62091148)
Source: Scripts/c62091148.lua
lua
function s.initial_effect(c)
--
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_EQUIP+CATEGORY_POSITION+CATEGORY_MSET)
e1:SetType(EFFECT_TYPE_ACTIVATE)Astrograph Sorcerer, the Starfrost Magician (48171151)
Source: Scripts/c48171151.lua
lua
aux.EnablePendulumAttribute(c)
--place
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(id,0))
e1:SetCategory(CATEGORY_DESTROY)Artmage Non-Finito (74631897)
Source: Scripts/c74631897.lua
lua
aux.AddFusionProcFunRep(c,aux.FilterBoolFunction(Card.IsFusionSetCard,0x1cd),2,true)
--splimit
local e0=Effect.CreateEffect(c)
e0:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e0:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)