Skip to content

Commit

Permalink
HttT S17: Fix lava issues (#2249)
Browse files Browse the repository at this point in the history
1. Undo now works again in the scenario.
2. Lava now works again.
3. Triggering on a moveto event was not good, as several shorter moves
   would make rate of lava grow much faster than fewer longer moves.
  • Loading branch information
sigurdfdragon authored and ln-zookeeper committed Nov 29, 2017
1 parent 72739c5 commit 822f98b
Showing 1 changed file with 10 additions and 24 deletions.
34 changes: 10 additions & 24 deletions data/campaigns/Heir_To_The_Throne/scenarios/17_Scepter_of_Fire.cfg
Expand Up @@ -682,37 +682,23 @@
# Some volcanic ambiance
#
[event]
name=moveto
name=turn end
first_time_only=no
[allow_undo]
[/allow_undo]
[filter]
side=1,4,5
[/filter]
{VARIABLE_OP rumble_test rand "1..35"}

{QUAKE "rumble.ogg"}
{VARIABLE_OP lava_count add 1}
{EXPAND_LAVA}

# Reset the counter if it gets too large (it slows things down)
[if]
[variable]
name=rumble_test
numerical_equals=1
name=lava_count
numerical_equals=3
[/variable]
[then]
{QUAKE "rumble.ogg"}
{VARIABLE_OP lava_count add 1}
{EXPAND_LAVA}

# Reset the counter if it gets too large (it slows things down)
[if]
[variable]
name=lava_count
numerical_equals=3
[/variable]
[then]
{NEXT_LAVA}
[/then]
[/if]
{NEXT_LAVA}
[/then]
[/if]
{CLEAR_VARIABLE rumble_test}
[/event]

{campaigns/Heir_To_The_Throne/utils/deaths.cfg}
Expand Down

0 comments on commit 822f98b

Please sign in to comment.