Skip to content

daily resets

Example
daily_resets:
  - id: "meow"
    condition: :none
    character_result: # ran for every chatacter that meets the condition
      - [:lose, :quality, "infamy", 1]
    vessel_result: # ran for every vessel if their _character_ meets the conditions (not the vessel. let me know if you want me to change this.)
      - [:gain, :quality, "age", 1]
    world_result: # (these always run regardless of condition, since they're a global thing and not per-character)
      - [:set, current, 'get_world_variable_with_locking("world", "num_daily_resets", 0)']
      - [:set_world_variable, world, num_daily_resets, 'current + 1']

it doesn't have to have all 3. it can just have e.g. character_result.

the conditions and results can be the same as it would be for an action.

a note, if the character isn't currently active, the daily reset will be delayed until they next log in (for efficiency). if they missed multiple daily resets, they will all be done at once, up to a limit.