|
grahamsnns Newbie
Joined: 06 May 2003 Posts: 3 Location: United Kingdom
|
Posted: 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. |
|
|
|
Wrudyn Novice
Joined: 24 Mar 2003 Posts: 44 Location: USA
|
Posted: 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. |
|
|
|
grahamsnns Newbie
Joined: 06 May 2003 Posts: 3 Location: United Kingdom
|
Posted: Wed May 07, 2003 4:17 pm |
Anyone know how to create and manipulate flags using these commands?
|
|
|
|
|
|