Garden works for prisoners.

Discussion about Mods for Prison Architect

Moderator: NBJeff

berke1100
level1
level1
Posts: 60
Joined: Sat Apr 27, 2013 2:28 pm

Garden works for prisoners.

Postby berke1100 » Wed Sep 03, 2014 5:11 pm

Hello everybody,

I'm trying to do gardener prisoners. :D
I want to use base game function to do it but I can't find name of gardening job.

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

Re: Garden works for prisoners.

Postby Phraxas » Wed Sep 03, 2014 5:16 pm

If you're trying to make a new job, you need to make the job in jobs.txt.
If you're overwriting an existing one, you need to look it up in your main.dat file under jobs.txt and copy that.
In your script, you refer to what to do when the job is complete as JobComplete_Gardening().
berke1100
level1
level1
Posts: 60
Joined: Sat Apr 27, 2013 2:28 pm

Re: Garden works for prisoners.

Postby berke1100 » Wed Sep 03, 2014 5:19 pm

Phraxas wrote:If you're trying to make a new job, you need to make the job in jobs.txt.
If you're overwriting an existing one, you need to look it up in your main.dat file under jobs.txt and copy that.
In your script, you refer to what to do when the job is complete as JobComplete_Gardening().


I don't have "jobs.txt" under main.dat folder.

I want change job already exist. -Garden outdoor are job-
User avatar
Phraxas
level2
level2
Posts: 107
Joined: Sun Aug 31, 2014 12:10 am
Location: USA - PA

Re: Garden works for prisoners.

Postby Phraxas » Wed Sep 03, 2014 5:24 pm

Oops, yeah.. no jobs in main. But you can create a jobs.txt in your mod data folder and do something like this:

Code: Select all

BEGIN Job
    Name                    Gardening
    JobTime                 30
    Tool                    Trowel
    Worker                  Prisoner
    Qualification           Gardening
END

Don't forget the spaces.
berke1100
level1
level1
Posts: 60
Joined: Sat Apr 27, 2013 2:28 pm

Re: Garden works for prisoners.

Postby berke1100 » Wed Sep 03, 2014 5:37 pm

Phraxas wrote:Oops, yeah.. no jobs in main. But you can create a jobs.txt in your mod data folder and do something like this:

Code: Select all

BEGIN Job
    Name                    Gardening
    JobTime                 30
    Tool                    Trowel
    Worker                  Prisoner
    Qualification           Gardening
END

Don't forget the spaces.


I have already create job and room but prisoners don't going to work. So I want use vanilla gardening job for it. Otherwise I don't know how can make it.
User avatar
Phraxas
level2
level2
Posts: 107
Joined: Sun Aug 31, 2014 12:10 am
Location: USA - PA

Re: Garden works for prisoners.

Postby Phraxas » Wed Sep 03, 2014 6:57 pm

You'll also need to have a script on whatever item it is that the job is going to be performed upon. The script should use the CreateJob("Gardening") function and then use JobComplete_Gardening() to signify what happens when it's completed.
berke1100
level1
level1
Posts: 60
Joined: Sat Apr 27, 2013 2:28 pm

Re: Garden works for prisoners.

Postby berke1100 » Wed Sep 03, 2014 8:49 pm

Phraxas wrote:You'll also need to have a script on whatever item it is that the job is going to be performed upon. The script should use the CreateJob("Gardening") function and then use JobComplete_Gardening() to signify what happens when it's completed.


Where can I learn about this stuff?
User avatar
Phraxas
level2
level2
Posts: 107
Joined: Sun Aug 31, 2014 12:10 am
Location: USA - PA

Re: Garden works for prisoners.

Postby Phraxas » Wed Sep 03, 2014 9:49 pm

I go over some of this in my tutorial for basic modding:

viewtopic.php?f=88&t=49986

Return to “Modding”

Who is online

Users browsing this forum: No registered users and 9 guests