Difference between revisions of "ModificationWML"
From The Battle for Wesnoth Wiki
(→The [modification] top level tag: The documentation for [ai] was misleading) |
(Delete common keys and tags documented in AddonsWML) |
||
Line 2: | Line 2: | ||
== The [modification] toplevel tag == | == The [modification] toplevel tag == | ||
− | This tag describes an SP or MP modification. A modification is, practically speaking, a bunch of events which get included into the scenario if the modification is enabled. | + | This [[AddonsWML|addon module]] tag describes an SP or MP modification. A modification is, practically speaking, a bunch of events which get included into the scenario if the modification is enabled. |
− | The following keys/tags are recognized for '''[modification]''': | + | The following keys/tags are recognized for '''[modification]''', in addition to all the common [[AddonsWML|addon module keys and tags]]: |
− | |||
− | |||
* '''type''': where the modification will be available for playing. Possible values are ''sp'', ''mp'', and ''hybrid''. | * '''type''': where the modification will be available for playing. Possible values are ''sp'', ''mp'', and ''hybrid''. | ||
− | |||
− | |||
* '''allow_scenario''': a list of scenario ids. Only the scenarios with matching ids will be allowed to be played with this modification. | * '''allow_scenario''': a list of scenario ids. Only the scenarios with matching ids will be allowed to be played with this modification. | ||
* '''disallow_scenario''': a list of scenario ids. Only the scenarios with matching ids will not be allowed to be played with this modification. Cannot be used in parallel with allow_scenario. | * '''disallow_scenario''': a list of scenario ids. Only the scenarios with matching ids will not be allowed to be played with this modification. Cannot be used in parallel with allow_scenario. | ||
Line 21: | Line 17: | ||
* '''ignore_incompatible_modification''': same as ignore_incompatible_scenario, but for modifications. | * '''ignore_incompatible_modification''': same as ignore_incompatible_scenario, but for modifications. | ||
* '''require_modification''': a boolean value; if set to yes, all players have to have this modification installed to join the game. Default no. | * '''require_modification''': a boolean value; if set to yes, all players have to have this modification installed to join the game. Default no. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== The [resource] toplevel tag == | == The [resource] toplevel tag == | ||
Line 38: | Line 22: | ||
{{DevFeature1.13|2}} | {{DevFeature1.13|2}} | ||
− | The '''[resource]''' toplevel tag | + | The '''[resource]''' toplevel tag is another type of [[AddonsWML|addon module tag]] which is similar to '''[modification]''' but is invisible to the player. It can only be loaded on developer request, by the '''[load_resource]''' tag. It supports most of the common [[AddonsWML|addon module keys and tags]]. Besides that, there are no additional keys or tags supported in '''[resource]'''. |
Revision as of 18:00, 26 March 2023
The [modification] toplevel tag
This addon module tag describes an SP or MP modification. A modification is, practically speaking, a bunch of events which get included into the scenario if the modification is enabled.
The following keys/tags are recognized for [modification], in addition to all the common addon module keys and tags:
- type: where the modification will be available for playing. Possible values are sp, mp, and hybrid.
- allow_scenario: a list of scenario ids. Only the scenarios with matching ids will be allowed to be played with this modification.
- disallow_scenario: a list of scenario ids. Only the scenarios with matching ids will not be allowed to be played with this modification. Cannot be used in parallel with allow_scenario.
- allow_era: same as allow_scenario, but for eras.
- disallow_era: same as disallow_scenario, but for eras. Can't be used with allow_era.
- allow_modification: same as allow_scenario, but for modifications.
- disallow_modification: same as disallow_scenario, but for modifications. Can't be used with allow_modification.
- ignore_incompatible_scenario: a list of scenario ids. The scenarios with matching ids will be considered compatible with this modification regardless their dependencies.
- ignore_incompatible_era: same as ignore_incompatible_scenario, but for eras.
- ignore_incompatible_modification: same as ignore_incompatible_scenario, but for modifications.
- require_modification: a boolean value; if set to yes, all players have to have this modification installed to join the game. Default no.
The [resource] toplevel tag
(Version 1.13.2 and later only)
The [resource] toplevel tag is another type of addon module tag which is similar to [modification] but is invisible to the player. It can only be loaded on developer request, by the [load_resource] tag. It supports most of the common addon module keys and tags. Besides that, there are no additional keys or tags supported in [resource].