From ScummVM :: Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

A flag is a boolean data type with exactly two possible values: set or not set (these can alternately be referred to as 0 for "not set" and 1 for "set", or as true for "set" and false for "not set"). Flags are named by combining the prefix f with the number of the flag. There are 256 flags available in AGI, f0 to f255. The flags f0 to f15 have special meaning to the interpreter. You should not attempt to use these 16 flags for your own game data.

Is is both possible and recommended to give your flags more meaningful names than a simple letter-number combination. This is possible using defines. The defines.txt file from the AGI Studio Template Game gives define names for the 16 special flags.

See also


Data types