declare_counter Epeirote_Invitation
monitor_event SettlementTurnStart SettlementName Sulek
and SettlementBuildingExists = hinterland_victory
set_counter Epeirote_Invitation 3
end_monitor
;AEDUI
monitor_event FactionTurnStart FactionType gauls
and I_LocalFaction gauls
and I_CompareCounter Epeirote_Invitation != 3
and I_SettlementOwner Vindobona != gauls
and I_SettlementOwner Ak_Ink != gauls
and I_SettlementOwner Vindobona != thrace
and I_SettlementOwner Ak_Ink != thrace
and I_NumberOfSettlements thrace > 0
and not DiplomaticStanceFromFaction thrace < Suspicious ; comment the rest of the conditions out to test the script immediately
and I_TurnNumber > 35
and I_TurnNumber < 210
and RandomPercent < 5
console_command create_building Sulek hinterland_victory
advance_advice_thread Epeirote_Invitation_Thread
select_ui_element advisor_portrait_button
simulate_mouse_click lclick down
simulate_mouse_click lclick up
set_counter Epeirote_Invitation 1
end_monitor
; If player accepts, force the alliance, spawn Skepas and Moses and set counter
monitor_event ButtonPressed ButtonPressed advisor_portrait_button
and I_CompareCounter Epeirote_Invitation = 1
and I_LocalFaction gauls
console_command diplomatic_stance gauls thrace allied
spawn_character slave Moses, diplomat, command 0, influence 0, management 0, subterfuge 0, age 59, , x 57, y 5
spawn_army
faction thrace
character Skepas, named character, command 0, influence 0, management 0, subterfuge 0, age 20, x 57, y 5
unit greek infantry thorakitai, exp 4 armour 0 weapon_lvl 0
unit generic siege 30mina, exp 0 armour 0 weapon_lvl 0
unit illyrian infantry taxeis illyrioi, exp 0 armour 0 weapon_lvl 0
unit illyrian infantry taxeis illyrioi, exp 0 armour 0 weapon_lvl 0
unit illyrian infantry taxeis illyrioi, exp 0 armour 0 weapon_lvl 0
unit hellenistic infantry illyrian thureophoroi, exp 0 armour 0 weapon_lvl 0
unit greek missile sphendenotai, exp 0 armour 0 weapon_lvl 0
unit greek missile sphendenotai, exp 0 armour 0 weapon_lvl 0
end
set_counter Epeirote_Invitation 3
end_monitor
; If player rejects prevent event from recurring
monitor_event ButtonPressed ButtonPressed advisor_dismiss_button
and I_CompareCounter Epeirote_Invitation = 1
and I_LocalFaction gauls
set_counter Epeirote_Invitation 3
end_monitor
; When the player advances towards Danube bring Epeirote troops to area
; and move them to back up sieges
monitor_event FactionTurnEnd FactionType thrace
and I_CharacterTypeNearTile slave diplomat, 1 57,5
and I_FactionNearTile gauls 10 111,154
; and DiplomaticStanceFromFaction gauls = Allied
if not I_SettlementOwner Vindobona = gauls
and not I_SettlementOwner Ak_Ink = gauls
console_command move_character "Skepas" 114,152
end_if
if I_FactionNearTile gauls 2 111,161
and I_SettlementOwner Vindobona != gauls
console_command move_character "Skepas" 112,161
if I_SettlementOwner Vindobona = slave
console_command create_unit Vindobona "celtic infantry gaeroas" 1
console_command create_unit Vindobona "hellenistic infantry illyrian thureophoroi" 2
console_command create_unit Vindobona "dacian infantry drapanai" 1
end_if
end_if
if I_FactionNearTile gauls 3 118,157
and I_SettlementOwner Ak_Ink != gauls
console_command move_character "Skepas" 119,156
if I_SettlementOwner Ak_Ink = slave
console_command create_unit Ak_Ink "celtic infantry gaeroas" 2
console_command create_unit Ak_Ink "hellenistic infantry illyrian thureophoroi" 2
console_command create_unit Ak_Ink "dacian infantry drapanai" 1
end_if
end_if
if I_SettlementOwner Ak_Ink = gauls
and I_SettlementOwner Vindobona = gauls
monitor_event FactionTurnStart LocalFaction
advance_advice_thread Epeirote_Invitation_End_Gallic_Thread
console_command kill_character "Moses"
terminate_monitor
end_monitor
while I_CharacterTypeNearTile slave diplomat, 1 57,5
end_while
end_if
end_monitor
Bookmarks