How to make WML act based on wether or not a unit attacked
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.
How to make WML act based on wether or not a unit attacked
I am trying to make a unit ability which is leadership that only works if the unit with the ability has attacked in that turn. so far, I have not been able to find any leads. anyone have input on this?
Re: How to make WML act based on wether or not a unit attack
you have to use
[filter]
to check whether the unit still has attacks left.Scenario with Robots SP scenario (1.11/1.12), allows you to build your units with components, PYR No preperation turn 1.12 mp-mod that allows you to select your units immideately after the game begins.
Re: How to make WML act based on wether or not a unit attack
That helps, but i don't know what code to put in the filter. Maybe... ?
Code: Select all
[filter]
attacks=0
[filter/]
Re: How to make WML act based on wether or not a unit attack
thanks! this is exactly what I need. I just added it.