|
Killfile Novice
Joined: 30 Sep 2002 Posts: 32 Location: USA
|
Posted: Thu Nov 21, 2002 5:44 pm
Another Question %roomflags() |
I'm trying to set roomflags as part of a trigger set. I can read them just fine, but setting seems not to be working.
My current syntax is:
%roomflags(%roomnum(),@ValueHere)
Where ValueHere is a positive integer variable. For some reason this isn't setting, am I doing something wrong?
--Killfile |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Thu Nov 21, 2002 5:55 pm |
quote: Return or set the user-defined flags for the room. The flags are a string value and can be of any format needed by the user.
Use a STRING value, not an integer. 7 is an integer. "7" is a string.
LightBulb
Senior Member |
|
|
|
Killfile Novice
Joined: 30 Sep 2002 Posts: 32 Location: USA
|
Posted: Thu Nov 21, 2002 6:11 pm |
I tried that...
%roomflags(%roomnum(),"This is a test")
Does not set the flag. If I do a
#SA %roomflags(%roomnum())
after that it just echos a blank line
--Killfile |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Thu Nov 21, 2002 6:29 pm |
Use a command with it. By the way, I tested and integers should also work.
#NOOP %roomflags(,"this is a test")
#SAY %roomflags()
#SAY %roomflags(%roomnum())
#SAY %roomflags(%roomnum(),"this is another test")
#SAY %roomflags()
LightBulb
Senior Member |
|
|
|
|
|