|
sammas Newbie
Joined: 11 Oct 2004 Posts: 3
|
Posted: 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 |
|
|
|
nexela Wizard
Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: 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 |
|
|
|
|
|
|
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
|
|