[solved] SPECIAL_NOTES error

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
User avatar
Halbling
Posts: 16
Joined: February 19th, 2017, 5:12 pm
Location: Germany

[solved] SPECIAL_NOTES error

Post by Halbling »

Hi again!
I got an unit with an new ability. Everything is working fine, but when I put the SPECIAL_NOTES for this ability in the description, an error occures. It says somthing like: "unexpectet sign on the beginning of a line" and tells me to look at the line of the description of this unit.
If I delet that SPECIAL_NOTES or change it to another, it's fine working. All my other new SPECIAL_NOTES are fine working, too, only this one causes trouble.
Maybe, anyone can help me?

Here's the description-line, it's the {SPECIAL_NOTES_UNHEALS}:

Code: Select all

	description= _ "Toeterinnen wurden von einer dunklen Macht verfuehrt. Die Macht, Tote zu erwecken, ist ihnen nicht gegeben, doch setzen sie ihr Wissen daran, den Lebenden zu schaden. Sie lieben es, mit ihren schnellen Besen durch dunkle Hoehlen zu fliegen und ploetzlich aus Waenden aufzutauchen."+{SPECIAL_NOTES}+{SPECIAL_NOTES_MAGICAL}+{SPECIAL_NOTES_UNPOISON}+{SPECIAL_NOTES_UNHEALS}+{SPECIAL_NOTES_DURCHLASS}
And here's the SPECIAL_NOTES:

Code: Select all

#define SPECIAL_NOTES_UNHEALS
 _ " Diese Einheit fuegt benachbarten Gegnern Schadenspunkte zu."
#enddef
Please don't care about the language, it will be translated one day! But if someone wants to help me translat it, I would be glad ;)
Last edited by Halbling on July 5th, 2017, 6:05 am, edited 1 time in total.
User avatar
zookeeper
WML Wizard
Posts: 9742
Joined: September 11th, 2004, 10:40 pm
Location: Finland

Re: SPECIAL_NOTES error

Post by zookeeper »

Halbling wrote:All my other new SPECIAL_NOTES are fine working, too, only this one causes trouble.
Then it stands to reason that the problem is caused by whatever the difference between this one and all those others is. Probably that extra space between the underscore and the quote.
User avatar
Sapient
Inactive Developer
Posts: 4453
Joined: November 26th, 2005, 7:41 am
Contact:

Re: SPECIAL_NOTES error

Post by Sapient »

put the #enddef at the end of the line instead of putting it on a separate line.
that is why you are getting an extra linebreak.
http://www.wesnoth.org/wiki/User:Sapient... "Looks like your skills saved us again. Uh, well at least, they saved Soarin's apple pie."
User avatar
zookeeper
WML Wizard
Posts: 9742
Joined: September 11th, 2004, 10:40 pm
Location: Finland

Re: SPECIAL_NOTES error

Post by zookeeper »

Oh right, that too.
User avatar
Halbling
Posts: 16
Joined: February 19th, 2017, 5:12 pm
Location: Germany

Re: SPECIAL_NOTES error

Post by Halbling »

The #enddef at the end of the line did work!
But I don't understand it, all the others of my SPECIAL_NOTES have it in an extra line, too.
But it's working, so I don't car ;)
Thanks a lot, guys!
User avatar
Ravana
Forum Moderator
Posts: 3000
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: [solved] SPECIAL_NOTES error

Post by Ravana »

It works when you end line after calling those others.
Post Reply