Scripted effect · Roads to Power files
create_landless_adventurer_title_effect
create_landless_adventurer_title_effect = { FLAVOR_CHAR = … REASON = … }game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt, line 16 (663 lines). Parameters: $FLAVOR_CHAR$, $REASON$.
create_landless_adventurer_title_effect is a scripted effect in Crusader Kings III, in the Roads to Power files, written at line 16 of its file. A call passes 2 parameters: FLAVOR_CHAR and REASON. The game's script calls it in 41 places, among them A Common Cause (event coronation_events.6011), A Lesser … of … (event ep3_laamps.0010) and A New England (event ep3_laamps.7002). Its body carries 14 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt.
What it does
- … will establish an Adventurer Camp
If
One of these
scope:adventurer_creation_reason = flag:depositionor
scope:adventurer_creation_reason = flag:conquestor
scope:adventurer_creation_reason = flag:conquest_claimor
scope:adventurer_creation_reason = flag:exile
Then
- Opinion: Expelled Me
remove_laamp_from_exiled_county_automatically_effect = { PROVINCE = scope:new_landless_adventurer.location LAAMP = scope:new_landless_adventurer }
• 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 (120 lines of game script)
create_landless_adventurer_title_effect = {
save_scope_as = new_landless_adventurer
if = {
limit = {
exists = house
}
house = { save_scope_as = new_landless_adventurer_house }
}
if = {
limit = {
exists = location
}
location = { save_scope_as = new_landless_adventurer_location }
}
save_scope_value_as = {
name = adventurer_creation_reason
value = $REASON$
}
$FLAVOR_CHAR$ = { save_scope_as = adventurer_flavor_char }
hidden_effect = {
random_list = {
#Acclaimed knights become laamps interaction
10000 = {
trigger = {
scope:acclaimed_mercenary ?= scope:new_landless_adventurer
has_character_flag = accolade_mercenary_accolade_name
}
create_adventurer_title = {
name = accolade_mercenary_accolade_name
holder = scope:new_landless_adventurer
save_scope_as = new_title
}
}
10000 = {
trigger = {
scope:acclaimed_mercenary ?= scope:new_landless_adventurer
has_character_flag = accolade_mercenary_kings_men_name
}
create_adventurer_title = {
name = accolade_mercenary_kings_men_name
holder = scope:new_landless_adventurer
save_scope_as = new_title
}
}
10000 = {
trigger = {
scope:acclaimed_mercenary ?= scope:new_landless_adventurer
has_character_flag = accolade_mercenary_knightly_company_name
}
create_adventurer_title = {
name = accolade_mercenary_knightly_company_name
holder = scope:new_landless_adventurer
article = DEFAULT_TITLE_NAME_ARTICLE
save_scope_as = new_title
}
}
10000 = {
trigger = {
scope:acclaimed_mercenary ?= scope:new_landless_adventurer
has_character_flag = accolade_honor_band_name
}
create_adventurer_title = {
name = accolade_honor_band_name
holder = scope:new_landless_adventurer
article = DEFAULT_TITLE_NAME_ARTICLE
save_scope_as = new_title
}
}
10000 = {
trigger = {
scope:acclaimed_mercenary ?= scope:new_landless_adventurer
has_character_flag = accolade_rulers_swords_name
}
create_adventurer_title = {
name = accolade_rulers_swords_name
holder = scope:new_landless_adventurer
article = DEFAULT_TITLE_NAME_ARTICLE
save_scope_as = new_title
}
}
10000 = {
trigger = {
scope:acclaimed_mercenary ?= scope:new_landless_adventurer
has_character_flag = accolade_culture_riders_name
}
create_adventurer_title = {
name = accolade_culture_riders_name
holder = scope:new_landless_adventurer
article = DEFAULT_TITLE_NAME_ARTICLE
save_scope_as = new_title
}
}
10000 = {
trigger = {
scope:acclaimed_mercenary ?= scope:new_landless_adventurer
has_character_flag = accolade_free_knights_name
}
create_adventurer_title = {
name = accolade_free_knights_name
holder = scope:new_landless_adventurer
article = DEFAULT_TITLE_NAME_ARTICLE
save_scope_as = new_title
}
}
10000 = {
trigger = {
scope:acclaimed_mercenary ?= scope:new_landless_adventurer
has_character_flag = accolade_culture_company_name
}
create_adventurer_title = {
name = accolade_culture_company_name
holder = scope:new_landless_adventurer
article = DEFAULT_TITLE_NAME_ARTICLE
save_scope_as = new_title
}
}
10000 = {
trigger = {
scope:acclaimed_mercenary ?= scope:new_landless_adventurer
has_character_flag = new_laamp_title_name_entered_textAs written in game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt.
The first 120 of its 663 lines; the rest is in game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt from line 16.
Where it is used
Every place in common/, events/ and history/ that calls create_landless_adventurer_title_effect.
Character interactions (1)
- Make Laamp
Events (31)
- A Common Cause
coronation_events.6011 - A Lesser … of …
ep3_laamps.0010 - A New England
ep3_laamps.7002 - A Seismic Shift in Faith
pam_clergy_events.0051 - Administrative No More
ep3_admin_events.0004 - Another Path
ep3_laamps.7000
25 more
- Beyond …
ep3_laamps.0030 - courtier_guest_management.4001
- Echoes of History: …
historical_char_creation_events.1 - ep3_laamp_decision_event.1300
- ep3_laamps.0002
- ep3_laamps.0011
- ep3_laamps.0021
- ep3_laamps.0041
- Escaped Justice
governor_contract_events_tova.0056 - From Riches to Rags
ep3_laamps.0040 - Going … Own Way
ep3_laamps.0050 - Going … Own Way
ep3_laamps.0051 - Grand Ambitions: The Fate of the Fallen
grand_ambitions.0002 - Grand Ambitions: The Fate of the Fallen
grand_ambitions.0202 - grand_ambitions.0004
- Once and Former …
ep3_laamps.0001 - Once and Former …
ep3_laamps.0004 - Once and Former …
ep3_laamps.0005 - The … Exile
ep3_laamps.0020 - The … Exile
grand_ambitions.0003 - The Antichrist Shatters My Throne
roman_restoration.0132 - The End of …
pam_clergy_events.0052 - The Withering of Righteousness
bookmark.0500 - Troublemaker: A Turbulent …
ep3_contract_event.0560 - Wycliffe's Heresy
heresy_historical.0050
Scripted effects inside an event file (4)
- ep3_laamps_7002_ai_siward_leaves_effect
- mpo_events_ariana_0050_lose_effect
- tgp_japan_soryo_eradicate_cb_heir_go_to_savior
- tgp_japan_soryo_eradicate_cb_loser_go_to_savior
On actions (the game's own hooks) (2)
- on_player_select_destiny_confirmed
- on_ruler_designer_finished
Source: game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.