a place for all your custom card needs you can post scripts pics and request for card to be made also please donate to the funding for a new server made for custom card duels
 
HomePortalLatest imagesSearchRegisterLog in

Share
 

 Legendary Dragon of Shadows error

View previous topic View next topic Go down 
AuthorMessage
Marc1




Posts : 43
Join date : 2013-08-03

Legendary Dragon of Shadows error Empty
PostSubject: Legendary Dragon of Shadows error   Legendary Dragon of Shadows error Icon_minitimeSat Dec 12, 2015 5:43 pm

Someone made the first part for me & I tried to copy & paste the second effect but I get this error. 10: Parameter 2 Should be function

Can only be special summoned if all monsters in your hand, field & Graveyard are Dark monsters. If you control another monster with a different Attribute; destroy this card.
Once per turn: you can banish 1 card on the field.

--Legendary Dragon of the Shadows
function c1067000000.initial_effect(c)
c:EnableReviveLimit()
--special summon condition
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINLE)
e1:SetCode(EFFECT_SPSUMMON_CONDITION)
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE)
e1:SetRange(LOCATION_HAND+LOCATION_DECK+LOCATION_GRAVE+LOCATION_REMOVED+LOCATION_EXTRA+LOCATION_ONFIELD)
e1:SetCondition(c1067000000.spcon)
c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCategory(CATEGORY_DESTROY)
e2:SetRange(LOCATION_MZONE)
e2:SetCondition(c1067000000.descon)
c:RegisterEffect(e2)
--Remove
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(1067000000,1))
e3:SetCategory(CATEGORY_REMOVE)
e3:SetProperty(EFFECT_FLAG_CARD_TARGET)
e3:SetType(EFFECT_TYPE_IGNITION)
e3:SetRange(LOCATION_MZONE)
e3:SetCountLimit(1)
e3:SetTarget(c1067000000.rmtg)
e3:SetOperation(c1067000000.remop)
c:RegisterEffect(e3)
end
function c1067000000.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and chkc:IsAbleToRemove() end
if chk==0 then return true end
if Duel.IsExistingTarget(Card.IsAbleToRemove,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil)
and Duel.SelectYesNo(tp,aux.Stringid(1067000000,1)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectTarget(tp,Card.IsAbleToRemove,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,1,0,0)
end
function c1067000000.spcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
return Duel.IsExistingMatchingCard(c1067000000.filter,tp,LOCATION_ONFIELD+LOCATION_HAND+LOCATION_GRAVE,0,nil)==0
end
function c1067000000.spfilter(c)
return not c:IsAttribute(ATTRIBUTE_DARK)
end
function c1067000000.descon(c)
if c==nil then return true end
local tp=c:GetControler()
return Duel.IsExistingMatchingCard(c1067000000.desfilter,tp,LOCATION_MZONE,0,nil)>0
end
function c1067000000.desfilter(e,c)
return not c:IsAttribute(e:GetHandler():GetAttribute())
end
end
Back to top Go down
XxDragoulxX




Member Title : Fire Guardian
Posts : 17
Join date : 2013-11-09

Legendary Dragon of Shadows error Empty
PostSubject: Re: Legendary Dragon of Shadows error   Legendary Dragon of Shadows error Icon_minitimeSun Dec 13, 2015 6:19 pm

i think i know what's wrong, but i wouldn't take this to heart if this info is wrong because i know VERY little about scripting yugioh cards, but here it goes...

i think its the fact that your destruction effect is lacking an operation to carry out the destruction of said monster. i wouldn't know exactly how to code it in, but i think that's the issue you're having with this.

hope this helps at all, and good luck with your card!
Back to top Go down
cane_63106

cane_63106


Member Title : D.D. Dragon Kaiser
Posts : 454
Join date : 2013-07-23
Location : St. Louis, MO

Legendary Dragon of Shadows error Empty
PostSubject: Re: Legendary Dragon of Shadows error   Legendary Dragon of Shadows error Icon_minitimeSat Dec 19, 2015 9:46 am

function c1067000000.target




what does that go to?
Back to top Go down
http:// https://www.youtube.com/user/cane63106/videos
Sponsored content





Legendary Dragon of Shadows error Empty
PostSubject: Re: Legendary Dragon of Shadows error   Legendary Dragon of Shadows error Icon_minitime

Back to top Go down
 

Legendary Dragon of Shadows error

View previous topic View next topic Back to top 
Page 1 of 1

 Similar topics

-
» Script error and a windows error issue!
» new Dragon support - Attack Of The Dragon
» VB99, the Legendary Planet
» Skeleton Warrior - DeeKay Error
» Error - 1001

Permissions in this forum:You cannot reply to topics in this forum
Mackpro :: MackPro :: Custom cards - Single cards-