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
| Field | Value |
|---|---|
| Display | Crime Get Status |
| Category | crime |
| Access | Public |
| Scope | B2Authority |
| Tags | — |
| Aliases | — |
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| entity_id | entityId | no | 0 | Target character entity id (default: possessed). |
Returns
Returns a JSON object with the following fields:
| Field | Type | Required | Description |
|---|---|---|---|
entity_id | entityId | yes | Target entity id |
pending | bool | yes | Whether an imprisonment is deferred |
pending_play_reason | string | yes | Play reason stored on the pending mark (Invalid when none) |
pending_apply_script_id | string | yes | Script run when the deferred imprisonment is queued (None when none) |
pending_crime_city | string | yes | City the crime was recorded in (tracking only) |
pending_deferred_ticks | int | yes | Game ticks at which the imprisonment was deferred |
custody_ongoing | bool | yes | Whether the stay is still running - pretrial detention or a term being served, with any confirmed term end not yet passed |
imprisonment_count | int | yes | Recorded imprisonment history count |
trial_count | int | yes | Recorded trial history count |
Usage
await inzoi.cli.execute('crime.get_status', {
entity_id: 0, // optional
});