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

Scripted effect · Silk and Silver files

gdp_restore_the_roman_republic_effect

gdp_restore_the_roman_republic_effect = yes

game/common/scripted_effects/gdp_republic_effects.txt, line 1224 (79 lines). No parameters.

gdp_restore_the_roman_republic_effect is a scripted effect in Crusader Kings III, in the Silk and Silver files, written at line 1224 of its file. It takes no parameters: gdp_restore_the_roman_republic_effect = yes. The game's script calls it in 2 places, among them Restore the Roman Republic (decision) and The Republic of Rome (event republic_event.0100). Its body carries 1 text of the game's own for the player. Patch 1.21.0, from game/common/scripted_effects/gdp_republic_effects.txt.

The comment above it in the file

Restore the Roman Republic effect

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 (79 lines of game script)
gdp_restore_the_roman_republic_effect = {
	# Save scopes for later use
	save_scope_as = roman_republic_ruler
	primary_title = { save_scope_as = old_primary_title }

	# Appoint current assembly members as senators so the senate is not empty
	hidden_effect = {
		scope:old_primary_title = {
			every_full_assembly_member = {
				limit = {
					this != scope:roman_republic_ruler
					government_has_flag = government_is_republic
				}
				add_to_list = assembly_member_list
				add_character_flag = republic_appointed_senator
			}
		}
	}

	# Create the Roman Republic hegemony title
	create_title_and_vassal_change = {
		type = created
		save_scope_as = change
		add_claim_on_loss = no
	}
	title:h_roman_republic = {
		change_title_holder = {
			holder = root
			change = scope:change
		}
	}
	resolve_title_and_vassal_change = scope:change

	# Adopt new laws
	add_realm_law_skip_effects = republic_type_roman
	add_realm_law_skip_effects = republic_assembly_composition_roman_senate

	# Tooltip for appointing existing assembly members as senators, we group it with the law changes for clarity
	custom_tooltip = assembly_members_appointed_as_senators_desc
	
	hidden_effect = {
		# Increase the size of the senate if needed
		if = {
			limit = {
				any_in_list = {
					list = assembly_member_list
					count > { value = republic_senate_size_2_value multiply = 1.5 }
				}
			}
			add_realm_law_skip_effects = republic_senate_size_3
		}
		else_if = {
			limit = {
				any_in_list = {
					list = assembly_member_list
					count > { value = republic_senate_size_1_value multiply = 1.5 }
				}
			}
			add_realm_law_skip_effects = republic_senate_size_2
		}
		# Move your Title MaAs to your new title if you have any
		if = {
			limit = {
				scope:old_primary_title = {
					any_title_maa_regiment = { }
				}
			}
			scope:old_primary_title = { transfer_title_maa_ownership = title:h_roman_republic }
		}

		update_assembly = yes

		# Let's destroy the old title
		destroy_title = scope:old_primary_title
	}

	# Personal rewards
	# TODO add modifier to house - increasing patrican rating and renown
}

As written in game/common/scripted_effects/gdp_republic_effects.txt.

Where it is used

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

Events (1)

Source: game/common/scripted_effects/gdp_republic_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?