Skip to content

Commit

Permalink
THoT S6: improve mage appearance event
Browse files Browse the repository at this point in the history
- is now less odd if the event is triggered from the map borders
- works with debug mode

[ci skip]
  • Loading branch information
sevu committed Jul 14, 2018
1 parent d0931ae commit 3c57546
Showing 1 changed file with 40 additions and 8 deletions.
48 changes: 40 additions & 8 deletions data/campaigns/The_Hammer_of_Thursagan/scenarios/06_High_Pass.cfg
Expand Up @@ -152,15 +152,19 @@
[/message]

[remove_shroud]
side=1
[filter_side]
side=1
[/filter_side]
x=29-31,30
y=11-12,10
[/remove_shroud]

{HIGHLIGHT_IMAGE 30 11 scenery/signpost.png ()}

[place_shroud]
side=1
[filter_side]
side=1
[/filter_side]
x=29-31,30
y=11-12,10
[/place_shroud]
Expand Down Expand Up @@ -222,7 +226,7 @@
#endif
[/event]

# If user hasn't found Ratheln by a reasonable time, nudge a little.
# If the user hasn't found Ratheln by a reasonable time, nudge a little.
[event]
name=turn 8
[filter_condition]
Expand All @@ -247,9 +251,6 @@
side=1
[filter_location]
# Should be triggered regardless of how the Dwarves move through.
# It will look a little odd if they've all decided to slog through
# the mountains to the extreme north or south, but that is quite
# unlikely.
x=18-21
y=0-21
[/filter_location]
Expand All @@ -258,6 +259,21 @@
[cancel_action]
[/cancel_action]

[fire_event]
name=meeting a mage
[/fire_event]

[redraw]
clear_shroud=yes
side=1
[/redraw]

[show_objectives][/show_objectives]
[/event]

[event]
name=meeting a mage

[unit]
side=1
x,y=19,11
Expand All @@ -266,6 +282,15 @@
{CHARACTER_STATS_RATHELN}
[/unit]

# In case the area was not yet visible
[remove_shroud]
[filter_side]
side=1
[/filter_side]
x,y=19,11
radius=1
[/remove_shroud]

[message]
speaker=Ratheln
message= _ "Hail, I am Ratheln. If you’re traveling down the pass, please take me with you. I am near freezing and starving to death up here."
Expand Down Expand Up @@ -300,8 +325,6 @@
speaker=Aiglondur
message= _ "Aye. And I’d not leave anyone who had done my kin no harm stranded to starve."
[/message]

[show_objectives][/show_objectives]
[/event]

# In this scenario only, losing Ratheln is fatal.
Expand Down Expand Up @@ -375,6 +398,15 @@
[/endlevel]
[/event]

[event]
name=victory

# It is only in debug mode possible that this event did not occur
[fire_event]
name=meeting a mage
[/fire_event]
[/event]

# No need for Ratheln's death event here since he has a custom one this scenario
{HERODEATH_AIGLONDUR}
{HERODEATH_ANGARTHING}
Expand Down

0 comments on commit 3c57546

Please sign in to comment.