So, I'm making a DnD kind of game where everything happens through events and choices (you never transition into battle) and I'm having trouble finding a good way to damage the enemies.
I've already worked out how to assign HPs to monsters using variables and how to add/substract from them to eventually kill the monsters, so that part is fine. The problem is that I would like to use formulas (like skill/battle formulas, if at all possible) to affect the variable representing an enemy's HPs, and I don't know how to do it.
For instance, if a character was to use "attack", I could use the attack power of the character to define the damage it would do. That would be simple. But say the same character uses "jump" instead, and I wanted the damage to be exactly 1.5 times his attack power, is there any way I could do that using a formula (though the "script" command, maybe?) that would also take into account the enemy's defense?
Basically, I would like to adjust variables using the same kind of formulas we see in battle, and I don't know if it's possible at all.
I've already worked out how to assign HPs to monsters using variables and how to add/substract from them to eventually kill the monsters, so that part is fine. The problem is that I would like to use formulas (like skill/battle formulas, if at all possible) to affect the variable representing an enemy's HPs, and I don't know how to do it.
For instance, if a character was to use "attack", I could use the attack power of the character to define the damage it would do. That would be simple. But say the same character uses "jump" instead, and I wanted the damage to be exactly 1.5 times his attack power, is there any way I could do that using a formula (though the "script" command, maybe?) that would also take into account the enemy's defense?
Basically, I would like to adjust variables using the same kind of formulas we see in battle, and I don't know if it's possible at all.