(24, 0, ti_once, #Checks every 24 hours, delay interval for trigger is 0 hours and the trigger launches only once.
[
(store_current_day, ":cur_day"), #Store the current day.
(eq, ":cur_day", 365), #Get the current day. Trigger check interval MUST be 24 hours for this.
],
[
(store_random_in_range, ":town_no", towns_begin,towns_end), #Gets 1 random town from the given list.
(set_spawn_radius, 4),
(try_for_range, ":unused", 0, 1), # spawn one party
(spawn_around_party, ":town_no", "pt_barbarians"),
(party_set_ai_behavior,reg(2),ai_bhvr_patrol_location),
(display_message, "@Rumours from passing traveller - A large band of barbarians led by Warlord Perus have landed near (town_no)",0x00FF00),
(try_end)]),