Good morning,
I am currently creating a "shield bash" skill, and I would like to have the condition where if the user has a larger % of HP than the target enemy, they are able to deal damage as AND add a "stun" state to the enemy. HOWEVER, if the user does not have a larger % of HP than the target enemy, the damage is dealt without adding the stun state. This is what I have so far:
(b.hp * 100 / b.mhp) <= (a.hp * 100 / a.mhp) ? b.addState(5) + a.def * 4 - b.def * 2 : a.def * 4 - b.def * 2
So my question is:
-How do I manipulate the first conditional section (b.addState(5) + a.def * 4 - b.def * 2) to deal damage as well as add the state? Am I just using the wrong operator?
-Is there any way to give the state a percentage chance of success through the formula/database settings?
Thank you for your time,
-pkdarmstrong
I am currently creating a "shield bash" skill, and I would like to have the condition where if the user has a larger % of HP than the target enemy, they are able to deal damage as AND add a "stun" state to the enemy. HOWEVER, if the user does not have a larger % of HP than the target enemy, the damage is dealt without adding the stun state. This is what I have so far:
(b.hp * 100 / b.mhp) <= (a.hp * 100 / a.mhp) ? b.addState(5) + a.def * 4 - b.def * 2 : a.def * 4 - b.def * 2
So my question is:
-How do I manipulate the first conditional section (b.addState(5) + a.def * 4 - b.def * 2) to deal damage as well as add the state? Am I just using the wrong operator?
-Is there any way to give the state a percentage chance of success through the formula/database settings?
Thank you for your time,
-pkdarmstrong