Difference between revisions of "Osiris/API/CharacterDie"

From Divinity Engine Wiki
Jump to: navigation, search
m (reemoved useless [in] modifiers)
Line 1: Line 1:
 
===== Full Definition(s) =====
 
===== Full Definition(s) =====
* call '''CharacterDie'''(''(CHARACTERGUID)'''''_Character''', ''(INTEGER)'''''_GenerateTreasure''', ''(STRING)'''''_DeathType''')
+
* call '''CharacterDie'''(''(CHARACTERGUID)'''''_Character''', ''(INTEGER)'''''_GenerateTreasure''', ''(STRING)'''''_DeathType''', ''(GUIDSTRING)'''''_Source''')
 
===== 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''', coming from '''_Source'''. 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):
 
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):
Line 19: Line 19:
 
* '''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.
 
* '''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?).
 
* '''KnockedDown''': No idea (maybe dead in knocked-down pose, no blood?).
* '''LifeTime''': No idea.
+
* '''LifeTime''': Summon's lifetime ran out.
  
 
===== Notes =====
 
===== Notes =====

Revision as of 12:21, 14 November 2017

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

Kills _Character as if it died from _DeathType, coming from _Source. 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: Summon's lifetime ran out.
Notes
  • /
See Also