ChaotiK
2013-08-06T14:04:55Z
Hi,

I'm not entirely sure I've posted this in the correct thread, so if I haven't please forgive me.

I'm trying to design an Evil HERO based card, but run into the error Call card function twice. I've learned that this normally means there is something missing with the "E's" though can't see what. The card is correctly placed in the script folder. Hope someone can help me solve this issue, as it's honestly bugging me senseless.

Quote:

-- Evil HERO Void Reaper
function c77889988.inital_effect (c)
--fusion material
c:EnableReviveLimit()
aux.AddFusionProcCodeFun(c,58554959,c77889988.ffilter,1,true,true)
--spsummon condition
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e2:SetCode(EFFECT_SPSUMMON_CONDITION)
e2:SetValue(c77889988.splimit)
c:RegisterEffect(e2)
end
function c77889988.ffilter(c)
return c:IsRace(RACE_FIEND) and c:GetLevel()>=6
end
function c77889988.splimit(e,se,sp,st)
return st==SUMMON_TYPE_FUSION+0x10
end

RaiZZZ19
2013-08-06T15:13:15Z
Originally Posted by: ChaotiK 

Hi,

I'm not entirely sure I've posted this in the correct thread, so if I haven't please forgive me.

I'm trying to design an Evil HERO based card, but run into the error Call card function twice. I've learned that this normally means there is something missing with the "E's" though can't see what. The card is correctly placed in the script folder. Hope someone can help me solve this issue, as it's honestly bugging me senseless.

Quote:

-- Evil HERO Void Reaper
function c77889988.inital_effect (c)
--fusion material
c:EnableReviveLimit()
aux.AddFusionProcCodeFun(c,58554959,c77889988.ffilter,1,true,true)
--spsummon condition
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e2:SetCode(EFFECT_SPSUMMON_CONDITION)
e2:SetValue(c77889988.splimit)
c:RegisterEffect(e2)
end
function c77889988.ffilter(c)
return c:IsRace(RACE_FIEND) and c:GetLevel()>=6
end
function c77889988.splimit(e,se,sp,st)
return st==SUMMON_TYPE_FUSION+0x10
end



I think we both have the same interest in these Evil Heroes but I'll be focusing on the fusion materials if I were you as they are weak. They need to be stronger but it's ok. I'll do it myself. You take care of the fusions.
You should follow this for evil hero. And what exactly does your card do?

ChaotiK
2013-08-06T15:33:26Z
Hey,

Nothing as of yet. I removed all the effects from it to try and determine the cause of the errors, I guess I could always try and work with different fusion material, see if that works.

If I get it finished and you would like to me post it, let me know. I plan on adding blue-eyes shining's negate ability, and possibly a piercing, or direct attack along with it. OP? Yes. Fun? Hail yeah.
Jackmoonward
2013-08-06T23:56:15Z
function c77889988.splimit(e,se,sp,st)
return st==SUMMON_TYPE_FUSION+0x10
end

Thats your problem. You have not told the game what st is. Usually you just say local st=blah but you decided to put it as a peripheral instead.. Im going to assume that this effect is saying it can only be fusion summoned.

In that case just use this:

function c77889988.splimit(e,se,sp,st)
return bit.band(st,SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION
end

~Jack
Go here to vote for the next cards in Jackpro 1.5:
http://www.tehmadhouse.tk 
Youtube:
http://www.youtube.com/user/jackmoonward
ChaotiK
2013-08-07T12:46:29Z
Ah yeah, didn't really notice that, thanks Jack, truly appreciated. I went with Raiz's idea and used Dark Gaia as a base, and it works fine now, though I'm sure knowing that will be useful in the future, so I thank you both.