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


Joined: 06 May 2003
Posts: 3
Location: United Kingdom

PostPosted: Tue May 06, 2003 10:18 pm   

Flag representations
 
Im not sure if Zmud can do this, but is there any way to "set bits" to specific words. For instance, can you use an integer to hold a number that corresponds to specific combinations of words for use instead of lists( for speed checking ). I know this could be set up manually, but are there any inbuilt functions that can be used?

If not, are there any faster methods than lists for use with curing afflictions. Lists seem awefully slow in checking for existance of afflictions and then checking lists for priority curing. Flags seem like a more logical choice if anyone knows how to set them up.

Thanks in advance.
Reply with quote
Wrudyn
Novice


Joined: 24 Mar 2003
Posts: 44
Location: USA

PostPosted: Tue May 06, 2003 10:37 pm   
 
From the Zmud help file:
bitand - returns the bitwise AND of the two numbers
bitor - returns the bitwise OR of the two numbers
bitxor - returns the bitwise XOR of the two numbers
bitnot - returns the bitwise inverse of the number

I don't know if this is what you need, but you set up flags with these. I don't know if flags would be much faster than a stringlist unless you plan on checking it a lot.
Reply with quote
grahamsnns
Newbie


Joined: 06 May 2003
Posts: 3
Location: United Kingdom

PostPosted: Wed May 07, 2003 4:17 pm   
 
Anyone know how to create and manipulate flags using these commands?
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