Effect.GetCode
Signature
lua
Effect.GetCode(Effect e) -> intDescription
Returns e's effect code.
Parameters
eEffect
Returns
int
Source
D:\Programs\GitHub\ygopro-core\libeffect.cpp:632
Used By
Generated from the local Scripts/ folder and cards.cdb.
- Detected in 367 indexed script(s).
- Search this function in the Script Explorer with
Effect.GetCode.
Script Examples
Pendulum Evolution (55795155)
Source: Scripts/c55795155.lua
lua
function c55795155.cfilter(c,tp)
return c:IsType(TYPE_PENDULUM) and c:IsAbleToDeckAsCost()
and Duel.IsExistingMatchingCard(c55795155.thfilter,tp,LOCATION_DECK,0,1,nil,c:GetCode())
end
function c55795155.thfilter(c,code)Astrograph Sorcerer (76794549)
Source: Scripts/c76794549.lua
lua
return c:IsType(TYPE_MONSTER) and c:GetFlagEffect(76794549)~=0
and (c:IsLocation(LOCATION_GRAVE) or c:IsFaceup())
and Duel.IsExistingMatchingCard(c76794549.thfilter2,tp,LOCATION_DECK,0,1,nil,c:GetCode())
end
function c76794549.thfilter2(c,code)Ghostrick Renovation (61818176)
Source: Scripts/c61818176.lua
lua
function c61818176.filter1(c,e,tp)
return c:IsFaceup() and c:IsType(TYPE_XYZ) and c:IsSetCard(0x8d)
and Duel.IsExistingMatchingCard(c61818176.filter2,tp,LOCATION_EXTRA,0,1,nil,e,tp,c,c:GetCode())
and aux.MustMaterialCheck(c,tp,EFFECT_MUST_BE_XMATERIAL)
end