You can set a variable to be a actor's tp if you use a script $game_actors[id].tp where ID is the ID of the actor. If you still wanted to do it via custom formula, I'd probably make a function you can call since you want to use it with a lot of skills.
class Game_Battler < Game_BattlerBase def set_state_from_tp case @tp when 0..24; add_state(id) when 25..49; add_state(id) when 50..74; add_state(id) when 75..100; add_state(id) end endendChanging the various id's to the number of the state you would like to add.
Then just call a.set_state_from_tp from the formula box. You can throw a semi-colon after it and put whatever you like for the rest of the damage formula.
class Game_Battler < Game_BattlerBase def set_state_from_tp case @tp when 0..24; add_state(id) when 25..49; add_state(id) when 50..74; add_state(id) when 75..100; add_state(id) end endendChanging the various id's to the number of the state you would like to add.
Then just call a.set_state_from_tp from the formula box. You can throw a semi-colon after it and put whatever you like for the rest of the damage formula.
