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


Joined: 12 Nov 2018
Posts: 8

PostPosted: Mon Nov 26, 2018 2:19 pm   

How to remap direction for just a room
 
There's a door in a MUD I play that I want to map a specific unlock sequence to a direction for just that room.

So instead of doing:
Open S
S

I would rather have it do something like:
Push X on S
S

How would I script that for just one room, not all rooms?
Reply with quote
shalimar
GURU


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

PostPosted: Mon Nov 26, 2018 4:40 pm   
 
Open the Room properties window.
Navigate to the exits tab.
Select the exit in question.
in the name field put:
push x on s;s

Since this is now a special exit and doesn't actually use a key, make sure not to uncheck the locked checkbox if you had checked it.
Also, make sure normal is selected and not door.
_________________
Windows 10 Home Premium 64-bit
AMD Phenom II x6 1055T 2.8GHz 16GB
CMUD Pro v3.34
Reply with quote
bstripp
Newbie


Joined: 12 Nov 2018
Posts: 8

PostPosted: Mon Nov 26, 2018 6:56 pm   
 
What if I need to put a pause in between commands?
Reply with quote
bstripp
Newbie


Joined: 12 Nov 2018
Posts: 8

PostPosted: Mon Nov 26, 2018 7:46 pm   
 
Also... how do I reference a maco from the Name field? There is limited stuff I can put in name otherwise.
Reply with quote
bstripp
Newbie


Joined: 12 Nov 2018
Posts: 8

PostPosted: Mon Nov 26, 2018 8:34 pm   
 
Well with trial and error, I got this to kind of work...

#SEND {Push ### on e}
#WAITFOR {portal open} 10000
#SEND {open e}
#WAITFOR {You open the portal} 2000
#SEND {e}
#WAIT 8000
#SEND {close w}
#WAITFOR {The portal closes} 2000
#SEND {lock w}

However, I am getting some wonkiness.
After the open, it redoes the first three sends.
Then it waits 8 seconds and does the close and lock, but does the close and lock again. Why is this?
Reply with quote
shalimar
GURU


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

PostPosted: Tue Nov 27, 2018 12:50 pm   
 
You can easily put an alias call in the name field and let the alias do the work for you.
I am guessing it is Treating the '#SEND {e}' as a separate attempt to use the exit, rather then a continuation of the same attempt, resulting in the doubling of all commands.
The #SENDs should not be needed here.

To be the issue seems to be partially with the game: you are activating a secret exit, but once it opens, you still have to manually open something? and even that doesn't happen as soon as you enter the command?

If it still gives you trouble without the #SENDs, I would skip using the special exit method and just trigger off the successful usage of the portal with a #TELEPORT command.
_________________
Windows 10 Home Premium 64-bit
AMD Phenom II x6 1055T 2.8GHz 16GB
CMUD Pro v3.34
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