Is it possible to make the basic attack deal damage to enemy and restore manna points to the person using
is to restore 5% MP
is to restore 5% MP
you beat me to the reply about the damage formula as i was typing it, but i was going to include that if they were going to use auto battle in any way, theyd probably want to use the common event anyways. They run the risk of getting that bug where the gainMp function runs even if attack isnt used and every action the auto battler does would regen mp without getting a separate plugin or modifying RM's code directly to fix it
Works halfway
a.gainMp(Math.ceil(a.mmp * .05))
Copy what you have in the reply from me. The a. in a.mmp is missing In your formula box. A few seconds after I made the first post i edited it because my phone's autocorrect is a touch overaggressive and removed the a. Initially
Thank you very much for your help Works perfectly
Thank you very much for your help
My game does, so it was a oversight on my part, but I'm sure the OP would have figured that out pretty quickly anyways 😛
Original thread: https://forums.rpgmakerweb.com/threads/help-is-it-possible-to-make-the-basic-attack-deal-damage-to-enemy-and-restore-manna-points.157590/