Bool (2da type)

From Dragon Age Toolset Wiki
Revision as of 12:22, 10 August 2011 by Sunjammer (Talk | contribs) (Reformatting, adding links)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The bool (boolean) data type is supported by 2DAs. In the Excel source file a bool value may be represented by one of:

True False
any non-zero number zero
Yes (case insensitive) No (case insensitive)
any words beginning with T (such as True!) any words beginning with F (such as False!)

NOTE: You cannot use TRUE and FALSE because Excel converts those to a special keyword the ExcelProcessor cannot parse properly at this time.

NOTE: The scripting language doesn't have a function for retrieving boolean values from a 2DA, and the behavior of Get2DAInt when retrieving a boolean is untested. It is probably safer to use an integer for scripting purposes.

See also

  • Boolean constant for a discussion of how booleans are handled in the scripting language