- Joined
- Oct 2, 2016
- Messages
- 18
- Reaction score
- 6
- First Language
- Portuguese
- Primarily Uses
- RMMV
Not a good title, but is the shortest version I can think of.
Well, here I am again, asking for some help.
I was trying to do an event where the player must use a specific skill and, if he had enough mana (in that case, 30MP) he would spend it; otherwise a textbox will open explaining there's missing mana and the skill wouldn't cast.
For this, I made a Conditional Branch to check if the player has the skill and inside of it I used a script call command to check the mana thing.
The script:
Dunno if It's OK, but the script don't even makes the player to lose mana.
Well, here I am again, asking for some help.
I was trying to do an event where the player must use a specific skill and, if he had enough mana (in that case, 30MP) he would spend it; otherwise a textbox will open explaining there's missing mana and the skill wouldn't cast.
For this, I made a Conditional Branch to check if the player has the skill and inside of it I used a script call command to check the mana thing.
The script:
Code:
var a = $gameActors.actor(1)
var mana = a.mp
if mana <= 30 {
$gameMessage.setFaceImage('AChars 1',0);
$gameMessage.setBackground(1);
$gameMessage.setPositionType(1);
$gameMessage.add("Esil: Não tenho mana suficiente.");
}
else {
a.loseMp(30)


