Description not loading

The place to post your WML questions and answers.

Moderator: Forum Moderators

Forum rules
  • Please use [code] BBCode tags in your posts for embedding WML snippets.
  • To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
Post Reply
someone-else
Posts: 7
Joined: May 26th, 2018, 5:37 pm

Description not loading

Post by someone-else »

I am trying to create a simple campaign in WML. I get no errors when I start the app, however the description does not load. Here is the file:
The_Elvish_War.zip
(3.3 KiB) Downloaded 205 times
User avatar
josteph
Inactive Developer
Posts: 741
Joined: August 19th, 2017, 6:58 pm

Re: Description not loading

Post by josteph »

It works if you set the id attribute under [campaign]. It's probably a bug that without the id attribute it showed the description of UtBS instead.
someone-else
Posts: 7
Joined: May 26th, 2018, 5:37 pm

Re: Description not loading

Post by someone-else »

Thanks, it loads now, but it automatically says I have been defeated.
User avatar
josteph
Inactive Developer
Posts: 741
Joined: August 19th, 2017, 6:58 pm

Re: Description not loading

Post by josteph »

Change canrecruit=no to canrecruit=yes for both sides. This is controlled by victory_when_enemies_defeated=yes, see https://wiki.wesnoth.org/ScenarioWML
Post Reply