Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: gamemaka on Sun 03/04/2005 07:58:34

Title: RPG Battle Mahem!
Post by: gamemaka on Sun 03/04/2005 07:58:34
I am currently making an RPG with a turn based battle system. Is there a way I can make it so that the character leaves the rooms after BOTH characters "HP" or "TOTAL SCORE" is < or = to 0? In the battle parts of the game, after the monster is defeated they leave the room and I don't want them to leave the room after only one monster has been killed. *fluttered*
Title: Re: RPG Battle Mahem!
Post by: Radiant on Sun 03/04/2005 08:46:22
Sure, but it's easiest when you use scripting rather than the interaction editor.


if ((person[1].hp <= 0 || person[1].score <= 0) && (person[2].hp <= 0 || person[2].score <= 0)) NewRoom (42);

Title: Re: RPG Battle Mahem!
Post by: gamemaka on Sun 03/04/2005 10:38:05
Thanx, that helps a whoollllleeeee bbuuuuunnnnccccccchhhhhh!!!!!!