Ok so I tried to make this event recently, but it seems HoI don't like it...
anyone can help me get it to work?
It's supposed to make the ai players change a slider setting each year or so.
anyone can help me get it to work?
It's supposed to make the ai players change a slider setting each year or so.
Code:
event = {
id = 1000000
random = yes
name = "ai"
desc = "ai_event"
style = 0
picture = "great_war_manifestion"
trigger = {
ai = yes
random = 99
}
offset = 365
action_a = {
name = "interventionism" #
ai_chance = 8
command = { type = interventionism value = 1 }#
}
action_b = {
name = "interventionism -1" #
ai_chance = 7
command = { type = interventionism value = -1 }#
}
action_c = {
name = "democratic" #
ai_chance = 7
command = { type = democratic value = 1 }#
}
action_d = {
name = "democratic -1" #
ai_chance = 8
command = { type = democratic value = -1 }#
}
action_e = {
name = "political left" #
ai_chance = 7
command = { type = political_left value = 1 }#
}
action_f = {
name = "political left -1" #
ai_chance = 7
command = { type = political_left value = -1 }#
}
action_g = {
name = "free market" #
ai_chance = 7
command = { type = free_market value = 1 }#
}
action_h = {
name = "free market -1" #
ai_chance = 7
command = { type = free_market value = -1 }#
}
action_i = {
name = "freedom" #
ai_chance = 7
command = { type = freedom value = 1 }#
}
action_j = {
name = "freedom -1" #
ai_chance = 7
command = { type = freedom value = -1 }#
}
action_k = {
name = "professional army" #
ai_chance = 7
command = { type = professional_army = 1 }#
}
action_l = {
name = "professional army -1" #
ai_chance = 7
command = { type = professional_army = -1 }#
}
action_m = {
name = "defense lobby" #
ai_chance = 7
command = { type = defense_lobby = 1 }#
}
action_n = {
name = "defense lobby -1" #
ai_chance = 7
command = { type = defense_lobby = -1 }#
}
}