This tag allows setting of scenario objectives as events:
- Code: Select all
[scenario]
[event]
name=prestart
[objectives]
summary= _ "Follow instructions"
[objective]
description= _ "Move one hex to the north"
condition=win
[/objective]
[objective]
description= _ "Death of Superelf"
condition=lose
[/objective]
[/objectives]
[/event]
[/scenario]
- Code: Select all
[scenario]
objectives= _ "Follow instructions
Victory:
@Move one hex to the north
Defeat:
#Death of Superelf"
[/scenario]
Here is how it can be used in a moveto event:
- Code: Select all
[event]
name=moveto
[filter]
side=1
x=6
y=7
[/filter]
[objectives]
summary= _ "Back to the boring stuff"
show=yes
victory_string= _ "Win:"
defeat_string= _ "Lose:"
[objective]
description= _ "Defeat all enemy leaders"
condition=win
[/objective]
[objective]
description= _ "Death of Superelf"
condition=lose
[/objective]
[/objectives]
[/event]
Summary of features:
- requires no changes to existing campaigns,
fills in the colours for defeat and victory conditions automatically,
can display objectives when they change (thanks to Invisible Philosopher for suggesting),
eases translations, and
adds a "quick summary" line to objectives.
Several campaign developers use hacks to change objectives mid-scenario. Turin has mentioned having a use for changing objectives, but is this patch worth including in the mainline distribution? If you think so, please state your opinion here, or even better, help to improve the patch so it doesn't muck around quite so much with global data structures. Right now the patch is languishing without any serious developer review, and needs to be updated frequently to keep up with CVS.
