Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
dazed-n-confused999
Wanderer


Joined: 03 Aug 2004
Posts: 79

PostPosted: Tue Jul 26, 2011 1:06 am   

uggg water paths
 
There are times when I need to swim from one location to the next.
I'm thinking I'll stick the water areas in their own zone, and then modify the preferences in that zone
to swim instead of open door. Is this possible? I don't really need help mapping the water areas
just want the thing to be able to move with paths in water.
If I do this can I restrict swimming to only happen in the water zone, and treat doors normally everywhere else?
Is there a better way?
Please help.
Reply with quote
dazed-n-confused999
Wanderer


Joined: 03 Aug 2004
Posts: 79

PostPosted: Tue Jul 26, 2011 2:14 am   
 
ok I think I sort of figured it out.
I'm just manually entering swim (dir) in the name box within properties.
Seems to be working ok, its just going to take awhile to get all this in long hand.
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Mon Aug 01, 2011 5:14 pm   
 
Alternatively, you could create some new exit types, one for each possible swimming direction. But, again, you would have to manually change the exit type for each of those exits to the swim type.

You could indeed put all the swimming rooms into a water zone, and have certain triggers which are active only in that zone. You could then make aliases or oninput triggers to convert movement into swim commands.
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4772
Location: Pensacola, FL, USA

PostPosted: Mon Aug 01, 2011 6:11 pm   
 
Something like this might work for you:
Code:
<trigger type="Command Input" priority="600" trigontrig="false" id="180">
  <pattern>^(%w)$</pattern>
  <value>#IF (%reversedir( %1)) {
  lastDir=%reversedir( %1, 1)
  #IF (%zonename="Such and such") {swim %reversedir(@lastDir, 1)}
  }</value>
</trigger>
_________________
Discord: Shalimarwildcat
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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