In my current project, TP normally increases only when the character takes damage. I've found the "Charge TP by Damage Suffered" section in the script files, and have successfully implemented a custom TP gain formula that factors in the character's Spirit stat (a.k.a. LUK) for how much TP they gain when damaged.
I have a "Fear" state, and what I have in mind is that when a character with Fear is damaged, they lose TP instead of gaining TP. On top of TCR being unable to be set as a negative number, I don't want to just use the same formula as a deduction to TP, since it'd be odd for someone who is naturally braver to be impacted more heavily by the Fear status.
I know how the formula itself would be written, but what would be the code to check if the character has the Fear state and the if/then code to do "self.tp -= (yadda)" with Fear active and "self.tp += (yadda)" without?
Thanks in advance! =^_^=
I have a "Fear" state, and what I have in mind is that when a character with Fear is damaged, they lose TP instead of gaining TP. On top of TCR being unable to be set as a negative number, I don't want to just use the same formula as a deduction to TP, since it'd be odd for someone who is naturally braver to be impacted more heavily by the Fear status.
I know how the formula itself would be written, but what would be the code to check if the character has the Fear state and the if/then code to do "self.tp -= (yadda)" with Fear active and "self.tp += (yadda)" without?
Thanks in advance! =^_^=