Put a guard on some dialog in a moveto so it's only uttered once.

This commit is contained in:
Eric S. Raymond 2009-11-02 02:55:57 +00:00
parent 4eca06a065
commit 9ab80409c3

View file

@ -275,6 +275,11 @@
name=liches_active
value=yes
[/set_variable]
[set_variable]
name=key_dialogue
equals=no
[/set_variable]
[/then]
[/if]
#enddef
@ -536,15 +541,26 @@
[/variable]
[then]
[message]
speaker=unit
message= _ "It seems that guard spoke truth. These doors cannot be forced open by any means we have!"
[/message]
[message]
speaker="Angarthing"
message= _ "I sense these bindings to be the work of common sorcery, not the power of the Hammer. Usually to each such locking spell there is some sort of key. If we can but find the key, we will able to open these doors."
[/message]
[if]
[variable]
name=key_dialogue
equals=no
[/variable]
[then]
[message]
speaker=unit
message= _ "It seems that guard spoke truth. These doors cannot be forced open by any means we have!"
[/message]
[message]
speaker="Angarthing"
message= _ "I sense these bindings to be the work of common sorcery, not the power of the Hammer. Usually to each such locking spell there is some sort of key. If we can but find the key, we will able to open these doors."
[/message]
[set_variable]
name=key_dialogue
equals=yes
[/set_variable]
[/then]
[/if]
[/then]
[/if]