forntonio
Member Title : Fentomen Posts : 17 Join date : 2014-08-31
| Subject: Power of Life Sun Aug 31, 2014 3:19 pm | |
| Can only be activated while you control no other cards. This card's activation can't be negated. Pay 15.000 Life Points; you win the Duel.
I am kind of clueless myself as I am completely unexperienced in LUA, the script would be highly appreciated! |
|
AoO
Member Title : Noob4ever Posts : 241 Join date : 2014-04-25 Location : I only know that it is dark :/
| Subject: Re: Power of Life Sun Aug 31, 2014 4:55 pm | |
| Hmm the card is a little bit OP but here XD Exchange the XXXXX with the ID of your card. - Code:
-
function cXXXXX.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_DRAW+CATEGORY_DAMAGE) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCost(cXXXXX.cost) e1:SetCondition(cXXXXX.con) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e1:SetOperation(cXXXXX.activate) c:RegisterEffect(e1) end function cXXXXX.filter(c) return not c:IsStatus(STATUS_LEAVE_CONFIRMED) end function cXXXXX.con(e,tp,eg,ep,ev,re,r,rp) return ep==tp and tp~=rp and not Duel.IsExistingMatchingCard(cXXXXX.filter,tp,LOCATION_ONFIELD,0,1,nil) end function cXXXXX.cost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.CheckLPCost(tp,15000) end Duel.PayLPCost(tp,15000) end function cXXXXX.activate(e,tp,eg,ep,ev,re,r,rp) local WIN_REASON_CREATORGOD = 0x13 Duel.Win(tp,WIN_REASON_CREATORGOD) end You win the duel if you pay the cost, but it shows you that you win by the effect of horakty (I hope that this is not so bad, because otherwise you would need a new Winning condition and I don't have a clue how to do that XD) I also didn't test it whether you really can't negate the effect- I hope it workes anyway^^' |
|
forntonio
Member Title : Fentomen Posts : 17 Join date : 2014-08-31
| Subject: Re: Power of Life Sun Aug 31, 2014 5:30 pm | |
| Cool, whai the draw category? |
|
AoO
Member Title : Noob4ever Posts : 241 Join date : 2014-04-25 Location : I only know that it is dark :/
| Subject: Re: Power of Life Sun Aug 31, 2014 6:02 pm | |
| To be honest you could also used other categories here, because a winning condition is not any category. I just happen to take Darknes Greed (cost) as a base and edit with parts from Gorz (activate, when you control no cards) and Horakty (Winning Condition + Unngegateable Effect). Darkness Greed Category is Category Draw^^ |
|
forntonio
Member Title : Fentomen Posts : 17 Join date : 2014-08-31
| Subject: Re: Power of Life Sun Aug 31, 2014 6:42 pm | |
| |
|
Sponsored content
| Subject: Re: Power of Life | |
| |
|