|
Fluoride Newbie
Joined: 20 Dec 2011 Posts: 6
|
Posted: Tue Jan 10, 2012 3:41 am
Manually setting room names |
Hi, I'm afraid I've got badly confused by something that should be very simple.
I'm trying to find the script to change the name of an existing room on my map from the command line.
I tried using '#TAG name My House' - which I now understand after some reading has to be used as part of a trigger when the room is created, and thus doesn't do what I want.
I then discovered the %roomname function but doing '%roomname(My House)' doesn't work either.
Can anyone tell me what I'm doing wrong? |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4692 Location: Pensacola, FL, USA
|
Posted: Tue Jan 10, 2012 3:59 am |
This would change the name of the current room
$thisName=Name
#CALL %roomname(,$thisName) |
|
_________________ Discord: Shalimarwildcat |
|
|
|
Fluoride Newbie
Joined: 20 Dec 2011 Posts: 6
|
Posted: Tue Jan 10, 2012 4:01 am |
Brilliant, thanks!
|
|
|
|
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: Tue Jan 10, 2012 5:40 pm |
The reason your original code didn't work is because %roomname has two parameters, separated by a comma. The first parameter is the room number. Putting a comma before the new room name tells the function to use the default room number, which is the current room number. A number of other mapper functions work the same way.
|
|
|
|
|
|