Skip to main content

crime.get_status

Overview

  • Returns the imprisonment state of a character: whether an imprisonment is deferred (pending mark and its recorded reason/city/time), whether a pre-release custody state is active, and the imprisonment/trial counts.

Metadata

FieldValue
DisplayCrime Get Status
Categorycrime
AccessPublic
ScopeB2Authority
Tags—
Aliases—

Parameters

NameTypeRequiredDefaultDescription
entity_identityIdno0Target character entity id (default: possessed).

Returns

Returns a JSON object with the following fields:

FieldTypeRequiredDescription
entity_identityIdyesTarget entity id
pendingboolyesWhether an imprisonment is deferred
pending_play_reasonstringyesPlay reason stored on the pending mark (Invalid when none)
pending_apply_script_idstringyesScript run when the deferred imprisonment is queued (None when none)
pending_crime_citystringyesCity the crime was recorded in (tracking only)
pending_deferred_ticksintyesGame ticks at which the imprisonment was deferred
custody_ongoingboolyesWhether the stay is still running - pretrial detention or a term being served, with any confirmed term end not yet passed
imprisonment_countintyesRecorded imprisonment history count
trial_countintyesRecorded trial history count

Usage

await inzoi.cli.execute('crime.get_status', {
entity_id: 0, // optional
});