Scripted effect
lower_gallowsbait_xp_effect
lower_gallowsbait_xp_effect = { VALUE = … }game/common/scripted_effects/00_laamp_effects.txt, line 658 (72 lines). Parameters: $VALUE$.
lower_gallowsbait_xp_effect is a scripted effect in Crusader Kings III, written at line 658 of its file. A call passes 1 parameter: VALUE. The game's script calls it in 4 places, among them laamp_base_6001 (contract), laamp_base_6011 (contract) and laamp_base_6031 (contract). Patch 1.20.1.2, from game/common/scripted_effects/00_laamp_effects.txt.
What it does
- If has the Trait: Gallowsbait:
If
- Has the Trait: Gallowsbait
- Gallowsbait (bandit) experience at least 1
Then
- Gallowsbait (bandit) experience changes
Else if
- Has the Trait: Gallowsbait
- Gallowsbait (trickster) experience at least 1
Then
- Gallowsbait (trickster) experience changes
Else if
- Has the Trait: Gallowsbait
- Gallowsbait (marauder) experience at least 1
Then
- Gallowsbait (marauder) experience changes
Else if
- Has the Trait: Gallowsbait
- Gallowsbait (poacher) experience at least 1
Then
- Gallowsbait (poacher) experience changes
Otherwise
- Gallowsbait (thief) experience changes
• 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 (72 lines of game script)
lower_gallowsbait_xp_effect = {
if = {
limit = { has_trait = gallowsbait }
if = {
limit = {
has_trait = gallowsbait
has_trait_xp = {
trait = gallowsbait
track = bandit
value >= 1
}
}
add_trait_xp = {
trait = gallowsbait
track = bandit
VALUE = $VALUE$
}
}
else_if = {
limit = {
has_trait = gallowsbait
has_trait_xp = {
trait = gallowsbait
track = trickster
value >= 1
}
}
add_trait_xp = {
trait = gallowsbait
track = trickster
VALUE = $VALUE$
}
}
else_if = {
limit = {
has_trait = gallowsbait
has_trait_xp = {
trait = gallowsbait
track = marauder
value >= 1
}
}
add_trait_xp = {
trait = gallowsbait
track = marauder
VALUE = $VALUE$
}
}
else_if = {
limit = {
has_trait = gallowsbait
has_trait_xp = {
trait = gallowsbait
track = poacher
value >= 1
}
}
add_trait_xp = {
trait = gallowsbait
track = poacher
VALUE = $VALUE$
}
}
else = { # Thief
add_trait_xp = {
trait = gallowsbait
track = thief
VALUE = $VALUE$
}
}
}
}As written in game/common/scripted_effects/00_laamp_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls lower_gallowsbait_xp_effect.
Task contracts (3)
- laamp_base_6001
- laamp_base_6011
- laamp_base_6031
Events (1)
- …: ... Done That
pilgrimage.7000
Source: game/common/scripted_effects/00_laamp_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.