diff --git a/data/campaigns/tutorial/scenarios/02_Tutorial_part_2.cfg b/data/campaigns/tutorial/scenarios/02_Tutorial_part_2.cfg index 0a519532b74..0ca94015204 100644 --- a/data/campaigns/tutorial/scenarios/02_Tutorial_part_2.cfg +++ b/data/campaigns/tutorial/scenarios/02_Tutorial_part_2.cfg @@ -716,8 +716,6 @@ A full list of abilities and weapons specials, along with traits, may be found i [fire_event] name=check_income [/fire_event] - - {TALK_ABOUT_LOC 19,16 ( _ "Beware of those orcs crossing the river! If they get into the forest they’ll be hard to dislodge!")} [/event] [event] @@ -764,6 +762,7 @@ A full list of abilities and weapons specials, along with traits, may be found i [event] name=check_income + first_time_only=no [filter_condition] [variable] name=spoke_about_income @@ -799,6 +798,45 @@ A full list of abilities and weapons specials, along with traits, may be found i {CLEAR_VARIABLE gold} [/event] + # Warn when the orcs start using the eastern crossing, this is expected to happen around turn 7 + [event] + name=side 1 turn + first_time_only=no + [filter_condition] + [variable] + name=spoke_about_orcs_crossing_river + boolean_equals=no + [/variable] + [/filter_condition] + + # A quick wolf could reach 19,15 from 17,19, which is still on the south bank of the river but is on the path that only leads to the eastern crossing. Orcish Grunts and Archers can only trigger it while already standing in the water. + # This uses vision range so that it still triggers even if the player has already put an elf ready to counterattack while the orc is on 20% def, because it's better to trigger it then rather than a couple of turns later when the player is already fighting the orcs. + [store_reachable_locations] + [filter_location] + x,y=19,14 + [/filter_location] + [filter] + side=2 + [/filter] + moves=max + range=vision + variable=reachable + [/store_reachable_locations] + + [if] + [variable] + name=reachable.length + greater_than=0 + [/variable] + [then] + {VARIABLE spoke_about_orcs_crossing_river yes} + {TALK_ABOUT_LOC 19,16 ( _ "Beware of those orcs crossing the river! If they get into the forest they’ll be hard to dislodge!")} + [/then] + [/if] + + {CLEAR_VARIABLE reachable} + [/event] + [event] name=warn_about_units_with_low_health first_time_only=no @@ -1192,5 +1230,6 @@ A full list of abilities and weapons specials, along with traits, may be found i [/message] {CLEAR_VARIABLE low_hp_unit_message,lhpu_msg_i} + {CLEAR_VARIABLE spoke_about_income,spoke_about_orcs_crossing_river} [/event] [/tutorial]