Page 1 of 1
Prisons

Posted:
Sun May 18, 2014 6:13 pm
by mangoose
So I have started working on my expansion again, and I decided to make a prison. The problem is, I have no idea how to make the game recognize the prison Map as a prison, so if I commit a crime and speak to a guard, it tries to send me to jail, but I just get a message saying that there is no prison nearby. So how do I make it recognize the prison?
Re: Prisons

Posted:
Mon May 19, 2014 1:51 pm
by Sylon / Redshift
Look the identifier of the prison maps in the original game. Select the maps and check them in the editor. They have an id like this:
base_s1108_jail
So this means that in the upper world this prison is connected to the 1108 map (the village of Phryn's center is this map). Then for example if you put a guard in the map 1108 and give him a command like player.movetojail(); with the condition of having some crime level for the player, he will put the player right in that cell.
Of course on the prison map you have to have a destination place for the player with an unique id, like base_s1108_jailentry in this case.
Re: Prisons

Posted:
Tue May 20, 2014 4:13 am
by mangoose
That's what I tried, but I think I might have forgotten the s before the numbers. I won't know for sure until I get my computer back
Re: Prisons

Posted:
Tue May 20, 2014 10:17 pm
by Sylon / Redshift
Of course 's' refers to 'surface'.
Re: Prisons

Posted:
Fri May 23, 2014 10:29 pm
by mangoose
so I can't have the player sent to prison from other surface map sectors, or dungeon maps?
Re: Prisons

Posted:
Sat May 24, 2014 6:12 am
by Sylon / Redshift
I don't know, try it out.
I think the player.movetojail(); script line works also on the maps right beside the 'center map' of the current jail. But from dungeons... I don't know. Check the main game's world with the editor and you can see how it works (or not works) on different maps.
Re: Prisons

Posted:
Thu Jun 05, 2014 2:22 am
by mangoose
Maybe a more flexible prison system would be a good feature in tq2, like the ability to have just one or two prisons per world, which could be accessed from anywhere, even dungeons. On The surface, the nearest prison would be used, and in a dungeon map, a random prison would be selected.
Re: Prisons

Posted:
Thu Jun 05, 2014 5:53 am
by Sylon / Redshift
OK, the more flexible prison system is now in our "to do" list for TQ2. : )