Changing AI parameters in events

The place to post your WML questions and answers.

Moderators: Forum Moderators, Developers

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
User avatar
Mathemagician
Posts: 29
Joined: March 24th, 2008, 10:42 pm
Location: Right behind you

Changing AI parameters in events

Post by Mathemagician »

I have the following code in a [side] tag:

Code: Select all

[ai]
	[avoid]
		terrain="Ww"
	[/avoid]
[/ai]
I'd like to remove that restriction in an event, but I can't see how to put [ai] tags in an event, or how to direct it to the correct side if I could. Anyone have any ideas?
Formerly NeoPhile

mattsc
Posts: 1149
Joined: October 13th, 2010, 6:14 pm
Location: Hidden on the hex behind Fred

Re: Changing AI parameters in events

Post by mattsc »

Hi — the information you need is given on this wiki page, section "Modifying Standard Aspects". There is even an example for the [avoid] aspect on there. It's for adding the aspect, but hopefully it will be clear enough how to remove it (which is shown for a different aspect earlier in the same section).

User avatar
Mathemagician
Posts: 29
Joined: March 24th, 2008, 10:42 pm
Location: Right behind you

Re: Changing AI parameters in events

Post by Mathemagician »

Thanks mattsc! I was looking at AiWML and Wesnoth_AI for that, didn't see it anywhere.
Formerly NeoPhile

Post Reply