Can some one help me turn this script that I created into something that works?
essentially RPG maker VX allows a actor to go to 1 hp when the state poison is applied. what I tried to do what say, is your HP 1? yes, reduce it to 0 and applied the death state (state id 1). But i think I just failed.
Help?
CODE
class Game_Battler
def death_on_posion(actor)
if $game_actors[actor] == nil
return
else
if $game_actors[actor].state?(2) == true
if $game_battler.hp == 1
$game_battler.hp == 0
$game.battler.add_state(1)
end
end
end
end
end