Setting team TC with WML etc.

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.
User avatar
TheJM
Posts: 130
Joined: January 9th, 2009, 6:22 pm

Re: Setting team TC with WML etc.

Post by TheJM »

Your leader carries over by simply referencing his id (I think it's description in 1.4?) in your [side] tag.

To access other heroes, simply recall them in a prestart event:

Code: Select all

[event]
  name=prestart
     [recall]
       id=HeroName
     [/recall]
[/event]
Change HeroName to the hero's name.

Edit: or did I misunderstand you?

When you create the leader/other hero, make sure you set their id (description in 1.4?) to something so that you can recall them in future scenarios.


..Hope that answered your question. I'm pretty new to WML myself, so don't sue me if it doesn't work.. :P
User avatar
Longbow
Posts: 303
Joined: May 18th, 2008, 3:59 pm

Re: Setting team TC with WML etc.

Post by Longbow »

Ty mate

I had to change id to description but yeah, worked fine thanks

:)
My campaign, Elvish Legacy
My inventively named Era
opensourcejunkie
Posts: 547
Joined: August 11th, 2008, 3:19 pm

Re: Setting team TC with WML etc.

Post by opensourcejunkie »

TheJM wrote:Your leader carries over by simply referencing his id (I think it's description in 1.4?) in your [side] tag.
I don't know if that's a new feature in 1.5 or not (I'm new to 1.5 myself), but in 1.4 it was simply enough to have a unit with canrecruit=yes in your recall list. The first such unit that wesnoth runs across replaces the default unit specified in the [side] tag.

But again, that's 1.4 stuff.
--OSJ
what if the Bible's claims about Christ depicted accurate, verifiable history? given some research, you might be surprised at the evidence...
User avatar
Longbow
Posts: 303
Joined: May 18th, 2008, 3:59 pm

Re: Setting team TC with WML etc.

Post by Longbow »

Yeah, just by setting the dude as team leader he carries stats 'n' stuff, 1.4.5 I'm on btw
My campaign, Elvish Legacy
My inventively named Era
Post Reply