Card.CreateEffectRelation
Signature
lua
Card.CreateEffectRelation(Card c, Effect e) -> voidDescription
Creates a relation between c and effect e. If e is the triggering effect of a current Chain Link, the relation is tied to that Chain Link; otherwise the core stores a direct effect relation.
Parameters
cCardeEffect
Source
D:\Programs\GitHub\ygopro-core\libcard.cpp:3614
Used By
Generated from the local Scripts/ folder and cards.cdb.
- Detected in 57 indexed script(s).
- Search this function in the Script Explorer with
Card.CreateEffectRelation.
| Card | ID | Script | Detected Calls |
|---|---|---|---|
| Tohushaddoll Grysta | 95072744 | Scripts/c95072744.lua | 1 |
| Graydle Split | 75361204 | Scripts/c75361204.lua | 1 |
| Particle Fusion | 39261576 | Scripts/c39261576.lua | 1 |
| Number 101: Silent Honor ARK - Soul Asylum | 2419596 | Scripts/c2419596.lua | 1 |
| Future Fusion | 77565204 | Scripts/c77565204.lua | 1 |
| Mad Tempest Trirealm Rift Ploutonion | 33822112 | Scripts/c33822112.lua | 1 |
| Zebufera, Vaalmonican Hallow Heathen | 2815176 | Scripts/c2815176.lua | 1 |
| Thunder Dragon Thunderstormech | 12081875 | Scripts/c12081875.lua | 1 |
| Myutant Blast | 79072916 | Scripts/c79072916.lua | 1 |
| Noh-P.U.N.K. Deer Note | 6609736 | Scripts/c6609736.lua | 1 |
| Gunkan Suship Uni | 42377643 | Scripts/c42377643.lua | 1 |
| K9-66a Jokul | 28642461 | Scripts/c28642461.lua | 1 |
| Generaider Boss Bite | 720147 | Scripts/c720147.lua | 1 |
| Gladiator Beast Gistel | 26582143 | Scripts/c26582143.lua | 1 |
| WAKE CUP! Macchia | 71410542 | Scripts/c71410542.lua | 1 |
| Geistgrinder Golem | 26913989 | Scripts/c26913989.lua | 1 |
| Coralianektes the Shimmering Shining Dragon | 82692552 | Scripts/c82692552.lua | 1 |
| Execution of the Contract | 55976207 | Scripts/c55976207.lua | 1 |
| Fishborg Harpooner | 57420265 | Scripts/c57420265.lua | 1 |
| Bait Doll | 7165085 | Scripts/c7165085.lua | 2 |
| Broomy | 57985393 | Scripts/c57985393.lua | 1 |
| Gouki Machine Suprex | 29099860 | Scripts/c29099860.lua | 1 |
| Ninjitsu Art of Shadow Sealing | 13629812 | Scripts/c13629812.lua | 1 |
| Parasomnia Pillow | 44092304 | Scripts/c44092304.lua | 1 |
| ...and 33 more |
Script Examples
Tohushaddoll Grysta (95072744)
Source: Scripts/c95072744.lua
lua
local tc=g:GetFirst()
Duel.ClearTargetCard()
tc:CreateEffectRelation(e)
e:SetLabelObject(tc)
local te=tc.shadoll_flip_effectGraydle Split (75361204)
Source: Scripts/c75361204.lua
lua
and Duel.IsExistingMatchingCard(c75361204.spfilter1,tp,LOCATION_DECK,0,1,nil,e,tp) end
local ec=e:GetLabelObject()
ec:CreateEffectRelation(e)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,ec,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,2,tp,LOCATION_DECK)Particle Fusion (39261576)
Source: Scripts/c39261576.lua
lua
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(39261576,1))
local g=mat:FilterSelect(tp,Card.IsSetCard,1,1,nil,0x1047)
tc:CreateEffectRelation(e)
Duel.SetTargetCard(g)
end