Recover MP after 4 turns

kovak

Silverguard
Veteran
Joined
Apr 3, 2016
Messages
1,253
Reaction score
1,558
First Language
PT - EN
Primarily Uses
RMMV
My idea is to when the actor reaches 10% of MP it will be recovered by 100% after 4 turns.


Idk javascript so i'm wordering if somebody can give me a hand with it since i'm almost sure it will require a lunatic mode to be done.
 

lolshtar

Master of Magic thatknow nospell
Veteran
Joined
Apr 13, 2013
Messages
694
Reaction score
101
First Language
French
Primarily Uses
RMMV
You'll need on each skill

<After Eval>
user._mprate = Math.floor(user.mp/user.mmp)
if (user._mprate < 0.10) {
user.addState(X) }
</After Eval>

State X has 25% MPR and lasts 4 turns

or you can also try a passive state that has this

<Custom Action End>
target._mprate = Math.floor(target.mp/target.mmp)
if (target._mprate < 0.10) {
target.addState(X) }
</Custom Action End>

Unfortunately, you weren't clear enough so l can't guess for you exactly what you want because balance wise, this would be really bad and probably give infinite mana unless you disable skills with the state.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Got MV on Steam during the Lunar New Year Sale! Happy Year of the Rat everyone!
Oh, stop with the Melodrama...

...Listen to it instead!

anybody else like getting baked whilst coding?

When you go to the beach watch out for coconuts. Coconuts are more dangerous than sharks. Fact.
Try to get into pixelart again, so far its a sucess.
Also finally found a useful pixeltutorial which helps a lot.

Forum statistics

Threads
93,617
Messages
914,002
Members
123,185
Latest member
Disaffect
Top