PDA

View Full Version : City connection bonus


hachiroku
13-02-2006, 04:39 AM
Hello! I am looking to add in some semi-random city connection bonuses. I.E: such and such a city is willing to award $400,000 to the first company that connects to it.

I thought many maps had these kind of random city bonuses but for the life of me I can't find any in the events for any maps. Am I missing something here?

I would just like to have some of my far flung cities offer connection bonuses...

Ideas?

hachiroku
13-02-2006, 05:06 AM
BTW I forgot to mention that I seem to remember that when cities were offering a connection bonus they would have a star or asterisk beside their name...does that ring a bell for anyone?

13-02-2006, 05:47 AM
They had it in RT2 and they have it in RT3 as well, though it seems infrequent. Maybe it is related to difficulty level.

You could write one set of generic events, and any spare territories to make random offers for some of your key cities.

The triggering event would need:
- beginning of month, against all Territories
- test for territory number, eg TerritoryID>9 if #10 thru #23 are your city territories
- a test for Territory Variable [1,2,3, or 4]= 0
- selection of a random number

You could then run thru a series of events using a Territory Variable. As long as it never = 0 again, the event can`t trigger again for that territory, but you can use the same event line it to offers on behalf of the other city territories. When the offer is made, reset the Territory Variable to 1, and when the connection is achieved, reset the Territory Variable to 2.

You will also need a silent event to make sure existing connections are not rewarded. No chamber of commerce is going to offer money if a connection has already been made. So, right above the random offer event, have:

Conditions
- beginning of month, against all Territories
- Territory Variable = 0 and
- [a connection test] = true

Effects:
Territory Variable = 1, to the territory for which the condition is true

If this is all clear as mud, you can look at the greenhouse construction mission in Greening the Red Planet to see how territorial missions can be monitored and rewarded without you having to rewrite code for every single city.

hachiroku
13-02-2006, 02:39 PM
Thanks JayEff!

I guess I will probably have to go that route. But here is a wierd footnote:

I was playing though "Go West" to see if there was connection bonuses and sure enough towards the end of the game the town of "Keene" offered 200K to the first company to connect to it. After that the town name was shown as "Keene (200K)".

So I was hoping to use this sort of setup, however, after scouring the events for "Go West" there is no city connection bonus setup. I guess it must be something completely random and pre-built into the game...or why else would there be no events for it?

Lama
13-02-2006, 04:22 PM
You're right, it is completely random & hard-coded, and cannot be evented. That was the case in RT2, as well. In RT1, the second city you connected usually offered to buy stock in your company. Likewise random.