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
Talmark
Novice


Joined: 22 Nov 2003
Posts: 34

PostPosted: Sun Dec 21, 2003 5:06 pm   

#MAP doesn't load room scripts
 
The docs have a very useful trigger that I use all the time:

#TRIGGER {@team_leader leaves (%w)} {#MAP %1}

However, moving about the map by using #MAP doesn't load the room scripts in the rooms that have them, which is problematic in some cases. I was wondering if there was a way to follow the leader around as well as load any room scripts a room might have.

Regards,

Tal
Reply with quote
Danlo
Magician


Joined: 28 Nov 2003
Posts: 313
Location: Australia

PostPosted: Mon Dec 22, 2003 10:16 am   
 
You could try this:
Go to Classes. Select Directions class.
Make 6 new directions like: easttwo, westtwo, northtwo, southtwo, uptwo, downtwo. Don't assign a command to these new directions, just assign the Map direction.

Then, for your trigger, put:
#TRIGGER {@team_leader leaves (%w)} {%1two}

This will move the mapper, but otherwise do nothing. And it should execute the roomscripts.
Reply with quote
Talmark
Novice


Joined: 22 Nov 2003
Posts: 34

PostPosted: Mon Dec 22, 2003 6:49 pm   
 
#TRIGGER {@team_leader leaves (%w)} {#MOVE %1}

This seems to do the same thing as the other trigger, except it also loads the room script.
Reply with quote
Talmark
Novice


Joined: 22 Nov 2003
Posts: 34

PostPosted: Mon Dec 22, 2003 8:02 pm   
 
Hmm...except #MOVE doesn't work with portal exits, like "out" "enter" etc.
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