Difference between revisions of "Disease HasDisease"

From Dragon Age Toolset Wiki
Jump to: navigation, search
(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...')
 
m (Fixing source, adding categories)
 
Line 1: Line 1:
 
{{dafunction
 
{{dafunction
|name = Disease_HasDisease
+
|name         = Disease_HasDisease
|brief = Returns whether or not a character has a Disease
+
|brief         = Returns whether or not a character has a disease
|param1type = object
+
|param1type   = object
|param1name = oCharacter
+
|param1name   = oCharacter
|param1desc = the Creature to check
+
|param1desc   = the Creature to check
 
|param1default =
 
|param1default =
|param2type = int
+
|param2type   = int
|param2name = nDiseaseID
+
|param2name   = nDiseaseID
|param2desc = the Disease to check for. If -1, it will return TRUE if ANY disease is present.
+
|param2desc   = the Disease to check for. If -1, it will return TRUE if ANY disease is present.
 
|param2default =
 
|param2default =
|returntype = int
+
|returntype   = int
|returndesc = TRUE if the Creature has the Disease; otherwise FALSE
+
|returndesc   = TRUE if the Creature has the Disease; otherwise FALSE
|sourcefile = sys_disease
+
|sourcefile   = sys_disease
|sourcemodule = Core Resources
+
|sourcemodule = Core Game Resources
 
}}
 
}}
 
 
== Description ==  
 
== Description ==  
 
<!-- This section contains the full description from the functions comments. Do not change unless you are confident these are incomplete or incorrect. -->
 
<!-- This section contains the full description from the functions comments. Do not change unless you are confident these are incomplete or incorrect. -->
 
+
Checks if a character currently has a certain disease effect applied to him.
Checks if a Character currently has a certain Disease Effect applied to him.
+
Disease effects are defined in the [[diseases 2da]] file.
 
+
Disease Effects are defined in the Disease 2DA ([[diseases.xls]])
+
 
+
 
<!-- == Remarks == -->
 
<!-- == Remarks == -->
 
<!-- This section contains additional comments, observations and known issues. -->
 
<!-- This section contains additional comments, observations and known issues. -->
 
 
<!-- == Examples == -->
 
<!-- == Examples == -->
 
<!-- This section contains examples transcluded from the snippet library. -->
 
<!-- This section contains examples transcluded from the snippet library. -->
 
 
<!-- == See also == -->
 
<!-- == See also == -->
 
<!-- This section contains links to articles, functions or constant groups. -->
 
<!-- This section contains links to articles, functions or constant groups. -->
 +
 +
[[Category:Creature functions]]
 +
[[Category:Disease functions]]

Latest revision as of 14:27, 27 March 2012

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 Game Resources.sys_disease

Description

Checks if a character currently has a certain disease effect applied to him. Disease effects are defined in the diseases 2da file.