Methods of transport for KAUST elementry school students in Cities: Skylines¶
Preface¶
Citizens in Cities: Skylines mainly have homes and a workplaces and they travel to and from them at the start of the daytime and at the end of the day. these places are determined for each citizen based on their attractiveness (a variable determined by the game for each building).
When it's time for a citizen to travel from one place to another, a method of transport is chosen randomly based on fixed probabilities defined in the game.
In this document we focus on how the method of transport is determined for elementry school children.
Method of transport¶
When a citizen is trying to move to some place the game tries to assign a vheicle to transport the citizen.
for each age group there are some fixed probabilities for choosing the method of transport randomly.
Random determination¶
The game has some preset value representing the probability of each vheicle (between 0 and 100).
The game generates a random number between 0 and 100 and the method is selected if the generated random number is less than or equal the probability value.
Procedure:¶
-
First the game trys to determine if the citizen will go by car with probability P_CAR which is a fixed probability for each age group.
-
If the citizen won't go by car the game determines if they will go by Taxi with probability P_TAXI.
-
If the citizen also won't go by Taxi, the game trys to determine if they will go by bike with probability P_BIKE.
-
If it is determined that the citizen will go by car, the game trys to determine if it will be a regular or electric car using another probability P_ELECTRIC_CAR.
Probabilites¶
-
Car probabilites for each age group:
- Child => 0
- Teen => 5
- Young => 15
- Adult => 20
- Senior => 10
-
Taxi probabilities (In case of no private car)
- Child => 0
- Teen => 2
- Young => 2
- Adult => 4
- Senior => 6
-
Electric car probabilities (in case of private car):
- Citizen.AgeGroup.Child => 5,
- Citizen.AgeGroup.Teen => 10,
- Citizen.AgeGroup.Young => 20,
- Citizen.AgeGroup.Adult => 5,
- Citizen.AgeGroup.Senior => 5
-
Bike probabilities (Districts that don't encourage biking):
- Citizen.AgeGroup.Child => 40,
- Citizen.AgeGroup.Teen => 30,
- Citizen.AgeGroup.Young => 20,
- Citizen.AgeGroup.Adult => 10,
- Citizen.AgeGroup.Senior => 0
-
Bike probabilities (Districts that encourage biking):
- Citizen.AgeGroup.Child => 50,
- Citizen.AgeGroup.Teen => 40,
- Citizen.AgeGroup.Young => 30,
- Citizen.AgeGroup.Adult => 20,
- Citizen.AgeGroup.Senior => 10
Overall picture¶
The previous procedure is called once per simulation frame to find a suitable vheicle for the citizen, if no vehicle is found or there is no valid path to the destination using that particular vehicle the game trys to fall back to public transport, otherwise the game destroys the instance of that citizen.