Numeric flags

From StealthBot Wiki
Jump to: navigation, search

In scripting, numeric flags are integers that tell a certain trait about a certain thing. There is always a defined list of possible values.

Binary flags

Binary flags are flags that can be combined and compared using the VBScript bitwise operators. The possible values are not sequential and instead appear to ascend exponentially such that f(x) = 2x. This way, a flag can indicate many different things, from none of its possible values to all of them.

Examples include: channel flags and user flags.

Sequential flags

Some flags have a sequential set of possible values, and combining them as binary flags will result in a different meaning than expected.

Examples include: friend location flags

See also