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
Delathriel
Beginner


Joined: 01 Aug 2017
Posts: 16

PostPosted: Wed Aug 02, 2017 4:16 am   

Manual map creation with sneaking
 
Hi.

When I access the "editor map mode" I can manually walk in directions and the rooms are created automatically and that's fine.
However, in some cases I have to sneak to another room as there might be mobs stronger than me.

In other words is there any way to trigger a map room creation when executing a specific command e.g.:

"przemknij sie n" (which means sneak north) and that would create a room in the map as well via some trigger or variable? (sorry, not super good at understanding scripting)

Thank you!
Reply with quote
shalimar
GURU


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

PostPosted: Wed Aug 02, 2017 4:36 am   
 
Using the #MAKEROOM command will create a room.
Assuming the mapper is working otherwise, using the #LOOK command (or click the magnifying glass icon on the mapper) will refresh the data in the map database for description, name, and exits.
_________________
Windows 10 Home Premium 64-bit
AMD Phenom II x6 1055T 2.8GHz 16GB
CMUD Pro v3.34
Reply with quote
Delathriel
Beginner


Joined: 01 Aug 2017
Posts: 16

PostPosted: Wed Aug 02, 2017 4:42 am   
 
Thank you, will try that out when back home. One thing I forgot to mention as well is that when I'm sneaking I'm not moving on the map at all. I've read more or less there's the {#MAP north} variable to use for that but honestly I'm not having any luck getting this to work. It only works when I'm moving normally without sneak.

Is there some kind of trigger / variable which would make sneakwalking move on the map as well?
Reply with quote
shalimar
GURU


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

PostPosted: Wed Aug 02, 2017 4:46 am   
 
Yes, you would have to make a trigger on the sneaking text that captures the direction and executes a #MOVE command.

#TRIGGER {You sneak (%w).} {#MOVE %1}
_________________
Windows 10 Home Premium 64-bit
AMD Phenom II x6 1055T 2.8GHz 16GB
CMUD Pro v3.34
Reply with quote
Delathriel
Beginner


Joined: 01 Aug 2017
Posts: 16

PostPosted: Wed Aug 02, 2017 4:59 am   
 
The problem is that I don't have a return command for sneaking like e.g.:

sneak w
(at this point I just go w without any notice that I've sneaked) so I can't place a trigger on the actual command I'm executing I think?
Reply with quote
shalimar
GURU


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

PostPosted: Wed Aug 02, 2017 7:41 am   
 
if sneaking doesn't send any messenging back to you, you could make an alias

#ALIAS sneak {~sneak %1;#MOVE %1}

The tilde(~) is used here to prevent the alias for recursively calling itself, you could also name the alias something other than the command itself.
_________________
Windows 10 Home Premium 64-bit
AMD Phenom II x6 1055T 2.8GHz 16GB
CMUD Pro v3.34
Reply with quote
Delathriel
Beginner


Joined: 01 Aug 2017
Posts: 16

PostPosted: Wed Aug 02, 2017 9:20 pm   
 
Thanks a lot, managed to get it to work!
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