If mobinroom check

For builders to discuss and ask building questions.
Post Reply
User avatar
Algon
Sword Grand Master
Sword Grand Master
Posts: 1070
Joined: Thu Aug 14, 2003 12:44 am
Location: Waterdeep

If mobinroom check

Post by Algon » Sun Feb 22, 2015 4:42 pm

So I have an interesting problem that I cannot seem to get past. Here is the scenario...

I have a mob that loads up in an intercept prog. So there is a loading mob (mob A) in the room to get the intercept and load the mob in question (mob B). The problem is, I am trying to figure out a way to stop it from loading up if Mob B is already in the room.
If mobinroom seem to only check against the mob that the prog is on, so it doesn't work if this prog is on Mob A to check for Mob B. If that makes any sense at all...
Any suggestions would be greatly appreciated!
Counting bodies like sheep...to the rhythm of the war drums. ~~~ Maynard
User avatar
Algon
Sword Grand Master
Sword Grand Master
Posts: 1070
Joined: Thu Aug 14, 2003 12:44 am
Location: Waterdeep

Re: If mobinroom check

Post by Algon » Mon Feb 23, 2015 4:06 pm

Got this all figured out with a little help from Xryon. Thank you! :D
Counting bodies like sheep...to the rhythm of the war drums. ~~~ Maynard
Xryon
Sword Master
Sword Master
Posts: 233
Joined: Thu Aug 25, 2005 5:24 am
Location: Waterdeep

Re: If mobinroom check

Post by Xryon » Mon Feb 23, 2015 5:03 pm

Just a note for anyone else that might have similar issues: I don't think the if mobinroom() check will work with anything but room_progs. Haven't tested here, but in most codebases that's how it goes.
Post Reply