Sly 2:Game state: Difference between revisions
→Tasks: Improved format and layout
TheOnlyZac (talk | contribs) (Created page for game mechanic) |
TheOnlyZac (talk | contribs) (→Tasks: Improved format and layout) |
||
Line 2:
== Tasks ==
The DAG is a directed graph of nodes, where each node is called a "task". For instance,
=== Task States ===
Each task has a ''state'', which is one of the following:
* {{color|red|Unavailable}}
* {{color|dodgerblue|Available}}
* {{color|limegreen|Complete}}
* {{color|gray|Final}}
All tasks in the DAG start off as {{color|red|Unavailable}}. A task becomes {{color|dodgerblue|Available}} once all of its predecessors are {{color|limegreen|Complete}}. Tasks become {{color|limegreen|Complete}} through conditions being met in the level scripts, and tasks become {{color|gray|Final}} through missions.
=== State Forcing ===
At all times, every ''before'' an Available task must be Complete or Final. Additionally, every task ''after'' an Available task must be unavailable. It is possible to "force" a task to a particular state, which propagates throughout the DAG to ensure those conditions are always met.
Tasks in the node can be grouped into ''missions''. These missions usually refer to particular jobs in the game's story. For instance,
If a task belongs to a mission and the "exit" task in that mission is Completed, then all the tasks in that job become Final.
|