Put code for undead arrival in its own event

This commit is contained in:
Simon Forsyth 2012-07-15 02:10:30 +00:00
parent 9f33f0e802
commit 4bd32bf7d5

View file

@ -3841,23 +3841,26 @@
value=2
[/set_variable]
# schedule events that occur after the humans start fighting
[event]
# schedule events that occur after the humans start fighting
name=new turn
first_time_only=no
[if]
# If it is dusk or night, the undead do not arrive until then
[filter_condition]
# The first night after meeting the humans
[have_location]
x,y=44,27 # location of Sgt Durstrag's keep - should be in normal time
time_of_day_id=dusk1,dusk2,short_dark,long_dark1,long_dark2,long_dark3,long_dark4
[/have_location]
[then]
[fire_event]
name=undead_emissary
[/fire_event]
[/then]
[/if]
[/filter_condition]
[fire_event]
name=undead_emissary
[/fire_event]
[/event]
[event]
name=new turn
first_time_only=no
[if]
[variable]