Difference between revisions of "User:Dlr365"
From The Battle for Wesnoth Wiki
Line 11: | Line 11: | ||
* The following tags are valid: | * The following tags are valid: | ||
** '''[victory]''' : issues victory to the specified sides. Can have either zero or one ''[victory]'' tag per ''[results]'' tag. Valid keys: | ** '''[victory]''' : issues victory to the specified sides. Can have either zero or one ''[victory]'' tag per ''[results]'' tag. Valid keys: | ||
− | *** '''side''' : comma-delimited list of the sides to be given victory. If not included, the ''[victory]'' tag is ignored. | + | *** '''side''' : comma-delimited list of the sides to be given victory. If not included, the ''[victory]'' tag is ignored. ''(see note#1)'' |
*** '''bonus''' : whether the sides specified in this ''[victory]'' tag should get bonus gold. Can be either ''yes'' or ''no''. Defaults to ''yes''. | *** '''bonus''' : whether the sides specified in this ''[victory]'' tag should get bonus gold. Can be either ''yes'' or ''no''. Defaults to ''yes''. | ||
*** '''carryover_percentage''' : Amount of gold carried over into the next scenario. Defaults to 80%. | *** '''carryover_percentage''' : Amount of gold carried over into the next scenario. Defaults to 80%. | ||
*** '''carryover_add''' : if ''true'' the gold will be added to the starting gold the next scenario, if ''false'' the next scenario will start with the amount of the current scenario (after taxes) or the minimum in the next scenario. Default is ''false''. | *** '''carryover_add''' : if ''true'' the gold will be added to the starting gold the next scenario, if ''false'' the next scenario will start with the amount of the current scenario (after taxes) or the minimum in the next scenario. Default is ''false''. | ||
** '''[defeat]''' : issues defeat to the specified sides. Can have either zero or one ''[defeat]'' tag per ''[results]'' tag. Valid keys: | ** '''[defeat]''' : issues defeat to the specified sides. Can have either zero or one ''[defeat]'' tag per ''[results]'' tag. Valid keys: | ||
− | *** '''side''' : the | + | *** '''side''' : comma-delimited list of the sides to be given defeat. If not included, the ''[defeat]'' tag is ignored. |
* If neither a ''[victory]'' nor ''[defeat]'' tag is specified, then all sides are issued ''default_result''. | * If neither a ''[victory]'' nor ''[defeat]'' tag is specified, then all sides are issued ''default_result''. |
Revision as of 06:58, 27 March 2008
Works in Progress
[result] -- new DirectActionWML
This tag would allow scenario authors to issue victory/defeat to specific sides from within events, without the scenario necessarily ending (if it makes sense for it to continue).
Implementation
- The following keys are valid:
- endlevel : this key specifies if the level should be ended. Can be either yes or no. Defaults to yes. CURRENT IMPLEMENTATION DOES NOT ALLOW endlevel=no! The following keys may be used if endlevel=yes:
- next_scenario : the ID of the next scenario that is to be played. Default specified in [scenario] tag.
- -->(not implemented, see note#1)<-- default_result : sides who are not given specific results are issued this result. Defaults to defeat.
- endlevel : this key specifies if the level should be ended. Can be either yes or no. Defaults to yes. CURRENT IMPLEMENTATION DOES NOT ALLOW endlevel=no! The following keys may be used if endlevel=yes:
- The following tags are valid:
- [victory] : issues victory to the specified sides. Can have either zero or one [victory] tag per [results] tag. Valid keys:
- side : comma-delimited list of the sides to be given victory. If not included, the [victory] tag is ignored. (see note#1)
- bonus : whether the sides specified in this [victory] tag should get bonus gold. Can be either yes or no. Defaults to yes.
- carryover_percentage : Amount of gold carried over into the next scenario. Defaults to 80%.
- carryover_add : if true the gold will be added to the starting gold the next scenario, if false the next scenario will start with the amount of the current scenario (after taxes) or the minimum in the next scenario. Default is false.
- [defeat] : issues defeat to the specified sides. Can have either zero or one [defeat] tag per [results] tag. Valid keys:
- side : comma-delimited list of the sides to be given defeat. If not included, the [defeat] tag is ignored.
- [victory] : issues victory to the specified sides. Can have either zero or one [victory] tag per [results] tag. Valid keys:
- If neither a [victory] nor [defeat] tag is specified, then all sides are issued default_result.
Notes
- does having multiple opposing sides with victory make sense??
- out of sync problems in MP with bonus gold?
- TODO : allow endlevel=no (may require server-side changes...)
- when someone is issued defeat in MP (when there is 3 or more teams), could they become an observer?