

define creates a key that lets the game know when a user has selected to play a scenario from your campaign. abbrev defines a campaign abbreviation that will be used as a prefix for the names of save files from that campaign its value should also be in quotation marks and preceded by an underscore. The value of name must be in quotation marks and be preceded by an underscore to facilitate translation into other languages. name is the name of your campaign that the user will see. Id is the unique indentifier of the campaign. The next group of lines uniquely identifies the campaign: Step 4: The Campaign id, name, abbrev and define Keys Next we must associate the campaign with the textdomain you have just defined: Step 3: Associating the Campaign with the Text Domain Now we add the opening WML tag that lets the game know this is a campaign: Path="data/add-ons/Simple_Campaign/translations" This should be a file inside the campaign directory. The textdomain also specifies a path to the directory where the compiled translation files will be stored. The textdomain should be the campaign's directory's name prefixed with "wesnoth-", to ensure that it does not conflict with other textdomains that might be specified on a given system and is compatible with WesCamp. The textdomain tag specifies a name for the textdomain, which is what is used in the tag, and is used in campaign scenarios to connect the strings with translations. The first line of the campaign file is the WML tag, which specifies where the game should look for translations to the strings in the campaign. 7 Step 7: The Campaign's First Scenario.5 Step 5: The Campaign Icon, Image, and Description.4 Step 4: The Campaign id, name, abbrev and define Keys.3 Step 3: Associating the Campaign with the Text Domain.
