Tasks System - UO-DFM/SimCityOttawa-Documentation GitHub Wiki
Tasks
Getting a task
Players can be served up to a maximum of 5 tasks (which can be easily changed in the code) within an in-game week. Whether or not a task will be served also depends on if the player was on the app or not.
During active game play, the player will have a chance at being served a task every minute that passes in-game. The probably starts really low (can be easily changed) and increases exponentially per minute (at a small base value which can easily be changed).
If the player was offline (i.e. not playing the game), the game will do the calculation of how much in-game time should have passed and will serve the appropriate amount of tasks to the player.
I stopped getting tasks?
Currently, players can only receive a given task at most once every play-through. If the player has stopped receiving tasks, this is likely the reason.
Options for tasks
Players currently only have 2 options for resolving a task. They can either decline the task, or they can attempt to resolve the conflict that the task would entail.
If the player chooses to resolve the conflict, they will be prompted with the conflict resolution menu where they will find out the exact details of the conflict. From here, they can change their mind and decline the task if they do not like the trade-off made in the resolution. Otherwise, they can proceed to resolve the conflict.
Declining the task will incur any penalties immediately. Accepting a task by resolving a conflict however, has no impact on the player's score until the event has occurred (ie. the date of the has passed).
Expiry
Tasks are time-sensitive as they have an associated expiry time. After the in-game date passes the expiry date (which is on the task itself during selection), the player is assumed to have declined the event and incurs any penalty immediately.