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

WinConditions

false

map

Defines the list of conditions to win the game.

LoseConditions

false

map

Defines the list of conditions to lose the game.

Trigger

false

map

Defines the list of on tick actions.