
Action
Prepare the Defenses
The hordes of Catholicism will soon ravage our lands in their mad quest for religious dominance. It would be wise for us to ensure each province is protected by sturdy defenses.
CastleBuildingeffect
CatholicismReligionpotential
Hussite WarsSituationselect trigger 1Prepared DefensesStatic Modifierallow, select trigger 2Definitionin_game/common/generic_actions/hussite_wars_actions.txt:335
336type = situation
337show_message = no
339ai_tick = monthly
340ai_tick_frequency = 6
342automation_tick = never
343automation_tick_frequency = 12
352allow = {
353scope:actor = {
357gold > 100
}
}
360ai_tick = monthly
361ai_tick_frequency = 4
362price = price:hussite_wars_actions_price
364cooldown = {
365type = prepare_defenses_hw_action
366years = 5
}
369select_trigger = {
370looking_for_a = situation
371target_flag = recipient
372name = "choose_situation" Choose the Situation:
373column = {
374data = name
}
}
382select_trigger = {
383looking_for_a = province
384target_flag = target
385source = actor
386name = "choose_province" Choose a Province
387none_available_msg_key = "no_provinces_available"
388column = {
388data = name
}
389column = {
389data = population
}
390visible = {
392NOT = {
393any_location_in_province = {
394is_ownable = yes
395owner = scope:actor
396NOT = {
396controller = scope:actor
}
}
}
}
}
401effect = {
402if = {
403limit = {
404exists = scope:target
}
406scope:target = {
407add_province_modifier = {
}
412if = {
418province_capital = {
419construct_building = {
421cost_multiplier = 0.1
422cost_multiplier_reason = "military_cheap_sponsorship"
}
}
}
}
}
428else = {
429custom_tooltip = prepare_defenses_hw_action_tt Every Location in the designated Province will gain Prepared Defenses for 15 years and if possible a Castle will be constructed in the Province Capital for -90% of the base cost
}
431scope:actor = {
432change_societal_value = {
}
}
}
440ai_will_do = {
441add = 100
}