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
30,390
Reaction score
7,219
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 Profile Posts

Should be able to release Haxe MV/MZ next weekend.
It look that somehow MZ tracks are messed up (for example battle4 is obviously a theme, castle2 is a ship, ship1 is a scene and so on..). Maybe they just named them after with some ambiguity.
is there a script call that return how much turn has passed in battle?
Does anyone find this hard to read?

Enjoying my weekend at home to stay Covid free. How is everyone else doing?

Forum statistics

Threads
100,603
Messages
977,736
Members
132,215
Latest member
Galgar22
Top