Skip to content

Commit

Permalink
SotA S06: When the chasm is discovered, have a bat fly out as a warning
Browse files Browse the repository at this point in the history
  • Loading branch information
sigurdfdragon committed Jul 24, 2017
1 parent 57f9c3e commit 6ebd079
Showing 1 changed file with 52 additions and 31 deletions.
Expand Up @@ -168,6 +168,38 @@ I was so sure I had the answer! I was wrong. I wanted to believe that I was imag
[/event]

# *************************** PLAY ***************************

# Animates bats coming from the chasm in the center of the cave (at 47,13)
#define MOVE_AND_PLACE_BAT X Y TYPE
# X and Y values are passed to the macro, but that location may be occupied. This
# macro finds the nearest unoccupied location in case it is. That is the location
# that will actually be used in case it is different than X and Y.
{NEAREST_HEX {X} {Y} 99 (
[not]
[filter]
[/filter]
[or]
x,y=47,13
[/or]
[/not]) location}

[move_unit_fake]
type={TYPE}
side=3
x=47,$location.x
y=13,$location.y
[/move_unit_fake]
[unit]
type={TYPE}
side=3
x=$location.x
y=$location.y
[/unit]
[clear_variable]
name=location
[/clear_variable]
#enddef

[event]
name=moveto
[filter_condition]
Expand Down Expand Up @@ -196,6 +228,26 @@ I was so sure I had the answer! I was wrong. I wanted to believe that I was imag
speaker=Ardonna
message= _ "Surely the ghost would not have gone that way, where I cannot follow."
[/message]
# Have a bat fly out of the chasm as a warning.
[delay]
time=1000
[/delay]
#ifdef EASY
{MOVE_AND_PLACE_BAT 43 12 (Vampire Bat)}
#endif
#ifdef NORMAL
{MOVE_AND_PLACE_BAT 43 12 (Blood Bat)}
#endif
#ifdef HARD
{MOVE_AND_PLACE_BAT 43 12 (Dread Bat)}
#endif
[delay]
time=1000
[/delay]
[message]
speaker=Ardonna
message= _ "If there is one bat, there are certainly more. We should be careful."
[/message]
[/event]

[event]
Expand Down Expand Up @@ -348,37 +400,6 @@ I was so sure I had the answer! I was wrong. I wanted to believe that I was imag
#enddef
#endif

# Animates bats coming from the chasm in the center of the cave (at 47,13)
#define MOVE_AND_PLACE_BAT X Y TYPE
# X and Y values are passed to the macro, but that location may be occupied. This
# macro finds the nearest unoccupied location in case it is. That is the location
# that will actually be used in case it is different than X and Y.
{NEAREST_HEX {X} {Y} 99 (
[not]
[filter]
[/filter]
[or]
x,y=47,13
[/or]
[/not]) location}

[move_unit_fake]
type={TYPE}
side=3
x=47,$location.x
y=13,$location.y
[/move_unit_fake]
[unit]
type={TYPE}
side=3
x=$location.x
y=$location.y
[/unit]
[clear_variable]
name=location
[/clear_variable]
#enddef

[event]
name=activate bats

Expand Down

0 comments on commit 6ebd079

Please sign in to comment.