Last night Axelius and I talked about why my two prescripted empires weren't working when both mods were enabled at the same time.
The pre-scripted empires were setup such that when you start playing as one of them, they would fire on_action_start and be granted certain technology.
Example
But what happens when you have multiple separate mods using on_action triggers is that the one which is loaded last, is the only one working. This also, as per Aexlius' testing, seem to affect default on_action events, that is mods are overwriting the default on_action events.
Something you can do instead is avoid using on_actions all together, and set up events using country_event
Example
Alternatively, if you don't want the event to fire on the first consecutive day, you can insert
And define a value greater than 0, it should trigger after that many subsequent days have passed since start.
Thanks to Axelius and Warial and others whom spend their time answering questions and helping out other modders. It's an uphill battle when there is so little information available on how to properly set up mods.
The pre-scripted empires were setup such that when you start playing as one of them, they would fire on_action_start and be granted certain technology.
Example
Code:
on_game_start={
events = {
synthetics_tech.1
}
}
Code:
namespace = synthetics_tech
#event = {
id = synthetics_tech.1
hide_window = yes
is_triggered_only = yes
immediate = {
every_country = {
limit = { has_country_flag = synthetics }
give_technology = tech_robotic_workers
give_technology = tech_droid_workers
give_technology = tech_synthetic_workers
give_technology = tech_synthetic_leaders
}
}
}
Something you can do instead is avoid using on_actions all together, and set up events using country_event
Example
Code:
country_event = {
id = synthetics_tech.1
hide_window = yes
fire_only_once = yes
trigger = {has_country_flag = synthetics}
immediate = {
give_technology = tech_robotic_workers
give_technology = tech_droid_workers
give_technology = tech_synthetic_workers
give_technology = tech_synthetic_leaders
}
}
Alternatively, if you don't want the event to fire on the first consecutive day, you can insert
Code:
mean_time_to_happen = {days = 0}
And define a value greater than 0, it should trigger after that many subsequent days have passed since start.
Thanks to Axelius and Warial and others whom spend their time answering questions and helping out other modders. It's an uphill battle when there is so little information available on how to properly set up mods.