Prison Architect

Prison Architect

Which side do you sit on?
Brutal Punishment or noble attempts to reform? From the Panopticon to the Supermax, this is your chance to publish or subscribe to the best prisons from the Architect community.
Joe 20 Jul, 2020 @ 11:17am
Lua Scripting, reading Daily Cashflow, Daily Guard Deaths, Criminally Insane prisoners, amount of dirt/mess in prison, ect.
Is there a way to script the reading of the following and store it as a variable to be used later in the script:
A) Daily Cashflow and/or the cashflow details like staff wages, prisoner wages, programs, ect?
B) Daily Guard deaths or Guard deaths within a given time.
C) The amount of Criminally Insane Prisoners, I have a script that can count the total number of prisoners but it cannot distinguish between security and insane.
D) The amount of dirt in the prison or how messy the prison is not including the object Garbage.
E) The amount of Workman related Jobs within a given day or time, mainly repairs.
F) The amount of assigned guard positions that is done through the Deployment tab in the game.

Any information for anyone of these will be greatly appreciated. One answer does not need to work with the others, I can work around those if needed.

This is for personal entertainment, the mod I am creating already uses some scripts from other mods with a few alterations. So I will not be uploading it when I am done to respect the rights of those who put time and effort in the mods I used to create this.
< >
Showing 1-1 of 1 comments
Joe 20 Jul, 2020 @ 11:33am 
There is a small work around for little portion of A) I can find out what each staff member is paid and use that number to multiply the number of each staff that is grabbed by the script.
However this method cannot be done on prisoners, exports/inports, repairs ect. Reason it cant be done on prisoners is I do not have a script that can distinguish the different security levels and the prisoner grant does not change even if the security status of the prisoner changes.
< >
Showing 1-1 of 1 comments
Per page: 1530 50