Two Questions (moveto radius 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.
Two Questions (moveto radius etc)
Hi,
I would like to have the enemy leader run away when one of my units or allied units get within 2 hexes of his location but it only seems to work if they actually stand on the exact hex, not go within a 2 hex radius.
Also, I think there is a way to limit the number of a certain unit that the Ai can recruit, can anyone tell me how to do that?
Help appreciated.
I would like to have the enemy leader run away when one of my units or allied units get within 2 hexes of his location but it only seems to work if they actually stand on the exact hex, not go within a 2 hex radius.
Code: Select all
[event]
name=moveto
first_time_only=yes
[filter]
side=1,2,3,4,5
x=40
y=4
radius=2
[/filter]
messages etc.
[/event]
Help appreciated.
Re: Two Questions (moveto radius etc)
There's no radius= in SUF. A SUF can have a [filter_location] though.
Re: Two Questions (moveto radius etc)
I did this:
[event]
name=moveto
first_time_only=yes
[filter]
side=1,2,3,4,5
[filter_location]
x=40
y=4
radius=2
[/filter_location]
[/filter]
Like I think you said, and it worked, ty loads
Do you have an answer to my second question?
[event]
name=moveto
first_time_only=yes
[filter]
side=1,2,3,4,5
[filter_location]
x=40
y=4
radius=2
[/filter_location]
[/filter]
Like I think you said, and it worked, ty loads
Do you have an answer to my second question?
Re: Two Questions (moveto radius etc)
Check the macros page for the macro named {LIMIT_CONTEMPORANEOUS_RECRUITS}..
http://www.wesnoth.org/macro-reference.xhtml
http://www.wesnoth.org/macro-reference.xhtml
Re: Two Questions (moveto radius etc)
Ty, I used {LIMIT_RECRUITS} and it's all good, thanks for the help