Recently i was testing new passive skills that would increase atk and damage inflicted by 10%. The atk increase gone well, but then i used the sp. parameter "physical damage" to increase the amount of damage caused by a normal attack by 10%, but it did not worked. Then, i tested to damage received, and in fact it was it: i took 10% more damage from the enemy. Good thing i discovered how to take reduced/increased damage received by a certain %, but how can i do this with damage inflicted?
Increase damage inflicted by %
RPG Maker MZ Supportthat param will affect incoming damage from all skills with 'physical hit type'
so a magical hit type that has physical element will do normal damage still.
(i like using those params for shields/wards instead of giving more def/mdf)
in MV only been able to do +damage% as a plugin function. base engine only had +stat% functions.
looks like the MZ equivalent could possibly be visustella's battle core in the JavaScript Notetags: Mechanics-Related section, think it would probably be <JS Pre-Damage as User> since the 1 above that doesnt list it being a state notetag.
as for the code part, i cant help to much there. going through similar states people helped me make,
the 1st line will probably involve something similar to
if (this.isHpEffect() && this.isPhysical()) {
so a magical hit type that has physical element will do normal damage still.
(i like using those params for shields/wards instead of giving more def/mdf)
in MV only been able to do +damage% as a plugin function. base engine only had +stat% functions.
looks like the MZ equivalent could possibly be visustella's battle core in the JavaScript Notetags: Mechanics-Related section, think it would probably be <JS Pre-Damage as User> since the 1 above that doesnt list it being a state notetag.
as for the code part, i cant help to much there. going through similar states people helped me make,
the 1st line will probably involve something similar to
if (this.isHpEffect() && this.isPhysical()) {
I already tried to get the "sample game project" of them, wich include the battle core, with no sucess; the download always fails when complete. As for the code, i don't understand much of the programming thing but will see how to apply that line you gave. Thanks.
You could try putting this into your state's notebox:
(Please note, I made the code with MV in mind, but hopefully it still works.)
You can replace the "1.1" with any decimal number of your liking.
In this case, "value * 1.1" means that the damage is increased by 10%.
(Please note, I made the code with MV in mind, but hopefully it still works.)
JavaScript:
<JS Pre-Damage as User>
if (value > 0 && this.isHpEffect() && this.isPhysical()) {
value = Math.round(value * 1.1);
}
</JS Pre-Damage as User>
You can replace the "1.1" with any decimal number of your liking.
In this case, "value * 1.1" means that the damage is increased by 10%.
Unfortunately, does not seem to work on MZ. Thanks for the reply anyway.
pretty sure mz uses an only slightly different syntax. the proper coding should look very similar though.
you mentioned trying to download the plugin was failing?
that notetag wont work until get the plugin working
you mentioned trying to download the plugin was failing?
that notetag wont work until get the plugin working
Tried to download again and luckly it downloaded this time, and the notetag worked. To do the same with magic attacks i just change "this.isPhysical" to "this.isMagic" or something? Thanks for the help.
Original thread: https://forums.rpgmakerweb.com/threads/increase-damage-inflicted-by.139480/