Im working on an action battle system game and want to create a variable that shows how much damage my main character deals every time he swings his sword, uses a spell, etc. I tried setting a variable to the main characters attack power using the "Game Data" tab, but that doesnt take into account things like critical hits or variance. Any advice? Thanks in advance
Variable for damage dealt
RPG Maker MV SupportYou can have the variable be a critical multiplier rather than a flat value. Let the player use their brain...
In the formula box:
v[x]=<formula>;<formula>
Replace X with the variable you want to use
Replace <formula> (inclusive <> ) with your damage formula.
Now your formula would set the damage to the variable first, and the second time it will deal the damage.
v[x]=<formula>;<formula>
Replace X with the variable you want to use
Replace <formula> (inclusive <> ) with your damage formula.
Now your formula would set the damage to the variable first, and the second time it will deal the damage.
Great thanks for the help!
Original thread: https://forums.rpgmakerweb.com/threads/variable-for-damage-dealt.88919/