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
 

 Power of Life

View previous topic View next topic Go down 
AuthorMessage
forntonio




Member Title : Fentomen
Posts : 17
Join date : 2014-08-31

Power of Life Empty
PostSubject: Power of Life   Power of Life Icon_minitimeSun 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!
Back to top Go down
AoO

AoO


Member Title : Noob4ever
Posts : 241
Join date : 2014-04-25
Location : I only know that it is dark :/

Power of Life Empty
PostSubject: Re: Power of Life   Power of Life Icon_minitimeSun 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^^'
Back to top Go down
forntonio




Member Title : Fentomen
Posts : 17
Join date : 2014-08-31

Power of Life Empty
PostSubject: Re: Power of Life   Power of Life Icon_minitimeSun Aug 31, 2014 5:30 pm

Cool, whai the draw category?
Back to top Go down
AoO

AoO


Member Title : Noob4ever
Posts : 241
Join date : 2014-04-25
Location : I only know that it is dark :/

Power of Life Empty
PostSubject: Re: Power of Life   Power of Life Icon_minitimeSun 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^^
Back to top Go down
forntonio




Member Title : Fentomen
Posts : 17
Join date : 2014-08-31

Power of Life Empty
PostSubject: Re: Power of Life   Power of Life Icon_minitimeSun Aug 31, 2014 6:42 pm

Oh lol c:
Back to top Go down
Sponsored content





Power of Life Empty
PostSubject: Re: Power of Life   Power of Life Icon_minitime

Back to top Go down
 

Power of Life

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

 Similar topics

-
» ROW ROW FIGHT THE POWER(Some pictures may contain spoilers: You have been warned)
» Fairy tail anime cards 2nd release more power for the guild

Permissions in this forum:You cannot reply to topics in this forum
Mackpro :: MackPro :: Requests-