Project Highrise

Project Highrise

Unleash your inner architect.
Get new items for your skyscraper - furniture, decorations and even new types of tenants. You can also learn how to make them yourself using our guides.
了解更多
Just Lulu 2016 年 10 月 29 日 下午 5:55
First mod, could use some help
I'm not a coder so I'm learning as I go. Here's my question, how do I set an office to register as tech, creative, etc? And how do I add influence or buzz? Any help is appreciated.

Also, I would appreciate it if someone could check out the mod I made and let me know their thoughts. Thanks.
最后由 Just Lulu 编辑于; 2016 年 10 月 29 日 下午 5:57
< >
正在显示第 1 - 2 条,共 2 条留言
polander50 4 2017 年 1 月 1 日 上午 4:14 
In the Definition.txt file you'l see two lines like these taken from the small office template:

tags [ office "MY_MOD_ID-tag" ]
favrestaurants [ rest-foodcourt ]

You'll have changed the "MY_MOD_ID-tag" to the name of your mode. The "tags" line adds labels that the program will identify the item as. Therefore adding the tag "insurance" identifies the office as an insurance office and adding "insurance-one" says that this office is a small insurance office. One place that the program looks at these tags is for the Contracts. I've started gathering that info together so I can tell you that tags for the first office contract (4 each of 4 different types of offices) are:

insurance-one
accounting-one
legal-one
design-one

Once I get that info together I'll post it as a guide.

The "favrestaurants" line is that offices favorite restaurants, whether that is the only one it will go to or the most likely I don't know. The stock offices and apartments also have the tag for a retail place, like so:

favrestaurants [ rest-foodcourt retail-one-o ]

So if you want to specify which type of restaurants and retail places your office prefers that's the place to do it. Also if you want your restaurant or retail outlet to be preferred by offices or apartments you'll have to include the appropriate tags in the "tags" line of your restaurant or retail space.

Adding influence or buzz is done by including something like this:

tokens {
tokengrants [
{ type buzz value 1 hourofday 19 probability 1 }
{ type favors value 1 hourofday 20 probability 1 }
]
}

"Type buzz" is buzz (of course) and "type favors" is influence, "value" is the amount of buzz/influence granted, "hourofday" is when the tokens are granted in the 24 hour clock format, "probability" is the chance the token will be given. Looking at the probabilities for services I would say that "1" means 100%, "0.75" would mean 75%, etc. So this line says that there is a 100% chance of 1 buzz being granted at 19:00 (7 pm) and a 100% chance of 1 favor (influence) granted at 20:00 (8 pm). Also you can have one or the other type token if you want.
Just Lulu 2017 年 1 月 13 日 上午 10:48 
Thanks for the response. This helped me a lot.
< >
正在显示第 1 - 2 条,共 2 条留言
每页显示数: 1530 50