How to get Prisoner to hold a piece of equipment

Discussion about Mods for Prison Architect

Moderator: NBJeff

DeputyLOL
level1
level1
Posts: 21
Joined: Sat Dec 14, 2013 6:35 pm

How to get Prisoner to hold a piece of equipment

Postby DeputyLOL » Sun Aug 31, 2014 4:57 pm

I made a small mod on steam that allows prisoners to read books from the bookshelf so that they aren't completely useless. It is used for recreation and comfort. While looking through the object sprite bank I noticed that there was a book model. If you want to see for your self then it is under the radio and to the left of the boom box. I have no idea on how to mod but I was wondering if anyone else knows how I can make the prisoners hold the book in their hands while they read. Thanks
User avatar
Phraxas
level2
level2
Posts: 107
Joined: Sun Aug 31, 2014 12:10 am
Location: USA - PA

Re: How to get Prisoner to hold a piece of equipment

Postby Phraxas » Sun Aug 31, 2014 5:39 pm

I think you have to establish the book as equipment used for the job.
User avatar
knoest26
level5
level5
Posts: 1380
Joined: Thu Jul 11, 2013 6:55 pm
Location: The Netherlands
Contact:

Re: How to get Prisoner to hold a piece of equipment

Postby knoest26 » Sun Aug 31, 2014 6:51 pm

I doubt whether that would be possible
DeputyLOL
level1
level1
Posts: 21
Joined: Sat Dec 14, 2013 6:35 pm

Re: How to get Prisoner to hold a piece of equipment

Postby DeputyLOL » Mon Sep 01, 2014 11:52 am

I mean like when the prisoners are eating they use a knife, fork or spoon in their hands. I was wondering if I could get them to hold a book while reading. I put the book into the equipment list, I just need to know how I can make them hold said equipment in their hand while doing the task.
Link to mod btw: http://steamcommunity.com/sharedfiles/f ... earchtext=
User avatar
Phraxas
level2
level2
Posts: 107
Joined: Sun Aug 31, 2014 12:10 am
Location: USA - PA

Re: How to get Prisoner to hold a piece of equipment

Postby Phraxas » Mon Sep 01, 2014 7:52 pm

This is exactly what I'm working on right now with my mod I'm making, so if I find out the answer I'll let you know.

I do know that assigning the equipment in the job section does work for that, but I don't think using an object as a need provider is considered a job.
A need provider does have a slot, so my best bet is that a piece of equipment needs to be assigned to that slot somehow.
User avatar
knoest26
level5
level5
Posts: 1380
Joined: Thu Jul 11, 2013 6:55 pm
Location: The Netherlands
Contact:

Re: How to get Prisoner to hold a piece of equipment

Postby knoest26 » Mon Sep 01, 2014 7:57 pm

judging from the files I would say that the fork is linked to the action 'eat' and because we cannot yet mod our own actions in the game that would be impossible. The only thing you could do is turn it into a job, which can be linked to a piece of equipment but that would mean that eating would no longer satisfy the food need
User avatar
Phraxas
level2
level2
Posts: 107
Joined: Sun Aug 31, 2014 12:10 am
Location: USA - PA

Re: How to get Prisoner to hold a piece of equipment

Postby Phraxas » Mon Sep 01, 2014 8:26 pm

What about "Use"? I guess that would just involve standing on it..
User avatar
knoest26
level5
level5
Posts: 1380
Joined: Thu Jul 11, 2013 6:55 pm
Location: The Netherlands
Contact:

Re: How to get Prisoner to hold a piece of equipment

Postby knoest26 » Mon Sep 01, 2014 8:35 pm

Phraxas wrote:What about "Use"? I guess that would just involve standing on it..

Yes
User avatar
Phraxas
level2
level2
Posts: 107
Joined: Sun Aug 31, 2014 12:10 am
Location: USA - PA

Re: How to get Prisoner to hold a piece of equipment

Postby Phraxas » Mon Sep 01, 2014 8:39 pm

Now, I'm assuming "Consume" would actually get rid of the object itself. What if you have the object spawn the book and the prisoner consumes that book?
User avatar
knoest26
level5
level5
Posts: 1380
Joined: Thu Jul 11, 2013 6:55 pm
Location: The Netherlands
Contact:

Re: How to get Prisoner to hold a piece of equipment

Postby knoest26 » Mon Sep 01, 2014 8:41 pm

*Can't get the thought of a prisoner eating a book out of my head anymore now*

That could work but it seems excessive
User avatar
Phraxas
level2
level2
Posts: 107
Joined: Sun Aug 31, 2014 12:10 am
Location: USA - PA

Re: How to get Prisoner to hold a piece of equipment

Postby Phraxas » Mon Sep 01, 2014 8:50 pm

The question then is how do we know when that book has been consumed so that a new book could be released? Or is there possibly some sort of trigger that we might know when the book case is being used.
User avatar
knoest26
level5
level5
Posts: 1380
Joined: Thu Jul 11, 2013 6:55 pm
Location: The Netherlands
Contact:

Re: How to get Prisoner to hold a piece of equipment

Postby knoest26 » Mon Sep 01, 2014 8:54 pm

I guess you could do that time based
User avatar
Phraxas
level2
level2
Posts: 107
Joined: Sun Aug 31, 2014 12:10 am
Location: USA - PA

Re: How to get Prisoner to hold a piece of equipment

Postby Phraxas » Mon Sep 01, 2014 9:04 pm

The book could disappear after 5 seconds and the bookshelf could dispense one every 5 as well. That way it wouldn't clog up the game with stacks of books.
User avatar
knoest26
level5
level5
Posts: 1380
Joined: Thu Jul 11, 2013 6:55 pm
Location: The Netherlands
Contact:

Re: How to get Prisoner to hold a piece of equipment

Postby knoest26 » Mon Sep 01, 2014 9:10 pm

I guess that should work
DeputyLOL
level1
level1
Posts: 21
Joined: Sat Dec 14, 2013 6:35 pm

Re: How to get Prisoner to hold a piece of equipment

Postby DeputyLOL » Wed Sep 03, 2014 7:48 pm

Thanks guys. I noticed a few weird things when experimenting with the needs file. I tried to make prisoners be able to nap on a bench during the day and that resulted in 5 prisoners sitting on top of each other and their bodies disappearing like when they sleep in bed. Weird. I started work on other mods. I made one that gives armed guards assault rifles instead of shotguns with makes them less lethal as they do less damage and prisoners surrender after the second shot. On another note is it possible to get a new staff member in the game, I've been trying to get a sniper in the game. So far I managed to get a sniper box in the staff menu but it's empty and the sniper is invisible. I added the sniper to the object sprite bank, materials and base language. Have I missed anything?
Please help.

Return to “Modding”

Who is online

Users browsing this forum: No registered users and 16 guests