This thread will cover the Kingdoms new commands, you must run these scripts through the kingdoms .exe
change_settlement_name
Spoiler Alert, click show to read:
Spoiler Alert, click show to read:
Spoiler Alert, click show to read:
Spoiler Alert, click show to read:
You must first unpack the game and use Alpacas binary converter open (data/text Expanded) Expanded.txt and place this line in
{Istanbul}Istanbul
{Constantinople}Constantinople
Spoiler Alert, click show to read:
(It had taken me a while to find this out)
basic script
The script
monitor_conditions I_SettlementOwner Constantinople = turks
change_settlement_name Constantinople Istanbul
end_monitor
;-----------------------------------------------------------------
Advanced Script
declare_counter Constantinople_turks
monitor_conditions I_SettlementOwner Constantinople = turks
and I_CompareCounter Constantinople_turks = 0
set_counter Constantinople_turks 1
change_settlement_name Constantinople Istanbul
end_monitor
monitor_conditions I_SettlementOwner Constantinople = byzantium
and I_CompareCounter Constantinople_turks = 1
set_counter Constantinople_turks 0
change_settlement_name Constantinople Constantinople
end_monitor
Changing a factions religion during campaign based on that factions settlement count
new commands used:
set_religion
retire_characters
change_population_religion
Spoiler Alert, click show to read:
Accept Event
Spoiler Alert, click show to read:
Byzantine Empire Converted
Spoiler Alert, click show to read:
Byzantine Empire now on crusade
Spoiler Alert, click show to read:
copy this into the historic_events.txt
Spoiler Alert, click show to read:
Basic script
monitor_event FactionTurnStart
add_events
event counter byzantium_conversion_accepted
event counter byzantium_conversion_declined
date 0
end_add_events
terminate_monitor
end_monitor
monitor_event FactionTurnStart FactionType byzantium
if I_NumberOfSettlements byzantium < 10
historic_event byzantium_conversion true factions { byzantium, }
terminate_monitor
end_if
end_monitor
monitor_conditions I_EventCounter byzantium_conversion_accepted = 1
set_religion byzantium catholic
retire_characters byzantium priest
change_population_religion byzantium catholic 75 orthodox
terminate_monitor
end_monitor
send_character_off_map
Spoiler Alert, click show to read:
This script will sent a character (Hernan Cortes) the the new world and i found that you do not have to give the re-spawned character is old traits as these as saved my the character is set off the map.
Spoiler Alert, click show to read:
yes i know he is dead (I messed up mymod folder )
Spoiler Alert, click show to read:
Spoiler Alert, click show to read:
monitor_event FactionTurnStart FactionType spain
and I_TurnNumber = 2
;and IsFactionAIControlled
spawn_army
faction spain
character Hernan Cortes , named character, age 20, x 70, y 97, label conquistador
traits NaturalMilitarySkill 2, Loyal 2, GoodDefender 2
unit SE Bodyguard exp 3 armour 0 weapon_lvl 0
end
set_counter Hernan 1
terminate_monitor
end_monitor
monitor_conditions I_CompareCounter Hernan = 1
and I_TurnNumber = 3
send_character_off_map conquistador
terminate_monitor
end_monitor
monitor_event FactionTurnStart FactionType spain
and I_TurnNumber = 4
;and IsFactionAIControlled
spawn_army
faction spain
character Hernan Cortes , named character, age 22, x 7, y 72, label conquistador
traits NaturalMilitarySkill 2
unit SE Bodyguard exp 3 armour 0 weapon_lvl 0
end
terminate_monitor
end_monitor
Extended Script with option.
Spoiler Alert, click show to read:
Spoiler Alert, click show to read:
Spoiler Alert, click show to read:
monitor_event FactionTurnStart
add_events
event counter send_hernan_accepted
event counter send_hernan_declined
date 0
end_add_events
terminate_monitor
end_monitor
monitor_event FactionTurnStart FactionType spain
and I_TurnNumber = 2
;and IsFactionAIControlled
spawn_army
faction spain
character Hernan Cortes , named character, age 20, x 70, y 97, label conquistador
traits NaturalMilitarySkill 2, Loyal 2, GoodDefender 2
unit SE Bodyguard exp 3 armour 0 weapon_lvl 0
end
historic_event send_hernan true factions { spain, }
terminate_monitor
end_monitor
monitor_conditions I_EventCounter send_hernan_accepted = 1
send_character_off_map conquistador
terminate_monitor
end_monitor
monitor_conditions I_EventCounter send_hernan_accepted = 1
and I_TurnNumber = 4
spawn_army
faction spain
character Hernan Cortes , named character, age 22, x 7, y 72, label conquistador
traits NaturalMilitarySkill 2
unit SE Bodyguard exp 3 armour 0 weapon_lvl 0
end
terminate_monitor
end_monitor
and this into your historic_events.txt
Spoiler Alert, click show to read:
{SEND_HERNAN_TITLE} Explore The New World
{SEND_HERNAN_BODY} Will you send Hernan Cortes to the new world?
more to come...