How to "jail/prision"

This forum is for discussing anything related to The Quest editor.

How to "jail/prision"

Postby NerfemTudo » Tue Jan 19, 2021 2:36 am

How do i make a working jail for the player :?:
Posts: 10
Joined: Wed Dec 23, 2020 11:15 am

Re: How to "jail/prision"

Postby KGold » Wed Jan 20, 2021 4:32 pm

NerfemTudo wrote:How do i make a working jail for the player :?:

The map id of your jail map should look like as follows:
world id_surface region id_jail

world id: The four-character identifier you gave your world when you were creating it
surface region id: The identifier of the surface map region the prison is attached to (usually a settlement). The id is the letter 's' followed by 4 numbers that designate the coordinates of the region. Note the player won't be thrown into jail when there aren't any nearby.

Example: The map id of the prison of Matras is base_s0303_jail

Then pick a spot in the prison the player arrives at when (s)he gets imprisoned. The id of the position should be the same as your map id, just add 'entry' at the end (no space).

Example: base_s0303_jailentry

If you want to make your prison the same way as it's in the base game, then the above position should behind a door with a keyhole that the player can unlock with a lockpick. Place a position past the door with the following code:

message("You have managed to leave your cell.");
player.addcrime(pick a value);

This way, the player won't be teleported out of prison once (s)he's taken 10 steps and will also get crime points for escaping.

I think that's it :) You can also make an alternative exit out of prison for the player (not the main entrance, which should be guarded).
If you have been really too busy,
And you feel your head being dizzy,
It's recommended to have a rest,
I have a good offer-play the Quest! : )
User avatar
Posts: 161
Joined: Sun Jun 10, 2012 3:21 pm
Location: Hungary

Re: How to "jail/prision"

Postby NerfemTudo » Wed Jan 20, 2021 10:41 pm

Thank you :D
Posts: 10
Joined: Wed Dec 23, 2020 11:15 am

Return to Editor

Who is online

Users browsing this forum: No registered users and 16 guests