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


Joined: 20 Dec 2011
Posts: 6

PostPosted: 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?
Reply with quote
shalimar
GURU


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

PostPosted: Tue Jan 10, 2012 3:59 am   
 
This would change the name of the current room

$thisName=Name
#CALL %roomname(,$thisName)
_________________
Discord: Shalimarwildcat
Reply with quote
Fluoride
Newbie


Joined: 20 Dec 2011
Posts: 6

PostPosted: Tue Jan 10, 2012 4:01 am   
 
Brilliant, thanks!
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: 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.
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