How to format a custom formula in Yanfly's Lunatic Damage?

Status
Not open for further replies.

LeeOccleshaw

Stone Dragon Workshop
Veteran
Joined
Jun 9, 2015
Messages
155
Reaction score
82
First Language
English
Primarily Uses
Can anyone teach me how to format this damage formula in the Yanfly's Lunatic Damage script? I'm not a scripter so I'm finding it hard to work out how exactly it's supposed to be formatted within the script.

b.state?(1) ? b.add_state(2) + b.add_state(3) : b.add_state(2)

Thanks!

Edit: A friendly forumer, Moogle_X, has solved this for me. For anyone wondering how to format formulas for Lunatic Damage, it looks like this:

when /WEAKENED1/i

        if b.state?(1);b.add_state(2);b.add_state(3);else;b.add_state(2);end;

        value += (0)

 

Now I can go crazy with my states, thanks Moogle_X! 
 
Last edited by a moderator:

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,355
Reaction score
7,668
First Language
German
Primarily Uses
RMMV
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.


at OP request
 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,849
Messages
1,016,981
Members
137,563
Latest member
cexojow
Top