Hello,
I want to let the player recover MP if they use a certain skill. For example, if I use normal attack instead of a skill, I'll gain, let's say 2MP, or 20% of total MP. What I've tried to do is add a.gainMp(Math.floor(a.mmp * 0.2)) in the damage formula. However, there are issues with this:
- If I miss, I will not recover any MP.
- If I have a skill that does damage to more than one target, I'll gain more than just 20% MP. This is not a big problem as the first one, but I'd like to know a workaround as well, just in case it's ever needed.
I also want to reward the player for evading an attack or inflicting status ailments on the enemy. For example, if I get lucky and evade an attack, I'll gain 2MP. This can also apply if the character manages to counterattack. Or if I use "Fire" and inflict "burn" status on an enemy, I'll gain 2MP. There should be a way to control how much MP is gained depending on how many targets are inflicted, too. Maybe I'll gain only 2MP, or maybe I'll gain 6MP if I managed to inflict burn on 3 enemies.
So, how am I able to do this? Will I need to request for a plugin?
Since we're on the subject, I'd like to ask this, too. How can I force an actor to start with less than maximum MP? So let's say an actor has 10MP maximum, but I'd like to force the player to start a battle with 7 or 8MP only. This disregard how much MP the player had at the end of the previous battle. So the player must always have 70-80% MP in the beginning of every battle. How can I do this? I have tried to use the plugins from Aesica and Trivel, but they recover 80% if the maximum MP, and add that to the amount of MP the actor has. That's slightly different from what I am trying to accomplish. Or perhaps I'm not using the note tags correctly.
Thanks in advance for any help!
I want to let the player recover MP if they use a certain skill. For example, if I use normal attack instead of a skill, I'll gain, let's say 2MP, or 20% of total MP. What I've tried to do is add a.gainMp(Math.floor(a.mmp * 0.2)) in the damage formula. However, there are issues with this:
- If I miss, I will not recover any MP.
- If I have a skill that does damage to more than one target, I'll gain more than just 20% MP. This is not a big problem as the first one, but I'd like to know a workaround as well, just in case it's ever needed.
I also want to reward the player for evading an attack or inflicting status ailments on the enemy. For example, if I get lucky and evade an attack, I'll gain 2MP. This can also apply if the character manages to counterattack. Or if I use "Fire" and inflict "burn" status on an enemy, I'll gain 2MP. There should be a way to control how much MP is gained depending on how many targets are inflicted, too. Maybe I'll gain only 2MP, or maybe I'll gain 6MP if I managed to inflict burn on 3 enemies.
So, how am I able to do this? Will I need to request for a plugin?
Since we're on the subject, I'd like to ask this, too. How can I force an actor to start with less than maximum MP? So let's say an actor has 10MP maximum, but I'd like to force the player to start a battle with 7 or 8MP only. This disregard how much MP the player had at the end of the previous battle. So the player must always have 70-80% MP in the beginning of every battle. How can I do this? I have tried to use the plugins from Aesica and Trivel, but they recover 80% if the maximum MP, and add that to the amount of MP the actor has. That's slightly different from what I am trying to accomplish. Or perhaps I'm not using the note tags correctly.
Thanks in advance for any help!