Skip to content

Commit

Permalink
travel events
Browse files Browse the repository at this point in the history
  • Loading branch information
Grekopithikos committed Sep 28, 2024
1 parent 34ec7e5 commit c5c1b7a
Show file tree
Hide file tree
Showing 10 changed files with 851 additions and 1,029 deletions.
132 changes: 115 additions & 17 deletions events/travel_events/travel_danger_events_joe.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,23 @@ scripted_effect travel_danger_events_6000_beast_duel_effect = {
multiplier = 1
min = -49
}
root = {
send_interface_toast = {
title = travel_danger_events.6000.success
left_icon = $FIGHTER$
$FIGHTER$ = { add_prestige = medium_prestige_gain }
if = {
limit = { this = root }
root = {
send_interface_toast = {
title = travel_danger_events.6000.success_root
left_icon = $FIGHTER$
add_prestige = medium_prestige_gain
}
}
}
else = {
root = {
send_interface_toast = {
title = travel_danger_events.6000.success
left_icon = $FIGHTER$
$FIGHTER$ = { add_prestige = medium_prestige_gain }
}
}
}
min = 1
Expand All @@ -36,15 +48,27 @@ scripted_effect travel_danger_events_6000_beast_duel_effect = {
multiplier = -3.5
min = -49
}
root = {
send_interface_toast = {
title = travel_danger_events.6000.wound
left_icon = $FIGHTER$
$FIGHTER$ = {
if = {
limit = { this = root }
root = {
send_interface_toast = {
title = travel_danger_events.6000.wound_root
left_icon = $FIGHTER$
hunt_animal_wound_effect = { VARIABLE = root.var:animal_type }
}
}
}
else = {
root = {
send_interface_toast = {
title = travel_danger_events.6000.wound
left_icon = $FIGHTER$
$FIGHTER$ = {
hunt_animal_wound_effect = { VARIABLE = root.var:animal_type }
}
}
}
}
min = 3
}
10 = {
Expand All @@ -54,15 +78,27 @@ scripted_effect travel_danger_events_6000_beast_duel_effect = {
multiplier = -3.5
min = -49
}
root = {
send_interface_toast = {
title = travel_danger_events.6000.failure
left_icon = $FIGHTER$
$FIGHTER$ = {
if = {
limit = { this = root }
root = {
send_interface_toast = {
title = travel_danger_events.6000.failure_root
left_icon = $FIGHTER$
hunt_animal_death_effect = { VAR = root.var:animal_type }
}
}
}
else = {
root = {
send_interface_toast = {
title = travel_danger_events.6000.failure
left_icon = $FIGHTER$
$FIGHTER$ = {
hunt_animal_death_effect = { VAR = root.var:animal_type }
}
}
}
}
min = 2
}
}
Expand Down Expand Up @@ -131,6 +167,7 @@ travel_danger_events.6000 = { #Animal attack

immediate = {
mp_delay_travel_plan = { DAYS = 90 }
save_scope_as = root_scope
save_scope_as = big_local_game
hunt_activity_dangerous_game_effect = { PROVINCE = location }
current_travel_plan = {
Expand All @@ -146,6 +183,10 @@ travel_danger_events.6000 = { #Animal attack
add = 10
has_court_position = bodyguard_court_position
}
modifier = {
add = 10
has_court_position = akolouthos_court_position
}
modifier = {
add = 10
is_knight_of = root
Expand Down Expand Up @@ -713,6 +754,10 @@ travel_danger_events.6010 = { #Siege
add = 10
has_court_position = bodyguard_court_position
}
modifier = {
add = 10
has_court_position = akolouthos_court_position
}
modifier = {
add = 10
is_knight_of = root
Expand Down Expand Up @@ -1243,6 +1288,10 @@ travel_danger_events.6011 = { #Battal
add = 10
has_court_position = bodyguard_court_position
}
modifier = {
add = 10
has_court_position = akolouthos_court_position
}
modifier = {
add = 10
is_knight_of = root
Expand Down Expand Up @@ -1655,6 +1704,10 @@ travel_danger_events.6012 = { #Army
add = 10
has_court_position = bodyguard_court_position
}
modifier = {
add = 10
has_court_position = akolouthos_court_position
}
modifier = {
add = 10
is_knight_of = root
Expand Down Expand Up @@ -1884,7 +1937,6 @@ travel_danger_events.6013 = { #Occupation
}
}
else = { remove_short_term_gold = minor_gold_value }
min = 1
}
}
stress_impact = {
Expand Down Expand Up @@ -2061,6 +2113,10 @@ travel_danger_events.6013 = { #Occupation
add = 10
has_court_position = bodyguard_court_position
}
modifier = {
add = 10
has_court_position = akolouthos_court_position
}
modifier = {
add = 10
is_knight_of = root
Expand Down Expand Up @@ -2148,7 +2204,6 @@ scripted_trigger travel_danger_events_6020_flavor_trigger = {
travel_danger_events.6020 = { #Craig
type = character_event
title = travel_danger_events.6020.t
orphan = yes
desc = {
desc = travel_danger_events.6020.desc
first_valid = {
Expand Down Expand Up @@ -2321,6 +2376,9 @@ travel_danger_events.6030 = { #Spoiled food
NOT = { this = root }
}
}
location = {
is_sea_province = no
}
}

weight_multiplier = {
Expand Down Expand Up @@ -2370,6 +2428,9 @@ travel_danger_events.6030 = { #Spoiled food

option = { #Eat
name = travel_danger_events.6030.a
domicile ?= {
change_provisions = minor_provisions_loss
}
if = {
limit = {
NOT = { has_trait = ill }
Expand Down Expand Up @@ -2580,6 +2641,9 @@ travel_danger_events.6030 = { #Spoiled food
add = 20
}
min = 1
domicile ?= {
change_provisions = minor_provisions_loss
}
}
5 = { # Poison self
desc = travel_danger_events.6030.b.critical
Expand All @@ -2600,6 +2664,9 @@ travel_danger_events.6030 = { #Spoiled food
}
root = {
contract_disease_effect = { DISEASE = ill TREATMENT_EVENT = yes }
domicile ?= {
change_provisions = medium_provisions_loss
}
}
}
1 = { # Poison self real bad
Expand Down Expand Up @@ -2639,6 +2706,9 @@ travel_danger_events.6030 = { #Spoiled food
}
root = {
override_death_effect = { death_reason = death_poisonous_forage } # Warcraft
domicile ?= {
change_provisions = medium_provisions_loss
}
}
}
}
Expand Down Expand Up @@ -2764,6 +2834,9 @@ travel_danger_events.6030 = { #Spoiled food
add = 20
}
min = 1
domicile ?= {
change_provisions = minor_provisions_loss
}
}
5 = { # Poison self
desc = travel_danger_events.6030.b.critical
Expand All @@ -2784,6 +2857,9 @@ travel_danger_events.6030 = { #Spoiled food
}

contract_disease_effect = { DISEASE = ill TREATMENT_EVENT = yes }
domicile ?= {
change_provisions = medium_provisions_loss
}
}
1 = { # Poison self real bad
desc = travel_danger_events.6030.b.death
Expand Down Expand Up @@ -2821,6 +2897,9 @@ travel_danger_events.6030 = { #Spoiled food
add = -2
}
override_death_effect = { death_reason = death_poisonous_forage } # Warcraft
domicile ?= {
change_provisions = medium_provisions_loss
}
}
}
}
Expand All @@ -2839,6 +2918,9 @@ travel_danger_events.6030 = { #Spoiled food
trigger = {
is_location_valid_for_travel_event_on_land = yes #No one to steal from at sea
}
domicile ?= {
change_provisions = minor_provisions_loss
}
if = {
limit = {
exists = location.province_owner
Expand Down Expand Up @@ -2884,6 +2966,10 @@ travel_danger_events.6030 = { #Spoiled food
add = 10
has_court_position = bodyguard_court_position
}
modifier = {
add = 10
has_court_position = akolouthos_court_position
}
modifier = {
add = 10
is_knight_of = root
Expand Down Expand Up @@ -2912,6 +2998,10 @@ travel_danger_events.6030 = { #Spoiled food
ai_energy = -0.5
ai_honor = -0.5
}
modifier = {
prestige <= minor_prestige_value
factor = 0
}
}
}

Expand Down Expand Up @@ -3074,6 +3164,10 @@ travel_danger_events.6040 = { #Disease
ai_energy = -0.5
ai_rationality = -0.5
}
modifier = {
factor = 0
is_landless_adventurer = yes
}
}
}

Expand Down Expand Up @@ -3102,6 +3196,10 @@ travel_danger_events.6040 = { #Disease
ai_energy = -0.5
ai_rationality = -0.5
}
modifier = {
add = 100
is_landless_adventurer = yes
}
}
}

Expand Down
7 changes: 5 additions & 2 deletions events/travel_events/travel_danger_events_klank.txt
Original file line number Diff line number Diff line change
Expand Up @@ -972,8 +972,9 @@ travel_danger_events.3003 = { #Snowbound, all terrain, winter present
override_background = {
reference = ep2_hunt_snowy_forest
}
override_effect_2d = {
reference = snow
widget = {
gui = "event_window_widget_vfx_snow"
container = "foreground_shader_vfx_container"
}

trigger = {
Expand Down Expand Up @@ -1080,6 +1081,7 @@ travel_danger_events.3003 = { #Snowbound, all terrain, winter present
multiplier = 3.5
min = -49
}
min = 10
send_interface_toast = {
title = travel_danger_events.3003.a.success
left_icon = scope:maron_leader
Expand All @@ -1100,6 +1102,7 @@ travel_danger_events.3003 = { #Snowbound, all terrain, winter present
multiplier = -3.5
min = -49
}
min = 10
send_interface_toast = {
title = travel_danger_events.3003.a.failure
left_icon = scope:maron_leader
Expand Down
6 changes: 5 additions & 1 deletion events/travel_events/travel_danger_events_oltner.txt
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ travel_danger_events.9010 = { # All terrains: Wagon Wheel breaks

right_portrait = {
character = scope:irritated_character
animation = personality_irrational
animation = delirium
}

trigger = {
Expand Down Expand Up @@ -427,6 +427,10 @@ travel_danger_events.9010 = { # All terrains: Wagon Wheel breaks
factor = 0
has_trait = arrogant
}
modifier = {
factor = 0
prestige <= minor_prestige_value
}
}
}

Expand Down
Loading

0 comments on commit c5c1b7a

Please sign in to comment.