Difference between revisions of "Osiris/Shared/DB KillCounter"
From Divinity Engine Wiki
(Documented DB_KillCounter) |
m |
||
(2 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
* PROC '''ReactOnKillCounter'''(''(STRING)'''''_CounterName''') | * PROC '''ReactOnKillCounter'''(''(STRING)'''''_CounterName''') | ||
===== Description ===== | ===== Description ===== | ||
− | + | You can define any number of '''DB_KillCounter_Internal''' facts for different characters with a particular '''_CounterName'''. Once '''_Count''' number of these characters have been killed, as defined by a '''DB_KillCounter''' fact with the same '''_CounterName''', then the PROC '''ReactOnKillCounter''' will be called with '''_CounterName''' as parameter. | |
===== Notes ===== | ===== Notes ===== | ||
* / | * / | ||
Line 11: | Line 11: | ||
* [[Osiris/API/CharacterDying|CharacterDying]] | * [[Osiris/API/CharacterDying|CharacterDying]] | ||
* [[Osiris/API/CharacterKilledByCharacter|CharacterKilledByCharacter]] | * [[Osiris/API/CharacterKilledByCharacter|CharacterKilledByCharacter]] | ||
+ | * Helper [[Osiris/Shared/DB_Dead|DB_Dead]] | ||
+ | * Helper [[Osiris/Shared/DB_DeadEvent|DB_DeadEvent]] | ||
+ | * Helper [[Osiris/Shared/DB_KilledEvent|DB_KilledEvent]] | ||
[[Category:Osiris Shared Mod Helpers|KillCounter]] | [[Category:Osiris Shared Mod Helpers|KillCounter]] |
Latest revision as of 21:47, 14 January 2018
Full Definition(s)
- DB_KillCounter_Internal((CHARACTERGUID)_Character, (STRING)_CounterName)
- DB_KillCounter((STRING)_CounterName, (INTEGER)_Count)
- PROC ReactOnKillCounter((STRING)_CounterName)
Description
You can define any number of DB_KillCounter_Internal facts for different characters with a particular _CounterName. Once _Count number of these characters have been killed, as defined by a DB_KillCounter fact with the same _CounterName, then the PROC ReactOnKillCounter will be called with _CounterName as parameter.
Notes
- /
See Also
- CharacterDied
- CharacterDying
- CharacterKilledByCharacter
- Helper DB_Dead
- Helper DB_DeadEvent
- Helper DB_KilledEvent