Is there a check if char is in room command?

Started by Mr Jake, Fri 06/06/2003 20:31:46

Previous topic - Next topic

Mr Jake

I need this command to make a reapeated script work.. I can probally script around if it isnt there...

Scummbuddy

You could create a global int to remember what room a certain char is in.  I checked the manual, and I could not find anything, nor rememeber anything that could help besides the global ints.
- Oh great, I'm stuck in colonial times, tentacles are taking over the world, and now the toilets backing up.
- No, I mean it's really STUCK. Like adventure-game stuck.
-Hoagie from DOTT

Mr Jake

I was about to say I ended up scripting around using a global int :)

Spyros

if you want to check if char NAME is in room 10:
if (character[NAME].room==10) {
code here...
}

SMF spam blocked by CleanTalk