I want to know if its possible to make a damage formula (When the Enemy is affected by a state(4). Actor gain a crit rate higher.) My character is a rogue and use a Skill(x) and if the enemy got states(x) then he gain a bonus crit chance + normal damage, if not only do normal damage. thank you in advance.
Help for damage formula
JS Plugin Requests'General Discussion' is for looking at broad themes which affect the making of games. "How do I...?" (implementation) questions go in the Support forum for the engine you are using.
Unfortunately you have not included the engine used in the info under your avatar, nor you do you mention it in your post, so I can't move it to the correct forum. As Ace using Ruby and MV uses JavaScript, the syntax for the damage formula you need will not be the same, so you must be in the right place to get a correct answer.
Please post and tell us which engine you are using. I recommend that you also edit your Profile to include that in the info showing under your avatar for the future.
Unfortunately you have not included the engine used in the info under your avatar, nor you do you mention it in your post, so I can't move it to the correct forum. As Ace using Ruby and MV uses JavaScript, the syntax for the damage formula you need will not be the same, so you must be in the right place to get a correct answer.
Please post and tell us which engine you are using. I recommend that you also edit your Profile to include that in the info showing under your avatar for the future.
Done, and sorry about that. New here
at the wrong position - you entered the maker into the general title field, there is one specifically for setting the maker - check the four lines at the bottom left of your post, below your avatar picture:
Messages, Likes, Language and then "Primarily uses" which is still N/A for you. That is where the maker should be set.
That said, the damage formula is only executed AFTER an enemy has been hit, so changes inside the formula will not be able to change rates.
You'll need a plugin for that, and I don't know if one exists - Yanfly's Lunatic formula can do a lot, but this might be too much for even them.
Moved to: Plugin Request
This can be done but it's going to require a couple Yanfly Plugins and some js knowledge. Specifically, you will need YEP Skill Core and YEP Weapon Unleash. You'll need to create a skill that will basically act as a normal attack. And in the notebox of this skill you'll need to execute some code in the following header:
<Pre-Damage Eval>
code
code
</Pre-Damage Eval>.
This code is processed after a successful hit.
As for the code, you'll probably be better off asking someone else or waiting for a response here as my knowledge is rather limited in this area.
Oh and Weapon Unleash is needed to change that skill into your normal attack command. You'll put <Replace Attack: name> in the actor notebox. ("name" is the name of your new attack skill)
<Pre-Damage Eval>
code
code
</Pre-Damage Eval>.
This code is processed after a successful hit.
As for the code, you'll probably be better off asking someone else or waiting for a response here as my knowledge is rather limited in this area.
Oh and Weapon Unleash is needed to change that skill into your normal attack command. You'll put <Replace Attack: name> in the actor notebox. ("name" is the name of your new attack skill)
Original thread: https://forums.rpgmakerweb.com/threads/help-for-damage-formula.90686/