Originally Posted by
j.a.luna
Great work Jurand! I also see "Berber help for moors" , is it the "almohad invasion" in Iberia? Also you think that for moors faction is possible make a "transition script" similar to fatimids-ayyubids-mamluks?
For moors would be Almoravids-Almohads-Benimerin/Nazaries
The almohads would have more berber and african troops from Morocco and North Africa.
it can be interpreted as the Almohad invasion, even though Almohads would rather disrupt political system of the Almoravides than help them.
Yes, transition of the Almoravids is possible, if I'd have some time in the future - or somebody else would do analyse Fatimid-Ayyubid-Mamluk script, check it, and then make a similar one for Maghrib.
Code:
;====================================================================================================== ;------- Berber Help for Moors -----------------------------------------------------------------------
;======================================================================================================
; by JoC 2021
;====================================================================================================== Berber Help for Moors
; historically, two major events occured: the Almoravid and the Almohad invasions
; the goal is to provide some help to Almoravids if they have problems
; script is a replica of Turcoman Help for Rum script
; it does not have a time limit
monitor_event PreFactionTurnStart FactionType moors
and I_NumberOfSettlements moors < 5
and RandomPercent < 20
and I_EventCounter Berber_Help_for_Moors < 1
log -------------------- Script : Berber Help for Moors (1) INFORMATION ---------------------
historic_event BERBER_HELP_MOORS
log -------------------- Script : Berber Help for Moors (2) TERMINATION AFTER ? -- to be modified in the future
if I_NumberOfSettlements moors < 1
terminate_monitor
end_if
log -------------------- Script : Berber Help for Moors (3) FUNDING FOR THE ARMIES -----------
if I_EventCounter temp_purse_moors < 1 ; in case it was increased somewhere else in the script
add_money moors 5000 ; in case the faction is in debts and would disband the armies outright
increment_kings_purse moors 5000 ; to ensure the AI doesn't disband the armies for some time
inc_event_counter temp_purse_moors 21 ; this counter goes down in another script and after 20 turns this additional income is removed
end_if
log -------------------- Script : Berber Help for Moors (4) SPAWN OF ARMIES ------------------
log --- Script start : Berber help for the Moors
if RandomPercent > 80
log ------ spawn Ali ibn_Zuhr
spawn_army
faction moors
character Ali ibn_Zuhr, named character, age 35, x 37, y 108
traits LoyaltyStarter 3 , MilitaryInclination 1 , Military_Edu 3 , GoodCommander 3 , ReligionStarter 1 , Handsome 7 , Intelligent 8
unit ME Bodyguard exp 4 armour 0 weapon_lvl 0
unit Berber Light Cavalry exp 7 armour 0 weapon_lvl 0
unit Berber Light Cavalry exp 4 armour 0 weapon_lvl 0
unit Berber Light Cavalry exp 1 armour 0 weapon_lvl 0
unit Berber Light Cavalry exp 0 armour 0 weapon_lvl 0
unit Lamtuna Spearmen exp 7 armour 0 weapon_lvl 0
unit Lamtuna Spearmen exp 4 armour 0 weapon_lvl 0
unit Lamtuna Spearmen exp 1 armour 0 weapon_lvl 0
unit Lamtuna Spearmen exp 1 armour 0 weapon_lvl 0
unit Lamtuna Spearmen exp 0 armour 0 weapon_lvl 0
unit Berber Javelinmen exp 4 armour 0 weapon_lvl 0
unit Berber Javelinmen exp 1 armour 0 weapon_lvl 0
unit Berber Archers exp 7 armour 0 weapon_lvl 0
unit Berber Archers exp 4 armour 0 weapon_lvl 0
unit Berber Archers exp 1 armour 0 weapon_lvl 0
unit Berber Archers exp 0 armour 0 weapon_lvl 0
end
inc_event_counter Berber_Help_for_Moors 30 ; it goes down in another script
end_if
if RandomPercent > 60
log ------ spawn Mujahid ibn_Sayyid
spawn_army
faction moors
character Mujahid ibn_Sayyid, named character, age 32, x 38, y 108
traits LoyaltyStarter 2 , MilitaryInclination 1 , Military_Edu 1 , GoodCommander 1 , ReligionStarter 1 , Handsome 6 , Intelligent 7 , GoodCavalryGeneral 2 , Miserly 2
unit ME Bodyguard exp 4 armour 0 weapon_lvl 0
unit Berber Light Cavalry exp 7 armour 0 weapon_lvl 0
unit Berber Light Cavalry exp 4 armour 0 weapon_lvl 0
unit Berber Light Cavalry exp 1 armour 0 weapon_lvl 0
unit Berber Light Cavalry exp 0 armour 0 weapon_lvl 0
unit Lamtuna Spearmen exp 4 armour 0 weapon_lvl 0
unit Lamtuna Spearmen exp 1 armour 0 weapon_lvl 0
unit Lamtuna Spearmen exp 1 armour 0 weapon_lvl 0
unit Lamtuna Spearmen exp 0 armour 0 weapon_lvl 0
unit Berber Javelinmen exp 4 armour 0 weapon_lvl 0
unit Berber Javelinmen exp 1 armour 0 weapon_lvl 0
unit Berber Archers exp 4 armour 0 weapon_lvl 0
unit Berber Archers exp 1 armour 0 weapon_lvl 0
unit Berber Archers exp 0 armour 0 weapon_lvl 0
end
inc_event_counter Berber_Help_for_Moors 30 ; it goes down in another script
end_if
if RandomPercent > 40
log ------ spawn Utba ibn_Ja_qub
spawn_army
faction moors
character Utba ibn_Ja_qub, named character, age 28, x 39, y 108
traits LoyaltyStarter 2 , MilitaryInclination 1 , Military_Edu 1 , StrategyDread 3 , ReligionStarter 1 , Handsome 5 , Intelligent 5 , GoodCavalryGeneral 2 , Generous 2
unit ME Bodyguard exp 4 armour 0 weapon_lvl 0
unit Berber Light Cavalry exp 4 armour 0 weapon_lvl 0
unit Berber Light Cavalry exp 1 armour 0 weapon_lvl 0
unit Berber Light Cavalry exp 0 armour 0 weapon_lvl 0
unit Lamtuna Spearmen exp 4 armour 0 weapon_lvl 0
unit Lamtuna Spearmen exp 1 armour 0 weapon_lvl 0
unit Lamtuna Spearmen exp 1 armour 0 weapon_lvl 0
unit Lamtuna Spearmen exp 0 armour 0 weapon_lvl 0
unit Berber Javelinmen exp 4 armour 0 weapon_lvl 0
unit Berber Javelinmen exp 1 armour 0 weapon_lvl 0
unit Berber Archers exp 4 armour 0 weapon_lvl 0
unit Berber Archers exp 1 armour 0 weapon_lvl 0
unit Berber Archers exp 0 armour 0 weapon_lvl 0
end
inc_event_counter Berber_Help_for_Moors 30 ; it goes down in another script
end_if
log -------------------- Script :Berber Help for Moors (5) CHANGES IN DIPLOMACY & ADDITIONAL UNREST ------------------
; ------ SEVILLA
if I_SettlementOwner Sevilla = portugal
console_command diplomatic_stance moors portugal war
add_settlement_turmoil Sevilla 8 ; set public unrest to 40% - it will decrease over time
end_if
if I_SettlementOwner Sevilla = spain
console_command diplomatic_stance moors spain war
add_settlement_turmoil Sevilla 8
end_if
if I_SettlementOwner Sevilla = aragon
console_command diplomatic_stance moors aragon war
add_settlement_turmoil Sevilla 8
end_if
if I_SettlementOwner Sevilla = france
console_command diplomatic_stance moors france war
add_settlement_turmoil Sevilla 8
end_if
if I_SettlementOwner Sevilla = england
console_command diplomatic_stance moors england war
add_settlement_turmoil Sevilla 8
end_if
if I_SettlementOwner Sevilla = hre
console_command diplomatic_stance moors hre war
add_settlement_turmoil Sevilla 8
end_if
if I_SettlementOwner Sevilla = pisa
console_command diplomatic_stance moors pisa war
add_settlement_turmoil Sevilla 8
end_if
if I_SettlementOwner Sevilla = sicily
console_command diplomatic_stance moors sicily war
add_settlement_turmoil Sevilla 8
end_if
; ------ GRANADA
if I_SettlementOwner Granada = portugal
console_command diplomatic_stance moors portugal war
add_settlement_turmoil Granada 8 ; set public unrest to 40% - it will decrease over time
end_if
if I_SettlementOwner Granada = spain
console_command diplomatic_stance moors spain war
add_settlement_turmoil Granada 8
end_if
if I_SettlementOwner Granada = aragon
console_command diplomatic_stance moors aragon war
add_settlement_turmoil Granada 8
end_if
if I_SettlementOwner Granada = france
console_command diplomatic_stance moors france war
add_settlement_turmoil Granada 8
end_if
if I_SettlementOwner Granada = england
console_command diplomatic_stance moors england war
add_settlement_turmoil Granada 8
end_if
if I_SettlementOwner Granada = hre
console_command diplomatic_stance moors hre war
add_settlement_turmoil Granada 8
end_if
if I_SettlementOwner Granada = pisa
console_command diplomatic_stance moors pisa war
add_settlement_turmoil Granada 8
end_if
if I_SettlementOwner Granada = sicily
console_command diplomatic_stance moors sicily war
add_settlement_turmoil Granada 8
end_if
; ------ CORDOBA
if I_SettlementOwner Cordoba = portugal
console_command diplomatic_stance moors portugal war
add_settlement_turmoil Cordoba 8 ; set public unrest to 40% - it will decrease over time
end_if
if I_SettlementOwner Cordoba = spain
console_command diplomatic_stance moors spain war
add_settlement_turmoil Cordoba 8
end_if
if I_SettlementOwner Cordoba = aragon
console_command diplomatic_stance moors aragon war
add_settlement_turmoil Cordoba 8
end_if
if I_SettlementOwner Cordoba = france
console_command diplomatic_stance moors france war
add_settlement_turmoil Cordoba 8
end_if
if I_SettlementOwner Cordoba = england
console_command diplomatic_stance moors england war
add_settlement_turmoil Cordoba 8
end_if
if I_SettlementOwner Cordoba = hre
console_command diplomatic_stance moors hre war
add_settlement_turmoil Cordoba 8
end_if
if I_SettlementOwner Cordoba = pisa
console_command diplomatic_stance moors pisa war
add_settlement_turmoil Cordoba 8
end_if
if I_SettlementOwner Cordoba = sicily
console_command diplomatic_stance moors sicily war
add_settlement_turmoil Cordoba 8
end_if
log ------ Script end
end_monitor