Hello All
I am basically looking for a way to increase the chance for critical hit if a state is active on an actor. I think the best way to do this is likely through the damage formula and checking state.
I am just unsure how to add the % increase of the crit chance.
I think it should be SOMETHING like this.. BUT clearly not this since it does not work...
if a.state?(x); a.cri += y; end; DAMAGE FORMULA
x is the state that is being checked.
y is the amount I want to increase crit chance
DAMAGE FORMULA is the damage formula that will be processed regardless of the state check.
I think I am close, but not sure what I am doing wrong here.
Any input would be appreciated :D
Alternatively, if anyone knows a way so that a single skill will have a higher chance to crit based on a state, let me know!
~Dinhbat
Changing Chance to CRIT in damage formula
● ARCHIVED · READ-ONLY
-
-
Never tried it before. But it's probably possible to do it in damage formula.
Try this. You should uncheck the critical option of a skill. Then do this in your damage formula.
cri_rate = a.cri + (a.state?(id) ? 0.5 : 0); @result.critical = rand < cri_rate; your_damage_formulaThe critical rate should goes to 0.0 and 1.0. By entering 1.0 it means 100% critical chance. -
Thanks for the quick response TheoAllen
However, gave it a try and it returned with null. =\ -
Lol, it could be @result part. Try this instead
Code:cri_rate = a.cri + (a.state?(id) ? 0.5 : 0); b.result.critical = rand < cri_rate; your_damage_formula -
Thanks TheoAllen!
That worked out nicely =D
Going to test and see which spaces I can take out to give myself a few more characters in the actual damage formula space. Hehe =D
Thanks again =D I am sure this will not be the last time you will be helping me out.
~ Dinhbat -
Glad it worked. Good luck for your project then :D
-
Thanks!
I'm working on my skills now so I will have tons of little questions about how to accomplish little things in the next month or so...
I have like 5 or so now, but don't want to confuse myself with tracking too many at once.
This topic can be closed =) Thanks again to TheoAllen. Next topic coming up soon. hehe
~Dinhbat -
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.