AI recruitment pattern

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
Crab
Inactive Developer
Posts: 200
Joined: March 18th, 2009, 9:42 pm

Re: AI recruitment pattern

Post by Crab »

Rya wrote:Wait a minute, shouldn't it be "=yes" for both in that sentence of Crab?

After all it should ignore it, right?
yes, you're right, it should be "yes". sorry for the error :)
Rya
Posts: 350
Joined: September 23rd, 2009, 9:01 am

Re: AI recruitment pattern

Post by Rya »

By the way here my script which I'm using for now (event is turn 2, so he can recruit more scouts at the beginning):

Code: Select all

  [if]
    [variable]
      name=temp.recruit
      contains="Fencer"
    [/variable]
    [then]
	{LIMIT_CONTEMPORANEOUS_RECRUITS 4 "Spearman" 4}
	{LIMIT_CONTEMPORANEOUS_RECRUITS 4 "Horseman" 4}
	{LIMIT_CONTEMPORANEOUS_RECRUITS 4 "Fencer" 4}
	{LIMIT_CONTEMPORANEOUS_RECRUITS 4 "Merman Fighter" 4}
	{LIMIT_CONTEMPORANEOUS_RECRUITS 4 "Mage" 4}
	{LIMIT_CONTEMPORANEOUS_RECRUITS 4 "Bowman" 4}
	{LIMIT_CONTEMPORANEOUS_RECRUITS 4 "Cavalryman" 4}
	{LIMIT_CONTEMPORANEOUS_RECRUITS 4 "Heavy Infantryman" 4}
      [modify_side]
        [ai]
          recruitment_pattern=
          recruitment_ignore_bad_combat=yes
          recruitment_ignore_bad_movement=yes
        [/ai]
      [/modify_side]
    [/then]
  [/if]
Wesnoth
The developer says "no".
Post Reply