- Joined
- Dec 2, 2015
- Messages
- 73
- Reaction score
- 12
- First Language
- Spanish
- Primarily Uses
- RMMZ
Hi everyone,
I'm here again asking for help to implement an idea.
The original power was something like "Hedge Risk" from Bravely Default:
Effects: The damage taken is halved for five turns. However, when you do take damage under this effect, you lose pg equal to the damage taken (or prevented - since it's halved, it goes both ways).
I thought using a state that last for five turns, but it should "react" to the damage, maybe add it to a variable and subtract to the party gold. I'm not sure about the "reacting" part, so I thought changing the power:
A power that heals half of the damage suffered for an ally [(b.mhp-b.hp)/2] and with that cost for gold.
Formula:
Notetags (using VS Core Battle) [to show a message]:
But it's not working. It heals half the damage but doesn't lose the gold or show the message.
Can you see why?
Do you have any idea to create something more similar to the original concept of the power?
Thank you in advance.
I'm here again asking for help to implement an idea.
The original power was something like "Hedge Risk" from Bravely Default:
Effects: The damage taken is halved for five turns. However, when you do take damage under this effect, you lose pg equal to the damage taken (or prevented - since it's halved, it goes both ways).
I thought using a state that last for five turns, but it should "react" to the damage, maybe add it to a variable and subtract to the party gold. I'm not sure about the "reacting" part, so I thought changing the power:
A power that heals half of the damage suffered for an ally [(b.mhp-b.hp)/2] and with that cost for gold.
Formula:
Code:
v[1]=(b.mhp-b.hp)/2; v[1]
Notetags (using VS Core Battle) [to show a message]:
Code:
<JS Post-Apply>
$gameParty.loseGold($gameVariables(1));
$gameMessage.setPositionType(1);
$gameMessage.setBackground(1);
$gameMessage.add("<Center>Ganaste /V[1]/G.")
</JS Post-Apply>
But it's not working. It heals half the damage but doesn't lose the gold or show the message.
Can you see why?
Do you have any idea to create something more similar to the original concept of the power?
Thank you in advance.