Difference between revisions of "Osiris/API/CharacterIgnoreActiveCrimes"

From Divinity Engine Wiki
Jump to: navigation, search
m (call -> query, put into standard template form)
m
 
Line 1: Line 1:
 
===== Full Definition(s) =====
 
===== Full Definition(s) =====
* query '''CharacterIgnoreActiveCrimes'''('''[in]'''''(CHARACTERGUID)'''''_Character''', '''[out]'''''(INTEGER)'''''_Bool''')
+
* query '''CharacterIgnoreActiveCrimes'''('''''[in]'''(CHARACTERGUID)'''''_Character''', '''''[out]'''(INTEGER)'''''_Bool''')
 
===== Description =====
 
===== Description =====
 
Tries to remove all unresolved crimes registered for the player character '''_Character'''.
 
Tries to remove all unresolved crimes registered for the player character '''_Character'''.

Latest revision as of 07:35, 3 September 2018

Full Definition(s)
  • query CharacterIgnoreActiveCrimes([in](CHARACTERGUID)_Character, [out](INTEGER)_Bool)
Description

Tries to remove all unresolved crimes registered for the player character _Character.

Return Values
  • Success/Failure: Fails if _Character does not exist or is not in a party.
  • _Bool: 1 if all unresolved crimes registered for _Character could be removed (= permanently ignored), 0 otherwise.
Notes
  • You can first check with CharacterCanIgnoreActiveCrimes whether all crimes for the character can be removed.
  • Returns failure if some crime cannot be removed. This can happen if a player is currently being interrogated for a crime.
  • In case of failure, every crime that could be removed is still removed.
See Also