is this event scripting correct?
I have tested it for a 5 years period with no result.
[post=5663501]and same as [/post]
I have tested it for a 5 years period with no result.
Code:
#############################
# Roman Legio to BYZA #
#############################
# Legion I,
character_event = {
id = 211202
picture = "event_mercenaries"
trigger = {
condition = { type = ruler }
condition = { type = gold value = 100 }
condition = { type = prestige value = 50 }
condition = { type = not value = { type = capital condition = { type = is_besieged } } }
}
mean_time_to_happen = {
months = 200
modifier = {
condition = { type = ai }
condition = { type = difficulty value = 2 }
factor = 0.9
}
modifier = {
condition = { type = ai }
condition = { type = difficulty value = 3 }
factor = 0.8
}
modifier = {
condition = { type = ai }
condition = { type = difficulty value = 4 }
factor = 0.75
}
modifier = {
condition = { type = not value = { type = prestige value = 100 } }
factor = 2.0
}
modifier = {
condition = { type = gold value = 1000 }
factor = 0.8
}
modifier = {
condition = { type = culture value = byzantine }
factor = 0.5
}
modifier = {
condition = { type = title value = BYZA }
factor = 0.1 #reduced to fire the event
}
modifier = {
condition = { type = not value = { type = title value = BYZA } }
factor = 4.0
}
modifier = {
condition = { type = atwar }
factor = 0.1 #reduced to fire the event
}
}
action_a = {#Let us raise a new Roman Legion!
ai_chance = 70
effect = { type = gold value = -100 }
effect = { type = add_regiment
tech_prov = 64
culture = byzantine
mercenaries = yes
strength = {
light_cav = 200
heavy_cav = 50
heavy_inf = 3000
archers = 75
pikemen = 25
militia = 150
}
}
}
action_b = {#We have enough legions, more would means more taxes!
ai_chance = 30
}
}
[post=5663501]and same as [/post]