Jump to content

What's the problem in this script?


Sertoxian

Recommended Posts

I tried to make a simple custom card, but it says error when I try to test it. Here's the script.

 

-- Name
function c123458.initial_effect©
local e1=Effect.CreateEffect©
e1:SetType(EFFECT_TYPE_FLIP)
e1:SetCode(EVENT_DRAW)
e1:SetRange(LOCATION_MZONE)
c:RegisterEffect(e1)
end
 
I want the effect to be draw a card when you flip this card. How can I do that?
Link to post
Share on other sites

 

I tried to make a simple custom card, but it says error when I try to test it. Here's the script.

 

-- Name
function c123458.initial_effect©
local e1=Effect.CreateEffect©
e1:SetType(EFFECT_TYPE_FLIP)
e1:SetCode(EVENT_DRAW)
e1:SetRange(LOCATION_MZONE)
c:RegisterEffect(e1)
end
 
I want the effect to be draw a card when you flip this card. How can I do that?

 

 

Assuming this card's effect is just "FLIP: Draw 1 card", try borrowing the code from Skelengel, which does grant you a card if flipped face-up.

 

I don't think that should render any errors, but depending on the version of YGOPro you are using, some of it may be using code that isn't in line with what the scripts actually use. I'll assume you are using the current version.

Link to post
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...