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
Cassandra
Newbie


Joined: 12 Jan 2004
Posts: 6
Location: USA

PostPosted: Wed Oct 26, 2005 2:06 pm   

Trigger based on map color
 
More specifically, what I want to do is have a room script that goes off BEFORE entering a room of a certain color on my map.

I have rooms on my map colored blue that are water. If I want to speedwalk from one point to another (which I always do by just double clicking on that point on my map), and the map decides to go through a water room I need to "swim <direction>" instead of just entering the direction as it would normally.

I know I could just set water rooms to Do Not Enter rooms so that the mapper goes around them, but there are some instances where this isn't possible.

Is there any way to do this? Thanks in advance for the help!
_________________
Cassandra
Reply with quote
Larkin
Wizard


Joined: 25 Mar 2003
Posts: 1113
Location: USA

PostPosted: Wed Oct 26, 2005 3:23 pm   
 
You could set the command for every exit that requires you to swim so that it will automatically swim for you. That's tedious and you also have to make triggers for the delay in the actual swimming. I dodged this issue entirely by just getting waterwalking boots. Cool
Reply with quote
Vitae
Enchanter


Joined: 17 Jun 2005
Posts: 673
Location: New York

PostPosted: Wed Oct 26, 2005 3:51 pm   
 
Set other com to swim "dir"
_________________
http://www.Aardwolf.com
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Wed Oct 26, 2005 9:50 pm   
 
Use an #ONINPUT trigger, it is cheaper then water walking boots.

#ONINPUT {^({n|e|s|w|ne|nw|se|sw|u|d|in|out})$} {#IF ((%roomcol(%roomlink(,%1)=%colorname(blue))|(%roomcol()=%colorname(blue))) {#GAG;#SEND {swim %1}}}

I am not too sure how the mapper is going to behave with this trigger, I believe it's detection occurs before triggers have a chance to substitute commands the way this one does, but since I use a full override system I don't entirely know.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
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