the [have_unit] tag

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
Ebef
Posts: 4
Joined: January 10th, 2010, 8:40 pm

the [have_unit] tag

Post by Ebef »

I'm trying to write something in wml and I'm fascinated of this simple structures. But I didn't find something about the syntax of the [have_unit] tag and so I don't know how to use it and the [filter_adjacent] tag (I found it on http://wiki.wesnoth.org/WML_Abilities ). I tried to integrate s.th. like this in my scenario, but it doesn't work:

Code: Select all

           [have_unit]
                side=1
                type={White Mage,Mage of Light}
            [/have_unit]

Thank you for your answers!

Ebef

Edit: I hope this is the right forum - if not move please.
User avatar
Ken_Oh
Moderator Emeritus
Posts: 2178
Joined: February 6th, 2006, 4:03 am
Location: Baltimore, Maryland, USA

Re: the [have_unit] tag

Post by Ken_Oh »

This line doesn't make any sense:

type={White Mage,Mage of Light}

{SOMETHING} means you're trying to call a macro, so take the { and } out.

This is the right forum, so you're OK.
Ebef
Posts: 4
Joined: January 10th, 2010, 8:40 pm

Re: the [have_unit] tag

Post by Ebef »

That was the problem...without the { }...thank you!

Ebef
Post Reply