Added several new objective macros

This commit is contained in:
Charles Dang 2015-01-28 20:35:39 +11:00
parent c67326e0f7
commit 8c92d1e62a

View File

@ -1,15 +1,8 @@
#textdomain wesnoth
# Utility macros for use in the objectives dialog or for defining the whole
# [objectives] tag.
#define TURNS_RUN_OUT
[objective]
description= _ "Turns run out"
condition=lose
show_turn_counter=yes
[/objective]
#enddef
#define EARLY_FINISH_BONUS_NOTE
_"Early finish bonus."#enddef
@ -52,6 +45,34 @@ _"No gold carried over to the next scenario."#enddef
caption= _ "Bonus objective:"
#enddef
#define OBJECTIVES OBJECTIVE_LIST
[objectives]
{OBJECTIVE_LIST}
[/objectives]
#enddef
#define OBJECTIVE_VICTORY OBJECTIVE_TEXT
[objective]
description={OBJECTIVE_TEXT}
condition=win
[/objective]
#enddef
#define OBJECTIVE_DEFEAT OBJECTIVE_TEXT
[objective]
description={OBJECTIVE_TEXT}
condition=lose
[/objective]
#enddef
#define TURNS_RUN_OUT
[objective]
description= _ "Turns run out"
condition=lose
show_turn_counter=yes
[/objective]
#enddef
#define ALTERNATIVE_OBJECTIVE OBJECTIVE_TEXT
[objective]
{ALTERNATIVE_OBJECTIVE_CAPTION}
@ -68,6 +89,20 @@ _"No gold carried over to the next scenario."#enddef
[/objective]
#enddef
#define OBJECTIVE_SHOW_IF _COND
[+objective]
[show_if]
{_COND}
[/show_if]
[/objective]
#enddef
#define OBJECTIVE_NOTES TEXT
[note]
description={TEXT}
[/note]
#enddef
#define IS_LAST_SCENARIO
[note]
red,blue,green=0,255,255