Setting team TC with WML etc.
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.
Re: Setting team TC with WML etc.
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:
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..
To access other heroes, simply recall them in a prestart event:
Code: Select all
[event]
name=prestart
[recall]
id=HeroName
[/recall]
[/event]
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..
Re: Setting team TC with WML etc.
Ty mate
I had to change id to description but yeah, worked fine thanks
I had to change id to description but yeah, worked fine thanks
-
- Posts: 547
- Joined: August 11th, 2008, 3:19 pm
Re: Setting team TC with WML etc.
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.TheJM wrote:Your leader carries over by simply referencing his id (I think it's description in 1.4?) in your [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...
Re: Setting team TC with WML etc.
Yeah, just by setting the dude as team leader he carries stats 'n' stuff, 1.4.5 I'm on btw