|
Delathriel Beginner
Joined: 01 Aug 2017 Posts: 16
|
Posted: 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! |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4689 Location: Pensacola, FL, USA
|
Posted: 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. |
|
_________________ Discord: Shalimarwildcat |
|
|
|
Delathriel Beginner
Joined: 01 Aug 2017 Posts: 16
|
Posted: 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? |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4689 Location: Pensacola, FL, USA
|
Posted: 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} |
|
_________________ Discord: Shalimarwildcat |
|
|
|
Delathriel Beginner
Joined: 01 Aug 2017 Posts: 16
|
Posted: 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? |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4689 Location: Pensacola, FL, USA
|
Posted: 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. |
|
_________________ Discord: Shalimarwildcat |
|
|
|
Delathriel Beginner
Joined: 01 Aug 2017 Posts: 16
|
Posted: Wed Aug 02, 2017 9:20 pm |
Thanks a lot, managed to get it to work!
|
|
|
|
|
|