Osiris/Shared/DB CombatCharacters

From Divinity Engine Wiki
Revision as of 08:36, 6 July 2018 by Tinkerer (talk | contribs) (Notes)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Full Definition(s)
  • DB_CombatCharacters((CHARACTERGUID)_Char, (INTEGER)_ID)
  • DB_WasInCombat((CHARACTERGUID)_Char, (INTEGER)_ID)
Description

Whenever a character enters a combat, the a corresponding DB_CombatCharacters entry is defined that contains the character _Char and the _ID of the combat. Entering a combat will also clear any previous DB_CombatCharacters and DB_WasInCombat entries for this character.

Whenever a combat leaves a combat, a DB_WasInCombat entry is defined that contains the character _Char and the _ID of the combat

Notes
  • Combat IDs are reused by code once combats end, so DB_WasInCombat() is quite unreliable and should not be used.
See Also