Code:
monitor_event FactionTurnEnd FactionType slave
; Pahlava
if I_IsFactionAIControlled f_parthia ; AI only
and I_CompareCounter ParthiaAtPeace > 0 ; faction is dead
and I_EventCounter ParthiaRespawnCooldown < 1 ; hasn't spawned recently
generate_random_counter ParthiaReborn 1 50
if I_EventCounter ParthiaReborn < 2 ; 2% chance
spawn_army
faction f_parthia
character random_name, named character, age 30, x 375, y 177, family
traits ParthiaDaha 3 , EthnoDetermined 1 , NaturalIntelligence 4 , NaturalCharisma 4 , NaturalEnergy 3 , Selflessness 3 , Temperament 2 , LoyaltyLevel 4 , TurnsAlive 3, Nomad 1, CommandExperience 4 , HaleAndHearty 2 , GoodCavalryGeneral 1 , GoodLeader 1 , PublicFaith 1
unit steppe cavalry parthian early general exp 4 armour 0 weapon_lvl 0
unit steppe cavalry parthian cataphracts exp 1 armour 0 weapon_lvl 0
unit steppe cavalry dahae horse archers exp 1 armour 0 weapon_lvl 0
unit steppe cavalry dahae horse archers exp 1 armour 0 weapon_lvl 0
unit steppe cavalry dahae horse archers exp 0 armour 0 weapon_lvl 0
unit steppe cavalry dahae horse archers exp 0 armour 0 weapon_lvl 0
unit steppe cavalry parthian horse archers exp 1 armour 0 weapon_lvl 0
unit steppe cavalry parthian horse archers exp 1 armour 0 weapon_lvl 0
unit steppe cavalry parthian horse archers exp 0 armour 0 weapon_lvl 0
unit steppe cavalry parthian horse archers exp 0 armour 0 weapon_lvl 0
unit steppe cavalry dahae skirmishers exp 1 armour 0 weapon_lvl 0
unit steppe cavalry dahae skirmishers exp 1 armour 0 weapon_lvl 0
unit steppe cavalry dahae skirmishers exp 0 armour 0 weapon_lvl 0
unit steppe cavalry dahae skirmishers exp 0 armour 0 weapon_lvl 0
unit steppe infantry gundi nizagan exp 1 armour 0 weapon_lvl 0
unit steppe infantry gundi nizagan exp 0 armour 0 weapon_lvl 0
unit steppe infantry parthian archers exp 1 armour 0 weapon_lvl 0
unit steppe infantry parthian archers exp 0 armour 0 weapon_lvl 0
end
spawn_army
faction f_parthia
character random_name, named character, age 26, x 375, y 172, family
traits ParthiaDaha 3 , EthnoDetermined 1 , NaturalIntelligence 3 , NaturalCharisma 5 , NaturalEnergy 4 , Selflessness 2 , Temperament 4 , LoyaltyLevel 5 , TurnsAlive 2, Nomad 1, CommandExperience 3 , HaleAndHearty 2 , GoodCavalryGeneral 1
unit steppe cavalry parthian early general exp 4 armour 0 weapon_lvl 0
unit steppe cavalry parthian cataphracts exp 1 armour 0 weapon_lvl 0
unit steppe cavalry dahae horse archers exp 1 armour 0 weapon_lvl 0
unit steppe cavalry dahae horse archers exp 1 armour 0 weapon_lvl 0
unit steppe cavalry dahae horse archers exp 0 armour 0 weapon_lvl 0
unit steppe cavalry dahae horse archers exp 0 armour 0 weapon_lvl 0
unit steppe cavalry parthian horse archers exp 1 armour 0 weapon_lvl 0
unit steppe cavalry parthian horse archers exp 1 armour 0 weapon_lvl 0
unit steppe cavalry parthian horse archers exp 0 armour 0 weapon_lvl 0
unit steppe cavalry parthian horse archers exp 0 armour 0 weapon_lvl 0
unit steppe cavalry dahae skirmishers exp 1 armour 0 weapon_lvl 0
unit steppe cavalry dahae skirmishers exp 1 armour 0 weapon_lvl 0
unit steppe cavalry dahae skirmishers exp 0 armour 0 weapon_lvl 0
unit steppe cavalry dahae skirmishers exp 0 armour 0 weapon_lvl 0
end
spawn_army
faction f_parthia
character random_name, named character, age 26, x 371, y 172, family
traits ParthiaDaha 3 , EthnoDetermined 1 , NaturalIntelligence 2 , NaturalCharisma 3 , NaturalEnergy 5 , Selflessness 4 , Temperament 3 , LoyaltyLevel 4 , TurnsAlive 2, Nomad 1, CommandExperience 3 , HaleAndHearty 2 , GoodCavalryGeneral 1
unit steppe cavalry parthian early general exp 4 armour 0 weapon_lvl 0
unit steppe cavalry parthian cataphracts exp 1 armour 0 weapon_lvl 0
unit steppe cavalry dahae horse archers exp 1 armour 0 weapon_lvl 0
unit steppe cavalry dahae horse archers exp 1 armour 0 weapon_lvl 0
unit steppe cavalry dahae horse archers exp 0 armour 0 weapon_lvl 0
unit steppe cavalry dahae horse archers exp 0 armour 0 weapon_lvl 0
unit steppe cavalry parthian horse archers exp 1 armour 0 weapon_lvl 0
unit steppe cavalry parthian horse archers exp 1 armour 0 weapon_lvl 0
unit steppe cavalry parthian horse archers exp 0 armour 0 weapon_lvl 0
unit steppe cavalry parthian horse archers exp 0 armour 0 weapon_lvl 0
unit steppe cavalry dahae skirmishers exp 1 armour 0 weapon_lvl 0
unit steppe cavalry dahae skirmishers exp 1 armour 0 weapon_lvl 0
unit steppe cavalry dahae skirmishers exp 0 armour 0 weapon_lvl 0
unit steppe cavalry dahae skirmishers exp 0 armour 0 weapon_lvl 0
end
inc_counter unitlimit_f_parthia 46
historic_event HE_PARTHIA_REBORN
set_counter ParthiaAtPeace 0
end_if
end_if
; Sweboz
; Saka
; Sauromatae
; Numidia
; Lugia
; Boii
; Nabatu
; Cooldown timers
if I_EventCounter ParthiaRebornCooldown > 0
inc_event_counter ParthiaRebornCooldown -1
end_if
if I_EventCounter SwebozRebornCooldown > 0
inc_event_counter SwebozRebornCooldown -1
end_if
if I_EventCounter SakaRebornCooldown > 0
inc_event_counter SakaRebornCooldown -1
end_if
if I_EventCounter SauromataeRebornCooldown > 0
inc_event_counter SauromataeRebornCooldown -1
end_if
if I_EventCounter NumidiaRebornCooldown > 0
inc_event_counter NumidiaRebornCooldown -1
end_if
if I_EventCounter LugiaRebornCooldown > 0
inc_event_counter LugiaRebornCooldown -1
end_if
if I_EventCounter BoiiRebornCooldown > 0
inc_event_counter BoiiRebornCooldown -1
end_if
if I_EventCounter NabatuRebornCooldown > 0
inc_event_counter NabatuRebornCooldown -1
end_if
end_monitor