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
Killfile
Novice


Joined: 30 Sep 2002
Posts: 32
Location: USA

PostPosted: 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
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: 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
Reply with quote
Killfile
Novice


Joined: 30 Sep 2002
Posts: 32
Location: USA

PostPosted: 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
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

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