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


Joined: 25 Nov 2002
Posts: 39
Location: USA

PostPosted: Thu Oct 30, 2003 2:38 am   

Chaning Exits in Room Properties
 
In the mud I play I can travel by different means. One of those is swimming. So in all the room exits with water I have changed the OTHER COM field in the EXITS TAB of ROOM PROPERTIES to SWIM EAST instead of just EAST. This works great. I have another skills that lets me travel as a ghost. Unfortunately I cant swim as a ghost but can pass over the water by just enter EAST. This is a problem because when I speed walk the mapper enter swim east. Is there way to change the OTHER COM field by using a variable? This way I could trigger these exits from east to swim east when needed.
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Thu Oct 30, 2003 4:44 am   
 
Perhaps you should make some triggers to capture your ghost state then use an alias to check it and issue the correct command. Aliases are properly applied when used in the Other Com field of an exit.
Reply with quote
Curtis
Novice


Joined: 25 Nov 2002
Posts: 39
Location: USA

PostPosted: Thu Oct 30, 2003 2:24 pm   
 
Thanks Vijilante,
Never thought to use an alias in the com field. That will work well.
Reply with quote
Curtis
Novice


Joined: 25 Nov 2002
Posts: 39
Location: USA

PostPosted: Thu Oct 30, 2003 3:59 pm   
 
Ok, got the exits working properly using aliases but no the map does not follow me through those exits using aliases. Here is how I set it up. I may have not followed your instructions properly.

When ghost #al swims {s}

When human #al swims {swim s}

Then I entered swims in the com field. I also tried to have trigger the swimming to the mapper would follow but this didnt worth either. Any suggestions.
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Fri Oct 31, 2003 12:55 am   
 
Adding a #MOVE command will be your only option. The mapper is actually trying to prevent a trigger loop by not queueing (if you check the queue and the direction appears there in follow mode then use #OK instead) and creating the #OK trigger when your alias sends the command. Alternately you could make a #TEMP trigger with the syntax:
#EXEC %concat("#TEMP {",%roomname(%roomlink(,"s")),"} {#MOVE s}")

This odd syntax would be necessary becuase all trigger creation command preform no expandsion on their pattern parameter. So you have to expand it beforehand. Using this method ensures that the #MOVE command is not issued until you have actually moved.
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