Marc
  • Marc
  • Advanced Member Topic Starter
2016-03-11T20:19:08Z
1 Zombie-Type Tuner + 1 or more Zombie-type non-Tuner monsters (I know I don't have the non-tuner zombie type)
Increase the ATK of this card by 500 point for each Zombie-Type monster in your Graveyard.

No errors pop up & I double checked SQlite to make sure I didn't type something wrong. Why can't I summon him?

Quote:

--Skeleton Emperor
function c10600000.initial_effect(c)
--synchro summon
aux.AddSynchroProcedure(c,aux.FilterBoolFunction(Card.IsRace,RACE_ZOMBIE),aux.NonTuner(nil),1)
c:EnableReviveLimit()
end
function c10600000.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e1:SetRange(LOCATION_MZONE)
e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetValue(c10600000.value)
c:RegisterEffect(e1)
end
function c10600000.value(e,c)
return Duel.GetMatchingGroupCount(Card.IsType,c:GetControler(),LOCATION_GRAVE,0,nil,RACE_ZOMBIE)*500
end


urielkama
2016-03-11T21:00:41Z
Originally Posted by: Marc 

1 Zombie-Type Tuner + 1 or more Zombie-type non-Tuner monsters (I know I don't have the non-tuner zombie type)
Increase the ATK of this card by 500 point for each Zombie-Type monster in your Graveyard.

No errors pop up & I double checked SQlite to make sure I didn't type something wrong. Why can't I summon him?

Quote:

--Skeleton Emperor
function c10600000.initial_effect(c)
--synchro summon
aux.AddSynchroProcedure(c,aux.FilterBoolFunction(Card.IsRace,RACE_ZOMBIE),aux.NonTuner(nil),1)
c:EnableReviveLimit()
end
function c10600000.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e1:SetRange(LOCATION_MZONE)
e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetValue(c10600000.value)
c:RegisterEffect(e1)
end
function c10600000.value(e,c)
return Duel.GetMatchingGroupCount(Card.IsType,c:GetControler(),LOCATION_GRAVE,0,nil,RACE_ZOMBIE)*500
end



cause you set an end Operator wrong and isnt needed also you added a second initial_effect(c) in your script this Courses the Problem that the ygopro engine cant read the Card script,try this and take also again care that the Card id matching with the Card you have added in sqlite:

Marc
  • Marc
  • Advanced Member Topic Starter
2016-03-12T02:12:37Z
I used the script as you suggested & I can synchro summon it but it doesn't get the ATK boost per zombie in the Graveyard.

Quote:

---Skeleton Emperor
function c10600000.initial_effect(c)
--synchro summon
c:EnableReviveLimit()
aux.AddSynchroProcedure(c,aux.FilterBoolFunction(Card.IsRace,RACE_ZOMBIE),aux.NonTuner(nil),1)
--atk up
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e1:SetRange(LOCATION_MZONE)
e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetValue(c10600000.value)
c:RegisterEffect(e1)
end
function c10600000.value(e,c)
return Duel.GetMatchingGroupCount(Card.IsType,c:GetControler(),LOCATION_GRAVE,0,nil,RACE_ZOMBIE)*500
end

Nawutoe
2016-03-12T02:47:27Z
IsType is your problem. Zombie's aren't a "Type" they're a "Race".
Marc
  • Marc
  • Advanced Member Topic Starter
2016-03-12T03:10:53Z
Thanks! That worked.