The key 'target' is deprecated...

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
markm
Posts: 157
Joined: August 13th, 2008, 3:53 pm
Location: Halifax Nova Scotia Canada

The key 'target' is deprecated...

Post by markm »

In porting to 1.12 from 1.10 I am seeing Invalid WML FOund warnings saying the key 'target' is deprecated and will go away soon.

It seems to be talking about a [target] ... [/target] section in AI specifications. I kind of inherited those from scenarios I used as templates when starting out, I can maybe do away with the target sections completely in some scenarios. But for some it seems to be serving a purpose so I an trying to find out what one nowadays uses to tell the AI who to pick on and who to not be eager to attack... ?

-MarkM-
Developing Between the Worlds campaign portmanteau.
Have you eaten today?
User avatar
Iris
Site Administrator
Posts: 6728
Joined: November 14th, 2006, 5:54 pm
Location: Chile
Contact:

Re: The key 'target' is deprecated...

Post by Iris »

The [target] tag was superseded by [goal].
Author of the unofficial UtBS sequels Invasion from the Unknown and After the Storm (now available for Wesnoth 1.14.x and 1.15.4+).
User avatar
markm
Posts: 157
Joined: August 13th, 2008, 3:53 pm
Location: Halifax Nova Scotia Canada

Re: The key 'target' is deprecated...

Post by markm »

Awesome, thanks! :)

-MarkM-
Developing Between the Worlds campaign portmanteau.
Have you eaten today?
Mabuse
Posts: 2130
Joined: November 6th, 2007, 1:38 pm

Re: The key 'target' is deprecated...

Post by Mabuse »

btw, [goal] works a bit differently, but its well dokumented
The best bet is your own, good Taste.
Post Reply