What I want to happen:
To identify the actor and have the state inflicted on the user is quite straightforward. I simply put
in the damage formula, then in the CE have
However, the only way I can think of to determine if the actor has enough TP/MP to carry out the action is to have a conditional which asks if the actor identified by variable 172 has either 20 TP or 30 MP (no actor has both) and only if the answer is yes would the state be applied.
Could anyone tell me what the script call would be for that conditional? Or maybe there is a better way to do that which uses something other than a conditional?
The icing on the cake would be to be able to inflict the state on any member of the battle party, not just the user, but I suspect that's not possible.
Thank you.
- An item calls a common event.
- That item checks if the actor using the item has enough TP or MP to perform a certain action, in this case to inflict a state on the user
- If yes, the action is performed and the actor's TP/MP is reduced by the appropriate amount.
To identify the actor and have the state inflicted on the user is quite straightforward. I simply put
Code:
$game_variables[id] = b.id; 0
However, the only way I can think of to determine if the actor has enough TP/MP to carry out the action is to have a conditional which asks if the actor identified by variable 172 has either 20 TP or 30 MP (no actor has both) and only if the answer is yes would the state be applied.
Could anyone tell me what the script call would be for that conditional? Or maybe there is a better way to do that which uses something other than a conditional?
The icing on the cake would be to be able to inflict the state on any member of the battle party, not just the user, but I suspect that's not possible.
Thank you.