Anyone know a way to revive a character at a low health percentage (possible 1) from an event? (Keep in mind that I'm not using the RTP battle system so the release after battle thing wont work)
Common event, just make it remove the "Defeated" status, this should work.
If not, I'll screw around with the event system later and see what I can do.
Small script should do it :/
$game_party.actors[<id>].hp = $game_party.actors[<id>].max_hp * (<percent>/100) if $game_party.actors[<id>].dead
Note: I have NO idea if this will work.
Didn't work :/
------------------
-.- Why didn't I try removing knockout before. Thanks GAX
WAIT
module Kernel
def revive_actors_wcw
$game_party.actors.each do |actor|
actor.hp = (actor.max_hp * <percent_in_decimal>) if ! actor.alive?
end
end
end
And call this in event:
I know that this is useless now, but I had to do it for posterity :P
Little late, but yeah, a common event would be easiest for this. Just check if any of the characters = KO and then set their health to one while removing the status (along with any other status they might have had, if KO didn't do so already). Be careful how you run the event though; you don't want to have the common event running during a battle, because it'd then be impossible to lose then unless everyone was killed at once.
WcW, it's "dead?", not "dead". xD