Skip to content

Weekly Event Framework

Alexedishi edited this page Jul 27, 2026 · 2 revisions

This is a framework to allow for a weekly firing script event on any day of the week, without a hidden journal entry being used.

To use:

  1. Create a new on_monthly_pulse or reuse an existing one.
  2. Set it up like in com_weekly_on_action.txt:
  3. Add your own on_action to the on_monthly_pulse from step 1.
  4. Add the com_run_weekly_event_country_effect into this new on_action and set the two parameters. Example: com_run_weekly_event_country_effect = { weekday = 1 on_action = another_on_action }. Weekday decides the weekday ranging from 0 (Sunday) to 6 (Saturday).
  5. Define your new on_action (another_on_action in the example in 4.)

Clone this wiki locally