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


Joined: 11 Oct 2004
Posts: 3

PostPosted: Mon Jul 11, 2005 11:42 pm   

help with roomcol
 
Hi all,
I am trying to change the color in the current room to a new value from a trigger. I found the roomcol function and managed to retrieve the current color. Sadly I cant change the color. I tried it from the command prompt of my main window. I used the following variations:

#noop %roomcol(,red)
#noop %roomcol(%roomvnum,red)
#noop %roomcol(345,red) // 345 is the room id
#noop %roomcol(,$ff0000)
#noop %roomcol(%roomvnum,$ff0000)
#noop %roomcol(345,$ff0000) // 345 is the room id

but nothing worked.

Any idea what I did wrong?


Regards


Sammas
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Tue Jul 12, 2005 12:31 am   
 
You have to be in map mode or unlock the map with the %maplocked function to make changes to the database. Here is a handy alias to handle all that for you without messing up the current maplocked state.


#ALIAS roomcol {
SaveLockState=%maplocked
#CALL %maplocked(0)
#CALL %roomcol(,"%-1")
#CALL %maplocked(@savelockstate)
}

Then just use it like a regular command
roomcol red
roomcol $ff0000
etc etc
_________________
Zmud Support Library
Zmud Knowledge Base
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