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
 
HomePortalCalendarFAQSearchMemberlistUsergroupsRegisterLog in

Share | .
 

 Warrior Of Light

View previous topic View next topic Go down 
AuthorMessage
Elorion2

avatar


Member Title : Am i paranoid?
Posts : 71
Join date : 2014-06-10
Location : Greece

PostSubject: Warrior Of Light   Tue Jun 10, 2014 11:30 pm



This card can attack in defense position (it attacks with def 2100), if this card is going to be destroyed by card effect or monster effect for this turn it cant be destroyed this can be activated once


Last edited by Elorion2 on Thu Jun 12, 2014 4:12 pm; edited 1 time in total
Back to top Go down
View user profile
VB99

avatar


Member Title : Legendary Planet
Posts : 368
Join date : 2013-11-10

PostSubject: Re: Warrior Of Light   Wed Jun 11, 2014 1:01 am

Soo... a "superheavy" monster effect with a once as long as face up indestructability, basically?

_________________
Back to top Go down
View user profile http://www.fanfiktion.de/u/VB99
Elorion2

avatar


Member Title : Am i paranoid?
Posts : 71
Join date : 2014-06-10
Location : Greece

PostSubject: Re: Warrior Of Light   Wed Jun 11, 2014 11:49 am

VB99 wrote:
Soo... a "superheavy" monster effect with a once as long as face up indestructability, basically?
yes that's right :p
Back to top Go down
View user profile
VB99

avatar


Member Title : Legendary Planet
Posts : 368
Join date : 2013-11-10

PostSubject: Re: Warrior Of Light   Wed Jun 11, 2014 3:26 pm

function cXXXXXXXX.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_INDESTRUCTABLE_BATTLE)
e1:SetProperty(EFFECT_FLAG_NO_TURN_RESET)
e1:SetCountLimit(1)
e1:SetValue(1)
c:RegisterEffect(e1)
local e2=e1:Clone()
e2:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
c:RegisterEffect(e2)
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetCode(EFFECT_DEFENCE_ATTACK)
e3:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e3:SetRange(LOCATION_MZONE)
e3:SetValue(1)
c:RegisterEffect(e3)
end

Should be like this.

_________________
Back to top Go down
View user profile http://www.fanfiktion.de/u/VB99
Elorion2

avatar


Member Title : Am i paranoid?
Posts : 71
Join date : 2014-06-10
Location : Greece

PostSubject: Re: Warrior Of Light   Wed Jun 11, 2014 3:47 pm

two problems when he is in attack position he uses the def 2100 as an attack and he is second effect he cant die forever even when they attack me my monster doesnt die :O
Back to top Go down
View user profile
VB99

avatar


Member Title : Legendary Planet
Posts : 368
Join date : 2013-11-10

PostSubject: Re: Warrior Of Light   Wed Jun 11, 2014 4:20 pm

Do they attack twice or do they try to destroy it with an effect and then attack it?
And can he attack in defence postion?
Back to top Go down
View user profile http://www.fanfiktion.de/u/VB99
Elorion2

avatar


Member Title : Am i paranoid?
Posts : 71
Join date : 2014-06-10
Location : Greece

PostSubject: Re: Warrior Of Light   Wed Jun 11, 2014 4:51 pm

1.he can attack in defense position 
2.he used dark world grapha to destroy and then he attack and same thing again in other words he cant die
Back to top Go down
View user profile
VB99

avatar


Member Title : Legendary Planet
Posts : 368
Join date : 2013-11-10

PostSubject: Re: Warrior Of Light   Wed Jun 11, 2014 5:48 pm

1. i see, so I'll just add a condition that applies the effect only when in defence position.
2. I know why: I used a clone effect, and thanks to that, he is indestructible by both once as long as he is face up. I'll think about how to do this. I guess I'll need to use a replace code.
Back to top Go down
View user profile http://www.fanfiktion.de/u/VB99
Elorion2

avatar


Member Title : Am i paranoid?
Posts : 71
Join date : 2014-06-10
Location : Greece

PostSubject: Re: Warrior Of Light   Wed Jun 11, 2014 5:55 pm

okay dude
Back to top Go down
View user profile
VB99

avatar


Member Title : Legendary Planet
Posts : 368
Join date : 2013-11-10

PostSubject: Re: Warrior Of Light   Wed Jun 11, 2014 6:32 pm

function cXXXXXXXX.initial_effect(c)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_INDESTRUCTABLE_COUNT)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_NO_TURN_RESET)
e1:SetCountLimit(1)
e1:SetValue(cXXXXXXXX.valcon)
tc:RegisterEffect(e1)
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_DEFENCE_ATTACK)
e2:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e2:SetRange(LOCATION_MZONE)
e2:SetCondition(cXXXXXXXX.cond)
e2:SetValue(1)
c:RegisterEffect(e2)
end
function cXXXXXXXX.cond(e)
return e:GetHandler():IsDefencePos()
end
function cXXXXXXXX.valcon(e,re,r,rp)
return bit.band(r,REASON_BATTLE+REASON_EFFECT)~=0
end

