Skip to content

worldtime

Daedalus1400 edited this page May 17, 2017 · 3 revisions

Description:

The worldtime condition checks how many in game days have passed since world start.

Added in release version 0.2.0

Arguments:

type

Must be "worldtime".

comparison

Accepts a string. Valid values are "<", and ">".

value

Accepts a number. Number of days since world start.

Example Usage:

The following example checks whether more than 2 in game days (~40 minutes) have passed in the world:

{"type": "worldtime", "comparison": ">", "value": 2}

This is will evaluate as:

world.getTotalWorldTime() > (2 * 24000);

Clone this wiki locally