Scripted effect
visiting_poi_effect
visiting_poi_effect = yesgame/common/scripted_effects/00_wanderer_lifestyle_effects.txt, line 3 (75 lines). No parameters.
visiting_poi_effect is a scripted effect in Crusader Kings III, written at line 3 of its file. It takes no parameters: visiting_poi_effect = yes. The game's script calls it in 19 places, among them poi_battles (travel), poi_battles_historical (travel) and poi_capitals (travel). Patch 1.20.1.2, from game/common/scripted_effects/00_wanderer_lifestyle_effects.txt.
What it does
If
One of these
scope:province = province:1632or
scope:province = province:1633or
scope:province = province:1634or
scope:province = province:1648or
scope:province = province:1646or
scope:province = province:1643
Then
visiting_poi_variable_effect = { PROVINCE = province:1632 }visiting_poi_variable_effect = { PROVINCE = province:1633 }visiting_poi_variable_effect = { PROVINCE = province:1634 }visiting_poi_variable_effect = { PROVINCE = province:1648 }visiting_poi_variable_effect = { PROVINCE = province:1646 }visiting_poi_variable_effect = { PROVINCE = province:1643 }
Else if
One of these
scope:province = province:8780or
scope:province = province:1635or
scope:province = province:1611or
scope:province = province:1609
Then
visiting_poi_variable_effect = { PROVINCE = province:8780 }visiting_poi_variable_effect = { PROVINCE = province:1635 }visiting_poi_variable_effect = { PROVINCE = province:1611 }visiting_poi_variable_effect = { PROVINCE = province:1609 }
Else if
One of these
scope:province = province:62or
scope:province = province:84
Then
visiting_poi_variable_effect = { PROVINCE = province:62 }visiting_poi_variable_effect = { PROVINCE = province:84 }
Else if
One of these
scope:province = province:4031or
scope:province = province:4030
Then
visiting_poi_variable_effect = { PROVINCE = province:4031 }visiting_poi_variable_effect = { PROVINCE = province:4030 }
Otherwise
visiting_poi_variable_effect = { PROVINCE = scope:province }
If
- Their rite: The rite has Visiting Points of Interest in Jewish, Muslim, and Zoroastrian Counties gives additional Piety, Learning Experience, and Spiritual Fulfillment
scope:province.faith:One of these
- Their religion is Judaism
or
Their religion is Islamor
Their religion is Zoroastrianism
Then
- Gain +50 Piety
add_learning_lifestyle_xp = 25- Spiritual fulfillment +3
megaliths_building_poi_double_experience_effect = yes
• 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 (75 lines of game script)
visiting_poi_effect = {
if = { # Offa's Dyke
limit = {
OR = {
scope:province = province:1632
scope:province = province:1633
scope:province = province:1634
scope:province = province:1648
scope:province = province:1646
scope:province = province:1643
}
}
visiting_poi_variable_effect = { PROVINCE = province:1632 }
visiting_poi_variable_effect = { PROVINCE = province:1633 }
visiting_poi_variable_effect = { PROVINCE = province:1634 }
visiting_poi_variable_effect = { PROVINCE = province:1648 }
visiting_poi_variable_effect = { PROVINCE = province:1646 }
visiting_poi_variable_effect = { PROVINCE = province:1643 }
}
else_if = { # Hadrian's Wall
limit = {
OR = {
scope:province = province:8780
scope:province = province:1635
scope:province = province:1611
scope:province = province:1609
}
}
visiting_poi_variable_effect = { PROVINCE = province:8780 }
visiting_poi_variable_effect = { PROVINCE = province:1635 }
visiting_poi_variable_effect = { PROVINCE = province:1611 }
visiting_poi_variable_effect = { PROVINCE = province:1609 }
}
else_if = { # Danevirke
limit = {
OR = {
scope:province = province:62
scope:province = province:84
}
}
visiting_poi_variable_effect = { PROVINCE = province:62 }
visiting_poi_variable_effect = { PROVINCE = province:84 }
}
else_if = { # Great Wall of Gorgan
limit = {
OR = {
scope:province = province:4031
scope:province = province:4030
}
}
visiting_poi_variable_effect = { PROVINCE = province:4031 }
visiting_poi_variable_effect = { PROVINCE = province:4030 }
}
else = {
visiting_poi_variable_effect = { PROVINCE = scope:province }
}
if = {
limit = {
rite = { rite_has_parameter = tenet_scholasticism_muslim_hebrew_greek_poi }
scope:province.faith = {
OR = {
religion = religion:judaism_religion
religion = religion:islam_religion
religion = religion:zoroastrianism_religion
}
}
}
add_piety = minor_piety_gain
add_learning_lifestyle_xp = 25
change_spiritual_fulfillment = minor_spiritual_fulfillment_value
}
megaliths_building_poi_double_experience_effect = yes
}As written in game/common/scripted_effects/00_wanderer_lifestyle_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls visiting_poi_effect.
Travel (19)
- poi_battles
- poi_battles_historical
- poi_capitals
- poi_grand_cathedral
- poi_grand_city
- poi_legend_capitals
13 more
- poi_lighthouse_of_alexandria
- poi_mandala_capital
- poi_mausoleum_at_halicarnassus
- poi_natural_feature
- poi_silk_road_node
- poi_special_buildings_diplomatic
- poi_special_buildings_economic
- poi_special_buildings_learning
- poi_special_buildings_martial
- poi_special_buildings_religious
- poi_special_buildings_wonder
- poi_standalone_holy_site
- Tomb of …
Source: game/common/scripted_effects/00_wanderer_lifestyle_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.