
ActionModifié dans cette version
Rendre Disponible au recrutement
Rendons une de nos Unités disponible au recrutement par un Pays étranger.
Définitionin_game/common/generic_actions/make_unit_available_for_hire.txt:1
2type = owncountry
4potential = {
5scope:actor = {
6at_war = no
7regular_army_size > 0
}
}
11allow = {
}
14ai_prerequisite = {
15at_war = no
16regular_army_size > 2
}
19ai_tick = never
20ai_tick_frequency = 90
22automation_tick = daily
23automation_tick_frequency = 20
25select_trigger = {
26looking_for_a = unit
27source = actor
28target_flag = target
29name = "make_unit_available_for_hire_select_unit" Choisissez une Unité à rendre disponible au recrutement :
30none_available_msg_key = "make_unit_available_for_hire_no_units"
31pre_evaluation_sort_value = {
34value = "hire_price(2|24)"
}
36pre_evaluation_number_to_evaluate_fully = 5
37column = {
38data = name
}
40column = {
41data = unit_location
}
43visible = {
44or = {
45is_army = no
46owner = {
47not = {
47country_type = army
}
}
}
50or = {
51is_navy = no
52owner = {
53not = {
53country_type = navy
}
}
}
56has_mercenaries = no
57has_levies = no
60trigger_if = {
61limit = {
61exists = leader
}
62leader = {
62is_ruler = no
}
}
}
}
67select_trigger = {
68looking_for_a = value
69target_flag = target_1
70name = "make_unit_available_for_hire_select_cost_multiplier" Choisissez leur coût de recrutement :
71min = 0
72max = 5
73step = 0.05
74default = 1
75ai_override_value = 2
}
78select_trigger = {
79looking_for_a = value
80target_flag = target_2
81name = "make_unit_available_for_hire_select_duration" Choisissez le nombre de mois de recrutement :
82min = 1
84step = 1
}
89effect = {
90if = {
91limit = {
92exists = scope:target
}
94scope:target = {
95make_unit_available_for_hire = {
96cost_multiplier = scope:target_1
97months = scope:target_2
98save_scope_as = merc_for_hire
}
}
}
}
104ai_will_do = {
106value = {
107scope:target = {
108value = "hire_price(scope:target_1|scope:target_2)"
109save_temporary_value_as = total_hire_price
}
}
114value = -500
119add = {
120value = scope:total_hire_price
121divide = 50
}
125add = {
126value = scope:target_2
127multiply = 0.02
}
}