Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Flappy
Newbie


Joined: 09 Aug 2011
Posts: 4
Location: Polska

PostPosted: Tue Aug 09, 2011 1:44 pm   

Script to recognize if I went into another room.
 
Hello, is it possible to create script that would check if I went into another room before creating it on map? Because I sometimes have situations like that, I have an exit up, but when I type up it says something like "You have to learn how to fly befor going there", but mapper creates such room anyway, I would make script that in case of lack of exits/description would execute "look" command to check if I really left room.

Also on mud I play, doors are shown with "#" char, like "#north" means thath there is a door. Is there any way to recognize and autocreate those doors?
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Tue Aug 09, 2011 3:01 pm   
 
Create triggers for each instance with the #NOMAP command (and probably throw #NODIR for good measure).

For example:

Code:
#TRIGGER {^You have to learn how to fly before going there.} {#NOMAP;#NODIR}
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net