Disease HasDisease

From Dragon Age Toolset Wiki
Revision as of 19:14, 16 February 2010 by BryanDerksen (Talk | contribs) (Created page with '{{dafunction |name = Disease_HasDisease |brief = Returns whether or not a character has a Disease |param1type = object |param1name = oCharacter |param1desc = the Creature to che...')

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

Returns whether or not a character has a Disease

int Disease_HasDisease(
object oCharacter,
int nDiseaseID
);
Parameters:
oCharacter
the Creature to check
nDiseaseID
the Disease to check for. If -1, it will return TRUE if ANY disease is present.
Returns:

TRUE if the Creature has the Disease; otherwise FALSE

Source:

Core Resources.sys_disease

Description

Checks if a Character currently has a certain Disease Effect applied to him.

Disease Effects are defined in the Disease 2DA (diseases.xls)