Deprecated SET_OBJECTIVES, VICTORY_CONDITION, and DEFEAT_CONDITION.

This commit is contained in:
Steven Panek 2010-11-25 09:27:32 +00:00
parent df9f6b5140
commit 0c933d4e68
2 changed files with 53 additions and 47 deletions

View file

@ -106,3 +106,56 @@
{FILTER}
[/capture_village]
#enddef
#define SET_OBJECTIVES SIDE SUMMARY_TEXT NOTE_TEXT CONDITION_WML
{DEPRECATE SET_OBJECTIVES 1.9.4}
# Sets the objectives for a given player
# Side 0 means every player. Does not affect gameplay,
# except that it tells the player what the objectives of a scenario are.
#
# For example, we could set the objective for all players to: "survive for
# 3 turns" with this:
#! {SET_OBJECTIVES 0 "Survive for 3 turns" () ()}
#
[objectives]
side = {SIDE}
summary = {SUMMARY_TEXT}
note = {NOTE_TEXT}
{CONDITION_WML}
[/objectives]
#enddef
#define VICTORY_CONDITION DESCRIPTION
{DEPRECATE VICTORY_CONDITION 1.9.4}
# Used in conjunction with SET_OBJECTIVES this sets a victory condition
# (marked green).
#
# For example we could tell player 2 to win by killing all other players
#! {SET_OBJECTIVES 0 "Kill eachother." (
#! {VICTORY_CONDITION "Kill all other players."}
#! )}
#
[objective]
condition = "win"
description = {DESCRIPTION}
[/objective]
#enddef
#define DEFEAT_CONDITION DESCRIPTION
{DEPRECATE DEFEAT_CONDITION 1.9.4}
# Used in conjunction with SET_OBJECTIVES this sets a defeat condition
# (marked red).
#
# For example we could tell all players that they lose if they die.
#! {SET_OBJECTIVES 0 "Survive." (
#! {DEFEAT_CONDITION "Death of your leader."}
#! )}
#
[objective]
condition = "lose"
description = {DESCRIPTION}
[/objective]
#enddef

View file

@ -2,53 +2,6 @@
# Utility macros for use in the objectives dialog or for defining the whole
# [objectives] tag.
#define SET_OBJECTIVES SIDE SUMMARY_TEXT NOTE_TEXT CONDITION_WML
# Sets the objectives for a given player
# Side 0 means every player. Does not affect gameplay,
# except that it tells the player what the objectives of a scenario are.
#
# For example, we could set the objective for all players to: "survive for
# 3 turns" with this:
#! {SET_OBJECTIVES 0 "Survive for 3 turns" () ()}
#
[objectives]
side = {SIDE}
summary = {SUMMARY_TEXT}
note = {NOTE_TEXT}
{CONDITION_WML}
[/objectives]
#enddef
#define VICTORY_CONDITION DESCRIPTION
# Used in conjunction with SET_OBJECTIVES this sets a victory condition
# (marked green).
#
# For example we could tell player 2 to win by killing all other players
#! {SET_OBJECTIVES 0 "Kill eachother." (
#! {VICTORY_CONDITION "Kill all other players."}
#! )}
#
[objective]
condition = "win"
description = {DESCRIPTION}
[/objective]
#enddef
#define DEFEAT_CONDITION DESCRIPTION
# Used in conjunction with SET_OBJECTIVES this sets a defeat condition
# (marked red).
#
# For example we could tell all players that they lose if they die.
#! {SET_OBJECTIVES 0 "Survive." (
#! {DEFEAT_CONDITION "Death of your leader."}
#! )}
#
[objective]
condition = "lose"
description = {DESCRIPTION}
[/objective]
#enddef
#define TURNS_RUN_OUT
[objective]
description= _ "Turns run out"