- Joined
- Dec 24, 2018
- Messages
- 88
- Reaction score
- 15
- First Language
- Italian
- Primarily Uses
- RMMV
Hello!
I'm using the two Yanfly's plugins listed in the title in my project to better control how damage is calculated.
So, i made a State that increases the damage dealt by an ability based on the user's Luck parameter.
This is its Notetag:
So, while testing, i noticed that the critical multiplier is applied to the skill's damage BEFORE the boost from State. So instead of being like:
It's more like:
I know i could hard-code the change with Damage Core, but i would like to know if there is a more elegant way to do it with BuffStates's notetags. Thanks in advance!
I'm using the two Yanfly's plugins listed in the title in my project to better control how damage is calculated.
So, i made a State that increases the damage dealt by an ability based on the user's Luck parameter.
This is its Notetag:
Code:
<Custom Confirm Effect>
if(value < 0)
{
value-=Math.floor((user.param(7) - 10) / 2);
}
else if(value >= 0)
{
value+=Math.floor((user.param(7) - 10) / 2);
}
</Custom Confirm Effect>
Code:
(base + luk) * cri
Code:
base * cri + luk