try this and tell me if it works

_________________
Back to top Go down
View user profile http://www.fanfiktion.de/u/VB99
Elorion2

avatar


Member Title : Am i paranoid?
Posts : 71
Join date : 2014-06-10
Location : Greece

PostSubject: Re: Warrior Of Light   Wed Jun 11, 2014 6:48 pm

this error

script error string"./script/c86745020.lua":2: attempt to index global 'e' (a nil value)
Back to top Go down
View user profile
VB99

avatar


Member Title : Legendary Planet
Posts : 368
Join date : 2013-11-10

PostSubject: Re: Warrior Of Light   Wed Jun 11, 2014 7:04 pm

function cXXXXXXXX.initial_effect(c)
local e1=Effect.CreateEffect(e)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_INDESTRUCTABLE_COUNT)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_NO_TURN_RESET)
e1:SetCountLimit(1)
e1:SetValue(cXXXXXXXX.valcon)
tc:RegisterEffect(e1)
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_DEFENCE_ATTACK)
e2:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e2:SetRange(LOCATION_MZONE)
e2:SetCondition(cXXXXXXXX.cond)
e2:SetValue(1)
c:RegisterEffect(e2)
end
function cXXXXXXXX.cond(e)
return e:GetHandler():IsDefencePos()
end
function cXXXXXXXX.valcon(e,re,r,rp)
return bit.band(r,REASON_BATTLE+REASON_EFFECT)~=0
end

maybe like this.

_________________
Back to top Go down
View user profile http://www.fanfiktion.de/u/VB99
Elorion2

avatar


Member Title : Am i paranoid?
Posts : 71
Join date : 2014-06-10
Location : Greece

PostSubject: Re: Warrior Of Light   Wed Jun 11, 2014 7:08 pm

another error now
:2: parameter 1 should be "card".
lets use to the chat to communicate faster Smile
Back to top Go down
View user profile
VB99

avatar


Member Title : Legendary Planet
Posts : 368
Join date : 2013-11-10

PostSubject: Re: Warrior Of Light   Wed Jun 11, 2014 7:42 pm

function cXXXXXXXX.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_INDESTRUCTABLE_COUNT)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_NO_TURN_RESET)
e1:SetCountLimit(1)
e1:SetValue(cXXXXXXXX.valcon)
tc:RegisterEffect(e1)
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_DEFENCE_ATTACK)
e2:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e2:SetRange(LOCATION_MZONE)
e2:SetCondition(cXXXXXXXX.cond)
e2:SetValue(1)
c:RegisterEffect(e2)
end
function cXXXXXXXX.cond(e)
return e:GetHandler():IsDefencePos()
end
function cXXXXXXXX.valcon(e,re,r,rp)
return bit.band(r,REASON_BATTLE+REASON_EFFECT)~=0
end

oh man, solwly I'm starting to get out of ideas ._.
Back to top Go down
View user profile http://www.fanfiktion.de/u/VB99
Elorion2

avatar


Member Title : Am i paranoid?
Posts : 71
Join date : 2014-06-10
Location : Greece

PostSubject: Re: Warrior Of Light   Wed Jun 11, 2014 8:00 pm

not working Sad i cant even attack in defense position
Back to top Go down
View user profile
VB99

avatar


Member Title : Legendary Planet
Posts : 368
Join date : 2013-11-10

PostSubject: Re: Warrior Of Light   Wed Jun 11, 2014 8:15 pm

ok... man, I'm really confused now, all I did was adding a condition...


function cXXXXXXXX.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_INDESTRUCTABLE_COUNT)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_NO_TURN_RESET)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1)
e1:SetValue(cXXXXXXXX.valcon)
c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_DEFENCE_ATTACK)
e2:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e2:SetRange(LOCATION_MZONE)
e2:SetCondition(cXXXXXXXX.cond)
e2:SetValue(1)
c:RegisterEffect(e2)
end
function cXXXXXXXX.cond(e,tp,eg,ep,ev,re,r,rp)
return not e:GetHandler():IsDisabled() and e:GetHandler():IsDefencePos()
end
function cXXXXXXXX.valcon(e,re,r,rp)
return bit.band(r,REASON_BATTLE+REASON_EFFECT)~=0
end
Back to top Go down
View user profile http://www.fanfiktion.de/u/VB99
Elorion2

avatar


Member Title : Am i paranoid?
Posts : 71
Join date : 2014-06-10
Location : Greece

PostSubject: Re: Warrior Of Light   Thu Jun 12, 2014 1:32 pm

think he's okay now i didnt found any problem.
Back to top Go down
View user profile
Sponsored content





PostSubject: Re: Warrior Of Light   

Back to top Go down
 

Warrior Of Light

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

 Similar topics

-
» Light Warrior Deck
» my warrior deck
» The Sigmarite Warrior Priest HS (TC#28)
» Pass Key Light?
» equip spell/warrior combo

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