ignore always execute for one room

Started by Ostyster, Thu 04/08/2016 13:04:49

Previous topic - Next topic

Ostyster

I have a room in witch i want to ignore what i wrote in the global script after: function repeatedly_execute()
how do i do that?

CaesarCub

You could make the repeatedly_execute() code check if the player is in said room, and if he is not, only then run the script.

Gurok

Yes.

Depending on how you want to structure things, inside repeatedly_execute:

Code: ags
if(player.Room != roomNumberYouWantToIgnore)
{
  // Your normal repeatedly_execute code
}


or

Code: ags
if(player.Room == roomNumberYouWantToIgnore)
  return;
// Your normal repeatedly_execute code
[img]http://7d4iqnx.gif;rWRLUuw.gi

Ostyster

It worked the way i wanted. Thanks

SMF spam blocked by CleanTalk