Execute_ReleaseFromPrison
Description
Ends a prison stay.
Walking out, a jailbreak, an acquittal and a fine all end the same way: the state closes and the buffs it keeps refreshed are taken off. Nothing happens when the character is not in custody, so the data can call this on a branch that is only sometimes about a prisoner.
Side effects that stay in data - taking the prison outfit off, clearing the crime stat, withdrawing the quest - remain separate scripts, because those are values the design changes.
Nobody is moved out of the cell by this on its own. Walking out and breaking out each have an interaction that teleports the character, so those branches leave S1 empty. A branch that ends the stay without one - a trial that falls through before it starts - sets S1 to SendOutside, or the character stays standing in the cell with no way out.
A possessed resident of a satellite city who was jailed in the parent city is then sent back to the home city at once, to the map position named by S2 (PoliceStation_Front when empty), or home when the home city has no such position. The breakout branch names PrisonBreak; walking out, an acquittal and a fine leave it empty.
Parameters
| Parameter | Description |
|---|---|
| BaseObject | The character leaving prison (Self or Target) |
| S1 | Empty, or SendOutside to put the character in front of the police station |
| S2 | Map position a satellite city resident arrives at back home. Empty means PoliceStation_Front |
Examples
| Description | BaseObject | Command | S1 | S2 |
|---|---|---|---|---|
| Self walks out at the end of term | Self | ReleaseFromPrison | ||
| Self breaks out through the wall | Self | ReleaseFromPrison | PrisonBreak | |
| Self's trial fell through, let out | Self | ReleaseFromPrison | SendOutside |