|
Cassandra Newbie
Joined: 12 Jan 2004 Posts: 6 Location: USA
|
Posted: 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 |
|
|
|
Larkin Wizard
Joined: 25 Mar 2003 Posts: 1113 Location: USA
|
Posted: 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.
|
|
|
|
Vitae Enchanter
Joined: 17 Jun 2005 Posts: 673 Location: New York
|
Posted: Wed Oct 26, 2005 3:51 pm |
Set other com to swim "dir"
|
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: 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 |
|
|
|
|
|