Prison Architect

Prison Architect

评价数不足
How to create your own grants. (BETTER)
由 Kyzer 制作
Hello, this is my first guide for Prison Architect. All information I share with you today, and much more are on this page:
http://prisonarchitectwiki.com/wiki/Modding_guide#Creating_a_grant

Anyways, lets get into it!

Getting Started

Okay, so the first part is to go here:
C:\Program Files (x86)\Steam\steamapps\common\Prison Architect

Once you are there, create a folder called "data"
After, use winRAR or 7zip to open the Main.dat file, and extract it to the data folder.

In the data folder, (after main.dat has been extracted) find "grants.lua" and open it with Notepad++ (I think is somewhat easier than normal notepad for this procedure)

Making a Grant

Now, at the top of grants.lua, you will see something like this:

function CreateGrants()

CreateBootstrapGrants();
CreateFirstCellBlockGrant();
CreateHealthGrant();
end

What you want to do, is add this under HealthGrant:

CreateGrantName();

Now it should look like this:

function CreateGrants()

CreateBootstrapGrants();
CreateFirstCellBlockGrant();
CreateHealthGrant();
CreateGrantName();
end

Under "end" make a new line.
Write:

function CreateGrantName()

create a new line and press Tab.
Write:

Objective.CreateGrant
Press tab 3 times.
write:

( "Grant_GrantName", amount of money on start, amount of money at completion )

should look like this:

Objective.CreateGrant ( "Grant_GrantName", 5000, 5000 )

create a new line, and then create another new line.

Write:

Objective.CreateGrant ( "Grant_GrantName_ObjectiveofGrant", not sure, Money on completion )

Should look like this:

function CreateCleaningGrant()
Objective.CreateGrant ( "Grant_CleaningGrant", 5000, 5000 )

Objective.CreateGrant ( "Grant_GrantName_ObjectiveofGrant", not sure, Money on completion )

Create a line under that.
write:

Objective.SetParent ( "Grant_GrantName" )

Create a new line.

Now, this part WILL require you to go to the website i linked above. you must use it to have this to work. The bottom will help you on how and what to use for certain ways of completion.

Write:

<ITEM REQUIREMENT FOR COMPLETION> ( "ITEM", NUMBER OF ITEM REQUIRED )

^^^^^^ CAN BE DONE MULTIPLE TIMES, JUST USE THIS MULTIPLE TIMES FOR EACH ITEM TYPE THAT IS REQUIRED:

Objective.CreateGrant ( "Grant_GrantName_ObjectiveofGrant", not sure, Money on completion )
Objective.SetParent ( "Grant_GrantName" )
<ITEM REQUIREMENT FOR COMPLETION> ( "ITEM", NUMBER OF ITEM REQUIRED )


Description and Title


To add a description and title, do this:
Use normal notepad and go to data>language>english.txt
Press ctrl+F

type in "bootstraps"

Under "hire atleast 2 chefs" part, make a new line and write this:

objective_grant_GrantName Grant: GrantName

NOTE: Grant: can be changed to Contract: if desired, or anything at all can work XD

Directly under that, write:

objective_grant_GrantName_description (description)

and under that, write:

objective_grant_GrantName_ObjectiveofGrant (What you want to show in the todo: list


THANK YOU FOR READING. I HOPE THIS HELPED. ASK QUESTIONS, I MAY BE ABLE TO ANSWER THEM.

P.S. THE SPACES INBETWEEN THE ITEMS ARE TABS, USE TABS, NOT THE SPACE BAR. FOR THE NOTEPAD++ PARTS, PRESS TAB 3 TIMES. FOR THE NORMAL NOTEPAD PART, AT LEAST ONCE.
   
奖励
收藏
已收藏
取消收藏
5 条留言
yock 2014 年 5 月 16 日 上午 12:04 
thx for the guide screenshots would be nice though
footman 2014 年 5 月 10 日 下午 8:43 
;)██▒▒▓▓▓▓▓▓▒▒▓▓▓▓▓▓▓▒▒▓▓▓▓▓▓▒▒▓▓▓▓▓▓▒▒██ ██▒▒▓▓▒▒▒▒▒▒▓▓▒▒▒▒▓▒▒▒▒▓▓▒▒▒▒▓▓▒▒▒▒▒▒██ ██▒▒▓▓▓▓▒▒▒▒▓▓▒▒▒▒▓▒▒▒▒▓▓▒▒▒▒▓▓▒▒▒▒▒▒██ ██▒▒▓▓▓▓▒▒▒▒▓▓▓▓▓▓▓▒▒▒▒▓▓▒▒▒▒▓▓▒▒▒▒▒▒██ ██▒▒▓▓▒▒▒▒▒▒▓▓▒▒▒▒▒▒▒▒▒▓▓▒▒▒▒▓▓▒▒▒▒▒▒█

THIS IS ART MANN
Samodov 2014 年 5 月 7 日 下午 3:00 
Very confusing. Try using code format instead of doing this:

"Okay so you see that line there? Write this under it: Code_code
Okay now under that write Code2_Co2"

It's really confusing and easy to lose your place.
ImASlabOfBeef 2013 年 10 月 2 日 上午 9:05 
TROLL
ImASlabOfBeef 2013 年 10 月 2 日 上午 9:05 
WHAT????????