Scripted effect · Khans of the Steppe files
mpo_create_paiza_artifact_effect
mpo_create_paiza_artifact_effect = { GRANTEE = … PATRON = … }game/common/scripted_effects/09_dlc_mpo_scripted_effects.txt, line 1792 (49 lines). Parameters: $GRANTEE$, $PATRON$.
mpo_create_paiza_artifact_effect is a scripted effect in Crusader Kings III, in the Khans of the Steppe files, written at line 1792 of its file. A call passes 2 parameters: GRANTEE and PATRON. The game's script calls it in 5 places, among them Ask for Paiza (interaction), Grant Paiza (interaction) and Paiza System Established (event mpo_decisions_events.0099). Patch 1.20.1.2, from game/common/scripted_effects/09_dlc_mpo_scripted_effects.txt.
The comment above it in the file
scope:patron is the creator scope:receiver is who gets it
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 (49 lines of game script)
mpo_create_paiza_artifact_effect = {
$PATRON$ = {
save_scope_as = patron
}
$GRANTEE$ = {
save_scope_as = grantee
}
save_scope_value_as = {
name = wealth
value = {
value = 20
multiply = {
value = scope:patron.primary_title.tier
add = scope:patron.dominance_value
}
}
}
save_scope_value_as = {
name = quality
value = {
value = 20
multiply = {
value = scope:patron.primary_title.tier
add = scope:patron.dominance_value
}
}
}
scope:grantee = {
create_artifact = {
name = paiza_artifact_title
type = miscellaneous
template = paiza_artifact_template
creator = scope:patron
description = paiza_artifact_desc
visuals = paiza
wealth = scope:wealth
quality = scope:quality
modifier = artifact_steppe_danger_travel_high_modifier
modifier = artifact_steppe_advantage_2_modifier
save_scope_as = created_paiza
}
}
scope:created_paiza = {
set_variable = {
name = paiza_patron
value = scope:patron
}
}
}As written in game/common/scripted_effects/09_dlc_mpo_scripted_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls mpo_create_paiza_artifact_effect.
Character interactions (2)
Events (2)
- Paiza System Established
mpo_decisions_events.0099 - Summon Wealthy Visitors: Paiza
mpo_decisions_events.0100
Scripted effects (1)
Source: game/common/scripted_effects/09_dlc_mpo_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.