For context, I've wanted to add a Dnd style hp system where taking enough damage kills someone outright. Originally, I wanted to have another health bar that would appear when your 1st health bar is at 0, one that would come with a lower target rate and no actions. This 2nd health bar would drain unless treated by another party member. Any damage would decrease the health and re-add the status "hemorrhaging". In the event this health bar reaches 0, the party member dies and is removed.
This is what I wrote in the scripts. It's probably garbage, I copied the formatting of the OG death state script as much as possible. I'm totally new to this, so any help at all would be greatly appreciated.
#I have no idea what I'm doing here's half dead
def half_dead_state?
state?(half_dead_id)
end
def half_dead_id
return 55
end
def half_dead_id
half_dead_id = state_id 55
end
def half_dead
@hp = 0.5 * mhp ? add_state(half_dead_id) : remove_state(half_dead_id)
end
end
This is what I wrote in the scripts. It's probably garbage, I copied the formatting of the OG death state script as much as possible. I'm totally new to this, so any help at all would be greatly appreciated.
#I have no idea what I'm doing here's half dead
def half_dead_state?
state?(half_dead_id)
end
def half_dead_id
return 55
end
def half_dead_id
half_dead_id = state_id 55
end
def half_dead
@hp = 0.5 * mhp ? add_state(half_dead_id) : remove_state(half_dead_id)
end
end