I'm trying to make a skill that applies different states based off of the amount of TP you have when you use it. I thought that setting a variable to the TP of the target actor would work, but every time I run the script "$gameActors.actor($gameParty._targetActorId).tp" it crashes.
I figured that "null" meant that it was trying to get the current TP of Actor ID 0, which doesn't exist, meaning that the script call isn't functioning. So, I just put the line "$gameParty._targetActorId" as what the variable is set to, and this is what I got.
None of them had 0 TP, by the way.
So, simply put, the script call to get the current target actor id always returns 0 in battle. Is there a script call specifically for who the skill is targeting? I need it to affect allies and enemies, too. (But the enemies part is less important)
I figured that "null" meant that it was trying to get the current TP of Actor ID 0, which doesn't exist, meaning that the script call isn't functioning. So, I just put the line "$gameParty._targetActorId" as what the variable is set to, and this is what I got.
None of them had 0 TP, by the way.
So, simply put, the script call to get the current target actor id always returns 0 in battle. Is there a script call specifically for who the skill is targeting? I need it to affect allies and enemies, too. (But the enemies part is less important)