About recruitmen patterns

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
Rhin
Posts: 29
Joined: January 25th, 2008, 9:28 pm
Location: Buenos Aires, Argentina

About recruitmen patterns

Post by Rhin »

Hi, I've checked a couple of scenarios, and I always see a similar pattern:
fighter,fighter,archer,scout

But, are there any other "choices"?
I mean, when I list which are the units the AI can recruit, she NEVER recruits goblin spearman, probably because what stands for fighter is the orcish grunt. So, what should I write in the pattern so the AI will recruit spearmen?
User avatar
Lizard
Posts: 355
Joined: January 19th, 2008, 8:20 am
Location: Hiding in a swamp (gtm +1; DST)

Post by Lizard »

Make an copy of the goblin into your campaign/whatever, change his usage to goblin and add goblin to the recruitment pattern. I have done the same with my Saurian Trainee. (expect he wasn't an goblin but a trainee as usage). I don't know if usages have any other influence than recruitment, but I doubt it.

Btw: mixed fighter is a common usage.
~ I'll heal you by 4 hp if you post next to me ~
Have a look at the Era of Strife, featuring Eltireans, Eventide, Minotaurs, Saurians and Triththa
Rhuvaen
Inactive Developer
Posts: 1272
Joined: August 27th, 2004, 8:05 am
Location: Berlin, Germany

Post by Rhuvaen »

There is also (in addition to those listed), the 'healer' usage.
Lizard wrote:Btw: mixed fighter is a common usage.
Nope, actually it has just been removed from trunk. Unless you're using 1.2.8 you won't find any of those left, and it could screw your pattern to use them.

Lizards suggestion is interesting. If you do copy the unit, do it this way:

Code: Select all

[unit]
  [base_unit]
    id=Goblin Spearman
  [/base_unit]
  id=My Goblin Spearman
  usage=goblin
[/unit]
That way, your unit will automatically get all the balancing and animation fixes of the mainline unit (and it's also less work ;)).

Note that the Grunt is superior to the Goblin Spearman in many ways, and the AI will usually choose the Spearman if it hasn't got enough gold to spend on Grunts (and then it won't save up another turn for a Grunt, typically).
User avatar
Lizard
Posts: 355
Joined: January 19th, 2008, 8:20 am
Location: Hiding in a swamp (gtm +1; DST)

Post by Lizard »

I use 1.3.14, but i have an mixed fighter in my own faction, I don't know where i did find this usage. Maybe one of the Windsong was one. I used their, files as a skeleton. Which Pattern could i use instead?

Code: Select all

Saurian Knife thrower
hitpoints: 39
melee:  5-3 blade
ranged: 4-4 pierce

current usage: mixed fighter
Last edited by Lizard on February 3rd, 2008, 2:35 pm, edited 1 time in total.
~ I'll heal you by 4 hp if you post next to me ~
Have a look at the Era of Strife, featuring Eltireans, Eventide, Minotaurs, Saurians and Triththa
CIB
Code Contributor
Posts: 625
Joined: November 24th, 2006, 11:26 pm

Post by CIB »

Wow, that base_unit tag is nice. Helpful for creating unit packs that use the animations of other unit packs.
Rhin
Posts: 29
Joined: January 25th, 2008, 9:28 pm
Location: Buenos Aires, Argentina

Post by Rhin »

Thought that might be the problem...

Thanks guys!

Ok now, let's give it a try...
Post Reply