CK3 DatabaseCrusader Kings III · 1.21.0 “Florin” · unofficial
Silk & Silverout Tue, Nov 17What's free, what needs the DLC, price →Merch→

Scripted effect · The Fate of Iberia files

fp2_border_raid_effect

fp2_border_raid_effect = yes

game/common/scripted_effects/03_dlc_fp2_scripted_effects.txt, line 2213 (59 lines). No parameters.

fp2_border_raid_effect is a scripted effect in Crusader Kings III, in the The Fate of Iberia files, written at line 2213 of its file. It takes no parameters: fp2_border_raid_effect = yes. The game's script calls it in 3 places, among them Border Raid (casus belli), Border Raid against the Roman Empire (casus belli) and Pillaging Foray (casus belli). Its body carries 1 text of the game's own for the player. Patch 1.21.0, from game/common/scripted_effects/03_dlc_fp2_scripted_effects.txt.

What it does

• the game's own tooltip text · ◦ our reading of the script line · code the script where neither exists

“They” is whatever it runs on (the scope it is called in). The scripted triggers and effects it calls link to their own pages; $PARAMETERS$ stay as written: each call fills them in.

The script as written (59 lines of game script)
fp2_border_raid_effect = {
	every_in_list = {
		list = target_titles
		save_scope_as = raid_county
		# Set raided province modifier
		title_province = {
			add_province_modifier = {
				modifier = recently_looted_modifier
				years = 5
			}
		}
		show_as_tooltip = {
			every_in_list = {
				list = target_titles
				fp2_border_raid_damage_effect = yes
			}
		}
		# Find province for building destruction
		ordered_county_province = {
			order_by = num_buildings
			random = {
				chance = 25
				modifier = { factor = destroy_building_soldier_multiplier_value } # chance increases with more soldiers
				modifier = { add = destroy_building_prosperity_multiplier_value } # chance increases with development
				destroy_random_building_variable_effect = yes
				if = {
					limit = { exists = scope:destroyed_building_district }
					custom_tooltip = destroy_random_building_tt
					save_scope_as = raid_province
				}
			}
		}
	}

	hidden_effect = {
		scope:attacker = {
			send_interface_message = {
				type = event_raid_good
				title = border_raid_message_title
				show_as_tooltip = {
					every_in_list = {
						list = target_titles
						fp2_border_raid_damage_effect = yes
					}
				}
			}
		}
		scope:defender = {
			send_interface_message = {
				type = event_raid_bad
				title = border_raid_message_title
				every_in_list = {
					list = target_titles
					fp2_border_raid_damage_effect = yes
				}
			}
		}
	}
}

As written in game/common/scripted_effects/03_dlc_fp2_scripted_effects.txt.

Where it is used

Every place in common/, events/ and history/ that calls fp2_border_raid_effect.

Source: game/common/scripted_effects/03_dlc_fp2_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.21.0.

Spotted a mistake on this page, or have an idea for the site?