RPG Battle Mahem!

Started by gamemaka, Sun 03/04/2005 07:58:34

Previous topic - Next topic

gamemaka

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*
"Can I have a look at Uranus, too, Lavender?" - Ron Weasley, Harry Potter and the Goblet of Fire.

Radiant

Sure, but it's easiest when you use scripting rather than the interaction editor.

Code: ags

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


gamemaka

Thanx, that helps a whoollllleeeee bbuuuuunnnnccccccchhhhhh!!!!!!
"Can I have a look at Uranus, too, Lavender?" - Ron Weasley, Harry Potter and the Goblet of Fire.

SMF spam blocked by CleanTalk