Difference between revisions of "Osiris/API/CharacterDie"

From Divinity Engine Wiki
Jump to: navigation, search
(CharacterDie)
 
m (reemoved useless [in] modifiers)
Line 1: Line 1:
 
===== Full Definition(s) =====
 
===== Full Definition(s) =====
* call '''CharacterDie'''('''''[in]'''(CHARACTERGUID)'''''_Character''','''''[in]'''(INTEGER)'''''_GenerateTreasure''','''''[in]'''(STRING)'''''_DeathType''')
+
* call '''CharacterDie'''(''(CHARACTERGUID)'''''_Character''', ''(INTEGER)'''''_GenerateTreasure''', ''(STRING)'''''_DeathType''')
 
===== Description =====
 
===== Description =====
 
Kills '''_Character''' as if it died from '''_DeathType'''. Depending on whether '''_GenerateTreasure''' is '''1''' or '''0''', treasure will be generated as if a player killed '''_Character''' or not.
 
Kills '''_Character''' as if it died from '''_DeathType'''. Depending on whether '''_GenerateTreasure''' is '''1''' or '''0''', treasure will be generated as if a player killed '''_Character''' or not.

Revision as of 17:49, 9 September 2017

Full Definition(s)
  • call CharacterDie((CHARACTERGUID)_Character, (INTEGER)_GenerateTreasure, (STRING)_DeathType)
Description

Kills _Character as if it died from _DeathType. Depending on whether _GenerateTreasure is 1 or 0, treasure will be generated as if a player killed _Character or not.

Depending on the death type, the corpse and its pose can be different. Possible death types are (could use some love from someone with detailed knowledge about what these are used for):

  • None: no specific death type/default.
  • Physical: Died from physical damage.
  • Piercing: Died from piercing weapon damage.
  • Arrow: Took an arrow to the knee.
  • DoT: Damage-over-Time.
  • Incinerate: Burnt to death. Cannot be source-vampirised.
  • Acid: Died from acid/poison damage.
  • Electrocution: Died from electricity damage.
  • FrozenShatter: Died from shattering after being frozen. Cannot be source-vampirised.
  • PetrifiedShatter: Died from shattering after being petrified. Cannot be source-vampirised.
  • Explode: self-explanatory. Cannot be source-vampirised.
  • Surrender: No idea.
  • Hang: Died from being hanged. Hint: put the character on an invisible floating platform to make them hang above the ground like e.g. the corpse next to Master Siva in Act 2.
  • KnockedDown: No idea (maybe dead in knocked-down pose, no blood?).
  • LifeTime: No idea.
Notes
  • /
See Also