Changing unit (ex: Troll turns into Fencer)

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
Syath
Posts: 13
Joined: November 29th, 2009, 6:07 pm

Changing unit (ex: Troll turns into Fencer)

Post by Syath »

The scenario I am trying to make calls for 6 players (max), and each player must be a different unit. It also calls for them to be specific units (player one ALWAYS needs to be a fencer, in every game, etc).

I need to 'transform' a unit into a different type, for example, player 1 starts with an Elvish Captain, but I require player 1 to be a Fencer.

I am trying to keep all of my code in a nice configuration file, and do not wish to create factions of my own.

Does any WML exist that can be added in preset to turn each leader into a specific unit (fencer, bowman, spearman, mage, knight, theif)?








(If you haven't guessed, I'm trying to make a board game scenario ;))
User avatar
beetlenaut
Developer
Posts: 2867
Joined: December 8th, 2007, 3:21 am
Location: Washington State
Contact:

Re: Changing unit (ex: Troll turns into Fencer)

Post by beetlenaut »

You can do it, but why can't you just set the leaders how you want?

Code: Select all

[side]
    type=Fencer
    ...
[side]
Campaigns: Dead Water,
The Founding of Borstep,
Secrets of the Ancients,
and WML Guide
Post Reply