DM S12 Fix bug: second wave

If the undead have not been spotted, Delfador does not know they're there, so cannot know about the second wave.
This commit is contained in:
Gregory A Lundberg 2016-07-24 23:37:47 -05:00
parent 39da9c8f9a
commit 09e7006b1d

View File

@ -384,6 +384,10 @@
id=Delfador id=Delfador
message= _ "One of Iliah-Malals creatures. So it has begun!" message= _ "One of Iliah-Malals creatures. So it has begun!"
[/message] [/message]
[set_variable]
name=undead_spotted
value=yes
[/set_variable]
[fire_event] [fire_event]
name=enemies name=enemies
[/fire_event] [/fire_event]
@ -1234,16 +1238,25 @@
{CHANTAL_DEPARTS} {CHANTAL_DEPARTS}
{CLEAR_VARIABLE undead_spotted}
[/event] [/event]
# Second wave of undead # Second wave of undead
[event] [event]
name=turn 7 name=turn 7
{SECOND_WAVE} {SECOND_WAVE}
[if]
[variable]
name=undead_spotted
equals=yes
[/variable]
[then]
[message] [message]
speaker=Delfador speaker=Delfador
message= _ "They have unleashed a second wave. Soldiers, stand firm and send these abominations back to the darkness!" message= _ "They have unleashed a second wave. Soldiers, stand firm and send these abominations back to the darkness!"
[/message] [/message]
[/then]
[/if]
[/event] [/event]
# Time over # Time over