User:Dlr365
From The Battle for Wesnoth Wiki
Works in Progress
[result] event tag
This tag would allow scenario authors to issue victory/defeat to specific sides, 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. 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.
- 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. The following keys may be used if endlevel=yes:
- The following tags are valid:
- [victory] : issues victory to the specified sides. Valid keys:
- side : the side to be given victory. Each [victory] tag may include multiple side keys. If not included, the [victory] tag is ignored.
- bonus : whether the sides specified in this [victory] tag should get bonus gold. Can be either yes or no. Defaults to no.
- 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. Valid keys:
- side : the side to be given defeat. Each [defeat] tag may include multiple side keys. If not included, the [defeat] tag is ignored.
- [victory] : issues victory to the specified sides. Valid keys:
Notes
- out of sync problems in MP with bonus gold?
- when someone is issued defeat in MP (when there is 3 or more teams), could they become an observer? or just get dropped & then have to rejoin?
- TODO : allow comma-delimited lists for side