DM S09: Fix incomplete/missing objectives issues

Add dialog and fixe objectives to ensure that player will hear about
the magical artifact (staff) instead of relying on finding a specifc ghost
in a village. This prevents situations where the player can reach the
signpost without having heard of the staff.
This commit is contained in:
sigurdfdragon 2017-10-11 14:53:15 -04:00 committed by Jeffrey 'Sigurd' Westcoat
parent c71d0e2179
commit ab5de6317b
2 changed files with 36 additions and 6 deletions

View file

@ -101,11 +101,33 @@
[event]
name=prestart
{VARIABLE delf_has_staff no}
{VARIABLE heard_from_ghost no}
[objectives]
side=1
[objective]
description=_ "Explore the Land of the Dead"
condition=win
[show_if]
{VARIABLE_CONDITIONAL heard_from_ghost boolean_equals no}
[/show_if]
[/objective]
[objective]
description=_ "Have Delfador claim the magical artifact, then move him to the signpost"
condition=win
[show_if]
{VARIABLE_CONDITIONAL heard_from_ghost boolean_equals yes}
{VARIABLE_CONDITIONAL delf_has_staff boolean_equals no}
[/show_if]
[/objective]
[objective]
description=_ "Move Delfador to the signpost"
condition=win
[show_if]
{VARIABLE_CONDITIONAL heard_from_ghost boolean_equals yes}
{VARIABLE_CONDITIONAL delf_has_staff boolean_equals yes}
[/show_if]
[/objective]
[objective]
description=_ "Death of Delfador"
@ -120,11 +142,6 @@
[/gold_carryover]
[/objectives]
[set_variable]
name=delf_has_staff
value=no
[/set_variable]
[item]
x=15
y=1
@ -251,11 +268,22 @@
speaker=Rorthin
message=_"Follow the dry river, then the road to the signpost in the north. I will guide you. Enter the houses of the dead as you pass, for others here may help you."
[/message]
[message]
speaker=Delfador
message=_"Speak again, spirit! What else do you know of this place?"
[/message]
[message]
speaker=Rorthin
message=_"I have heard there is a powerful magical artifact somewhere around here. Any more, I cannot tell you."
[/message]
#TODO is there some speak about ghosts in the recruitment?
[allow_recruit]
type=Ghost
side=1
[/allow_recruit]
{VARIABLE heard_from_ghost yes}
[show_objectives]
[/show_objectives]
{CLEAR_VARIABLE next_to_delf,move_from}
[/event]
@ -554,7 +582,7 @@
[event]
name=victory
{MODIFY_UNIT side=3 side 1}
{CLEAR_VARIABLE delf_has_staff}
{CLEAR_VARIABLE delf_has_staff,heard_from_ghost}
[modify_side]
side=3
hidden=yes

View file

@ -89,5 +89,7 @@
name=delf_has_staff
value=yes
[/set_variable]
[show_objectives]
[/show_objectives]
[/event]
#enddef