[Script] Unlocking a city every 10 years

Discussions about scenario games and user-defined scripts.
Post Reply
Esoteric Rogue
Level 6 user
Posts: 413
Joined: Sun Nov 18, 2012 8:18 am

[Script] Unlocking a city every 10 years

Post by Esoteric Rogue »

I was reading an old topic (since I haven't been here in a few years) and saw a request for cities to unlock every 10 years.

Here it is. If you reply with any tweaks you might need, I'll see if I can't make it happen.

Unlocking a city every 10 years

Installation method #1: Copy the following into a text file and save it in your Documents\My Games\Capitalism Lab\SCRIPT\

or

Installation method #2: Download from google docs and save 3and7CitiesUnlock.txt to your \Documents\My Games\Capitalism Lab\SCRIPT

Code: Select all

[HEADER]
Title=3 Plus 7 Cities Unlocking
Description=You start with 3 cities available.  Every 10 years, a city will unlock for the player.


[ENVIRONMENT]
Number of Cities=10
Game Starting Year=2000


[IMPORTS]
Consumer Goods Seaports=0
Industrial Goods Seaports=0


[CITIES]

City=Paris
Population=500000
Real Wage Rate=32
Consumer Goods Seaports=2
Industrial Goods Seaports=0
//Locked=Yes

City=Rome
Population=585560
Real Wage Rate=30
Consumer Goods Seaports=1
Industrial Goods Seaports=0
//Locked=Yes

City=Berlin
Population=727115
Real Wage Rate=37
Consumer Goods Seaports=4
Industrial Goods Seaports=1
//Locked=Yes

City=London
Population=1813598
Real Wage Rate=32
Consumer Goods Seaports=2
Industrial Goods Seaports=0
Locked=Yes

City=Sao Paulo
Globe X=162
Globe Y=188
Population=2465093
Real Wage Rate=33
Consumer Goods Seaports=0
Industrial Goods Seaports=0
Locked=Yes

City=Moscow
Population=2505674
Real Wage Rate=33
Consumer Goods Seaports=1
Industrial Goods Seaports=0
Locked=Yes

City=Tokyo
Population=2870001
Real Wage Rate=44
Consumer Goods Seaports=1
Industrial Goods Seaports=2
Locked=Yes

City=Mumbai
Globe X=309
Globe Y=107
Population=3009792
Real Wage Rate=45
Consumer Goods Seaports=1
Industrial Goods Seaports=0
Locked=Yes

City=New York City
Globe X=125
Globe Y=70
Population=1819734
Real Wage Rate=100
Consumer Goods Seaports=3
Industrial Goods Seaports=4
Locked=Yes

City=Shanghai
Population=5000000
Real Wage Rate=83
Consumer Goods Seaports=4
Industrial Goods Seaports=3
Locked=Yes


[SPECIAL RULES]
Auto Save Interval Days=91
Auto Save Interval Minutes=10
Anti-exploitation Game Rules=On


[SUBGOAL]
Goal Title=Play for a while to unlock a city.
Goal Description=After some time, you will unlock a city.
Goal Achieved Text=You have gained access to London.
Goal Failed Text=You have failed to unlock the next city.
Goal Available Date=2010-01-01
[SUBGOAL VALUES]
Number of Controlled Companies=1
[SUBGOAL REWARDS]
Unlock City=London


[SUBGOAL]
Goal Title=Play for a while to unlock a city.
Goal Description=After some time, you will unlock a city.
Goal Achieved Text=You have gained access to Sao Paulo.
Goal Failed Text=You have failed to unlock the next city.
Goal Available Date=2020-01-01
[SUBGOAL VALUES]
Number of Controlled Companies=1
[SUBGOAL REWARDS]
Unlock City=Sao Paulo


[SUBGOAL]
Goal Title=Play for a while to unlock a city.
Goal Description=After some time, you will unlock a city.
Goal Achieved Text=You have gained access to Moscow.
Goal Failed Text=You have failed to unlock the next city.
Goal Available Date=2030-01-01
[SUBGOAL VALUES]
Number of Controlled Companies=1
[SUBGOAL REWARDS]
Unlock City=Moscow


[SUBGOAL]
Goal Title=Play for a while to unlock a city.
Goal Description=After some time, you will unlock a city.
Goal Achieved Text=You have gained access to Tokyo.
Goal Failed Text=You have failed to unlock the next city.
Goal Available Date=2040-01-01
[SUBGOAL VALUES]
Number of Controlled Companies=1
[SUBGOAL REWARDS]
Unlock City=Tokyo


[SUBGOAL]
Goal Title=Play for a while to unlock a city.
Goal Description=After some time, you will unlock a city.
Goal Achieved Text=You have gained access to Mumbai.
Goal Failed Text=You have failed to unlock the next city.
Goal Available Date=2050-01-01
[SUBGOAL VALUES]
Number of Controlled Companies=1
[SUBGOAL REWARDS]
Unlock City=Mumbai


[SUBGOAL]
Goal Title=Play for a while to unlock a city.
Goal Description=After some time, you will unlock a city.
Goal Achieved Text=You have gained access to New York City.
Goal Failed Text=You have failed to unlock the next city.
Goal Available Date=2060-01-01
[SUBGOAL VALUES]
Number of Controlled Companies=1
[SUBGOAL REWARDS]
Unlock City=New York City


[SUBGOAL]
Goal Title=Play for a while to unlock a city.
Goal Description=After some time, you will unlock a city.
Goal Achieved Text=You have gained access to Shanghai.
Goal Failed Text=You have failed to unlock the next city.
Goal Available Date=2070-01-01
[SUBGOAL VALUES]
Number of Controlled Companies=1
[SUBGOAL REWARDS]
Unlock City=Shanghai

User avatar
David
Community and Marketing Manager at Enlight
Posts: 9354
Joined: Sat Jul 03, 2010 1:42 pm
Has thanked: 17 times
Been thanked: 46 times

Re: [Script] Unlocking a city every 10 years

Post by David »

Nice work! This is a very creative use of the script system.
Junirtinerel21
Posts: 5
Joined: Sun Dec 01, 2019 3:31 am

Re: [Script] Unlocking a city every 10 years

Post by Junirtinerel21 »

HI!
I wonder if there is any script to define the products that will be imported into seaports at the beginning of the match.
MagnusA
Level 3 user
Posts: 56
Joined: Sun Oct 21, 2018 5:41 am

Re: [Script] Unlocking a city every 10 years

Post by MagnusA »

Yes. It is decribed in the script documentation. See theSite (link above) -> New Content -> User-Defined Scripts. I think you easaly find the right section for this particular script command.
Post Reply