Open main menu

AGIWiki/Flag

< AGIWiki
Revision as of 20:06, 21 February 2013 by Sact (talk | contribs) (Created page with "{{AGIWiki}} 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 ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
AGIWiki


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 [[AGIWiki/Special flags|special meaning] to the [[AGIWiki/Interpreter|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

Sources