|
Author | Message |
---|
Elorion2
Member Title : Am i paranoid? Posts : 71 Join date : 2014-06-10 Location : Greece
| Subject: 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 |
|
| |
VB99
Member Title : Legendary Planet Posts : 368 Join date : 2013-11-10
| Subject: 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? |
|
| |
Elorion2
Member Title : Am i paranoid? Posts : 71 Join date : 2014-06-10 Location : Greece
| Subject: 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 |
|
| |
VB99
Member Title : Legendary Planet Posts : 368 Join date : 2013-11-10
| Subject: 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. |
|
| |
Elorion2
Member Title : Am i paranoid? Posts : 71 Join date : 2014-06-10 Location : Greece
| Subject: 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 |
|
| |
VB99
Member Title : Legendary Planet Posts : 368 Join date : 2013-11-10
| Subject: 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? |
|
| |
Elorion2
Member Title : Am i paranoid? Posts : 71 Join date : 2014-06-10 Location : Greece
| Subject: 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 |
|
| |
VB99
Member Title : Legendary Planet Posts : 368 Join date : 2013-11-10
| Subject: 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. |
|
| |
Elorion2
Member Title : Am i paranoid? Posts : 71 Join date : 2014-06-10 Location : Greece
| Subject: Re: Warrior Of Light Wed Jun 11, 2014 5:55 pm | |
| |
|
| |
VB99
Member Title : Legendary Planet Posts : 368 Join date : 2013-11-10
| Subject: 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
|
|
| |
Elorion2
Member Title : Am i paranoid? Posts : 71 Join date : 2014-06-10 Location : Greece
| Subject: 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) |
|
| |
VB99
Member Title : Legendary Planet Posts : 368 Join date : 2013-11-10
| Subject: 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. |
|
| |
Elorion2
Member Title : Am i paranoid? Posts : 71 Join date : 2014-06-10 Location : Greece
| Subject: 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 |
|
| |
VB99
Member Title : Legendary Planet Posts : 368 Join date : 2013-11-10
| Subject: 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 ._. |
|
| |
Elorion2
Member Title : Am i paranoid? Posts : 71 Join date : 2014-06-10 Location : Greece
| Subject: Re: Warrior Of Light Wed Jun 11, 2014 8:00 pm | |
| not working i cant even attack in defense position |
|
| |
VB99
Member Title : Legendary Planet Posts : 368 Join date : 2013-11-10
| Subject: 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 |
|
| |
Elorion2
Member Title : Am i paranoid? Posts : 71 Join date : 2014-06-10 Location : Greece
| Subject: Re: Warrior Of Light Thu Jun 12, 2014 1:32 pm | |
| think he's okay now i didnt found any problem. |
|
| |
Sponsored content
| Subject: Re: Warrior Of Light | |
| |
|
| |
|