Skip to content

event onTime

This event is triggered each time when game time minute passes.

Original: onExit

Parameters

  • dict kwargs:
    • int day: the current ingame day.
    • int hour: the current ingame hour.
    • int min: the current ingame minutes.

Usage

import pyg2o as g2o

@g2o.event('onTime')
async def onTickEvt(day, hour, min):
    print(f'Current time: Day {day}, Hour {hour}, Min {mins}')