Forward Model
- Forward Model
Contais the definition of the forwardmodel.
- YAML Key
ForwardModel
- Example
ForwardModel:
WinConditions: #If true: Player -> win game
UnitAlive:
- "HasEntity(Source, Wonder)"
LoseConditions: #If true: Player -> cant play
HasResource:
- "ResourceLowerEqual(Source.Food, 0)"
Trigger:
#Global resource compsumption
- OnTick:
Type: Entity
ValidTargets: Buildings
Conditions:
- "IsPlayerEntity(Source)"
Effects:
- "ModifyResource(Source.Player.Food, -1)"
- Properties
Property |
Required |
Data type |
Options |
Definition |
|
|
Defines the list of conditions to win the game. |
||
|
|
Defines the list of conditions to lose the game. |
||
|
|
Defines the list of on tick actions. |