So, I created a event by reverse engineering events already there I came up with this:
I localized it afterwards. Then to see if it worked I went into a new game to see if it would trigger and it never did. Does anyone know why its not working?
I don't know if this helps but here's what I localized:
rome_test_event.1.t:0 "The New Recruits"
rome_test_event.1.desc:0 "Rome has gotten a new contingent of troops"
rome_test_event.1.a:0 "Very Good"
Code:
namespace = rome_test_event
rome_test_event.1 = {
type = country_event
title = "rome_test_event.1.t"
desc = "rome_test_event.1.desc"
picture = romans_marching
goto_location = root
trigger = {
tag = ROM
NOT = {
has_variable = rome_test_100_flag
}
}
immediate = {
set_variable = {
name = rome_test_100_flag
}
}
option = {
name = "rome_test_event.1.a"
ai_chance = {
factor = 100
}
C:ROM = {
create_unit = {
name = "Roman Army 1"
location = p:2
while = {
count = 20
add_subunit = heavy_infantry
}
while = {
count = 5
add_subunit = horse_archers
}
while = {
count = 5
add_subunit = heavy_cavalry
}
}
}
}
}
I localized it afterwards. Then to see if it worked I went into a new game to see if it would trigger and it never did. Does anyone know why its not working?
I don't know if this helps but here's what I localized:
rome_test_event.1.t:0 "The New Recruits"
rome_test_event.1.desc:0 "Rome has gotten a new contingent of troops"
rome_test_event.1.a:0 "Very Good"