|
robo Beginner
Joined: 09 Sep 2004 Posts: 16
|
Posted: Fri Mar 25, 2005 6:34 am
Sticking an alias in a path |
I have a pathstring like the following:
xenndnn$wwnnnneeeesssswwnneennwwsswwsseewwnnnneeeesssswwnneennwwsswwssee$ssussw
what i need to do is put something in it right at the $ signs. there is a door there and i need to get the key out of my pocket, unlock the door, open the door, go north, close the door and lock the door
then at the second one, i need to get the key out of the pocket, unlock door, open door, go south, then ...well, I don't care then. :P
help? not sure how to fit in the alias or whathave you |
|
|
|
mr_kent Enchanter
Joined: 10 Oct 2000 Posts: 698
|
Posted: Fri Mar 25, 2005 9:52 am |
If you have this area mapped, just add the key bit to the room exit.
#ALIAS locked_west {get key from pocket;unlock door;open door;w;close door;put key in pocket}
#ALIAS locked_south {get key from pocket;unlock door;open door;s;close door;put key in pocket}
In the room properites window, click the tab named 'Exits' and enter 'locked_west' or 'locked_south' in the "other com" textbox. |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Fri Mar 25, 2005 9:55 am |
I believe that is the correct form. I would suggest testing it with a shorter path that just has a few rooms on either side of the door.
xenndnn;.(get key pocket;unlock door;open door;n;close door;lock door);.wwnnnneeeesssswwnneennwwsswwsseewwnnnneeeesssswwnneennwwsswwssee;.(get key pocket;unlock door;open door;n;close door;lock door);.ssussw |
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
|
robo Beginner
Joined: 09 Sep 2004 Posts: 16
|
Posted: Fri Mar 25, 2005 3:44 pm well, lemme explain what this is... |
it's part of a leveling script.
in each room, i trigger off the [Exits line from the mud, and it "looks"
I have a series of triggers that show each of the creatures I might encounter along the path, and if it sees that monster, it executes an alias (i.e. "kill %1;bash;bash;bash;bash)
I don't have the room mapped, and I'm not sure mapping it would solve the above problem. Sorry about being a dope and not explaining myself more thoroughly |
|
|
|
|
|