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


Joined: 13 Jan 2016
Posts: 2

PostPosted: Wed Jan 13, 2016 10:51 am   

#TAG works during Reconfigure, but not in practice
 
Hello! I'm trying to improve my automapper. It picks up exits on it's own, but now I want it to pick up room names too. Room names come on a separate line with '[' and ']' at each end. Example: [east end of God Street]
I managed to successfully tag the line with a trigger:

Code:
Pattern:
~[(%*)~]

Script:
#TAG name {%-1}


In the help files, it says that I need to now reconfigure my automapper. So I go to Config>Reconfigure and go through with the wizard and HOORAY! it picks up the room name! I press 'Finish' and the room that the Reconfigure dialogue took me to has a name. Great!
Now I move to another room. No name. My new trigger only works in the reconfigure dialogue, but not in practice.
Any idea what I'm doing wrong here?
Thanks!

EDIT: I also tried naming the room with an alias after capturing it's name to a variable like this:
Code:
%roomname(@rn)
#ECHO This room was named @rn


But this also didn't work...
Reply with quote
shalimar
GURU


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

PostPosted: Wed Jan 13, 2016 4:29 pm   
 
Try #TAGing the exit line as well.
Or have something that fires an #OK to let it know that entry into a room has been completed.
Also, did you put the map into mapping mode?
By default it stays in follow mode.

Also, your script to rename it is in improper format, if needed, it should look like:

#CALL {%roomname(, @rn)}
_________________
Discord: Shalimarwildcat
Reply with quote
Kuranes
Newbie


Joined: 13 Jan 2016
Posts: 2

PostPosted: Thu Jan 14, 2016 7:07 am   
 
Hello. Turns out I expected it to work on already mapped rooms with no name. It works when a new room is created though.

Thanks for correcting my alias script, I can now use it to name already created rooms.
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