What item formula can I use to ensure any enemy will collapse with just one hit. I don't know if it's a stupid question but the whole formula thing makes me feel uneasy!
Fatal Collapse Item Formula
RPG Maker MZ SupportPut "b.mhp" as the damage.
The formula would simply be "b.mhp" for is there a need for an "a" component also. I know these are pretty basic stuff but please bear with me.
a and b are only applicable in battle damage formulas.
a refers to the user, or origin of the formula.
b refers to the target, or receiver of the formula.
hp is hit points
mhp is max hit points
For example, if the target's mhp is 1000 and your formula is b.mhp it will do 1000 damage(then adjusted if using variance).
If your formula is b.hp it will do whatever the target's current hp amount is(regardless of what it is). If the enemy has 850/1000 HP, b.hp will do 850 dmg.
If you use a.mhp this will use the origin of the attack mhp.
I'd recommend you review the basics of the engine(press F1 to open the help file, or Help > Contents, or navigate to the install folder > Steam > steamapps > common > RPG Maker MZ > help-en > index.html).
Make a copy of your current project and just play around with different things, like formulas. You can learn by experience just by messing around.
Have fun!!
Screenshot from Help Contents*
a refers to the user, or origin of the formula.
b refers to the target, or receiver of the formula.
hp is hit points
mhp is max hit points
For example, if the target's mhp is 1000 and your formula is b.mhp it will do 1000 damage(then adjusted if using variance).
If your formula is b.hp it will do whatever the target's current hp amount is(regardless of what it is). If the enemy has 850/1000 HP, b.hp will do 850 dmg.
If you use a.mhp this will use the origin of the attack mhp.
I'd recommend you review the basics of the engine(press F1 to open the help file, or Help > Contents, or navigate to the install folder > Steam > steamapps > common > RPG Maker MZ > help-en > index.html).
Make a copy of your current project and just play around with different things, like formulas. You can learn by experience just by messing around.
Have fun!!
Screenshot from Help Contents*
Alternatively, you could just make the skill add state 1 (death state) via its Effects list.
This is true, but then you don't get to go "hehe numbers go brrr"
The damage formula is simply what it says, a formula - a piece of math that produces one value. That value is the damage that is dealt to the target.
It doesn't matter what you do inside of the formula to produce that number. Referring to any of the actor's parameters via a.atk, b.def, etc., are just variables: a way to refer to a number that could change.
Just like when you were in school and did something like
x + 5 * y, that's all that you're doing with a.atk + 5 * b.def (which would be a stupid damage formula, but it's for the sake of comparison). There's nothing in math that says you must have x in every equation you make, so similarly there's nothing that says you must refer to a.anything. You're just making a number.There was another recent post from someone who said they couldn't figure out how to make their attacks do just 1 or 2 damage - well, the damage formula would just be 1!
Original thread: https://forums.rpgmakerweb.com/threads/fatal-collapse-item-formula.144877/