I made a working script for re-emerging factions and made a test with Arverni.
This is how it went:
-conquered their only province and kill all their characters.
-got a message 'Faction destroyed' and 'People in flight' although they don't exist on map.
-they emerged when their former capital became unhappy
Will I encounter any CTD's or game-mechanic errors because of this ?
Also... when adding traits, should I add 'Factionleader' trait ?
- campaign_script.txt:
;----------------------------------------------------------------------------------------------------------------f_arverni----------------------------------
declare_counter arvernirebel
set_counter arvernirebel 0
declare_counter arverniemerge
set_counter arverniemerge 0
monitor_event SettlementTurnStart SettlementName sett_024
and I_NumberOfSettlements f_arverni < 1
and SettlementLoyaltyLevel < loyalty_content
and I_CompareCounter arvernirebel = 0
and I_TurnNumber > 0
set_counter arvernirebel 1
end_monitor
monitor_event SettlementTurnStart SettlementName sett_025
and I_NumberOfSettlements f_arverni < 1
and SettlementLoyaltyLevel < loyalty_content
and I_CompareCounter arvernirebel = 0
and I_TurnNumber > 0
set_counter arvernirebel 1
end_monitor
monitor_event SettlementTurnStart SettlementName sett_026
and I_NumberOfSettlements f_arverni < 1
and SettlementLoyaltyLevel < loyalty_content
and I_CompareCounter arvernirebel = 0
and I_TurnNumber > 0
set_counter arvernirebel 1
end_monitor
;--------------------------------------------------------------Region Aruernselua
monitor_event FactionTurnStart FactionType slave
and I_NumberOfSettlements f_arverni < 1
and I_CompareCounter arvernirebel = 1
and I_CompareCounter arverniemerge = 0
and RandomPercent < 90
spawn_army
faction f_arverni
character random_name, named character, x 87, y 196, family
traits NaturalIntelligence 2 , NaturalCharisma 2 , NaturalEnergy 2 , Temperament 2 , Selflessness 2 , LoyaltyLevel 4 , CelticArverni 1 , EthnoDetermined 1 , GoodLeader 1 , PoliticsSkill 1 , AncillariesAvailable 1 , FirstBorn 1
unit celtic cavalry donno eporedoi exp 3 armour 0 weapon_lvl 0
unit celtic cavalry leuce epos exp 3 armour 0 weapon_lvl 0
unit celtic cavalry leuce epos exp 3 armour 0 weapon_lvl 0
unit celtic cavalry curepos exp 3 armour 0 weapon_lvl 0
unit celtic cavalry curepos exp 3 armour 0 weapon_lvl 0
unit celtic infantry bataroas exp 3 armour 0 weapon_lvl 0
unit celtic infantry bataroas exp 3 armour 0 weapon_lvl 0
unit celtic infantry bataroas exp 3 armour 0 weapon_lvl 0
unit celtic infantry bataroas exp 3 armour 0 weapon_lvl 0
unit celtic infantry bataroas exp 3 armour 0 weapon_lvl 0
unit celtic infantry bataroas exp 3 armour 0 weapon_lvl 0
unit celtic infantry solduros exp 3 armour 0 weapon_lvl 0
unit celtic infantry solduros exp 3 armour 0 weapon_lvl 0
unit celtic infantry solduros exp 3 armour 0 weapon_lvl 0
unit celtic infantry gaesatae exp 3 armour 0 weapon_lvl 0
unit celtic infantry gaesatae exp 3 armour 0 weapon_lvl 0
unit celtic infantry gaesatae exp 3 armour 0 weapon_lvl 0
unit celtic infantry iaosatae exp 3 armour 0 weapon_lvl 0
unit celtic infantry iaosatae exp 3 armour 0 weapon_lvl 0
end
set_counter arverniemerge 1
add_money f_arverni 30000
end_monitor
monitor_event FactionTurnStart FactionType slave
and I_NumberOfSettlements f_arverni >= 1
set_counter arverniemerge 0
set_counter arvernirebel 0
end_monitor
;--------------------------------------------------------------------------------------------------------------------------------------------------
- descr_sm_factions.txt
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
faction f_arverni, spawned_on_event
culture cul_5
religion rel_e
symbol models_strat/symbol_f_arverni.CAS
rebel_symbol models_strat/symbol_f_arverni_rebel.CAS
primary_colour red 113, green 125, blue 81
secondary_colour red 113, green 125, blue 81
loading_logo loading_screen/symbols/symbol128_f_arverni.tga
standard_index 17
logo_index FACTION_LOGO_F_ARVERNI
small_logo_index SMALL_FACTION_LOGO_F_ARVERNI
triumph_value 5
custom_battle_availability yes
horde_min_units 10
horde_max_units 20
horde_max_units_reduction_every_horde 10
horde_unit_per_settlement_population 250
horde_min_named_characters 2
horde_max_percent_army_stack 80
horde_disband_percent_on_settlement_capture 0
horde_unit celtic cavalry donno eporedoi
horde_unit celtic cavalry leuce epos
horde_unit celtic cavalry curepos
horde_unit celtic infantry bataroas
horde_unit celtic infantry solduros
horde_unit celtic infantry gaesatae
horde_unit celtic infantry iaosatae
can_sap yes
prefers_naval_invasions yes
can_have_princess no
has_family_tree teutonic
;;can_build_siege_towers no




Reply With Quote


...................................................













