Selecting the current side's units
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.
-
- Posts: 5
- Joined: December 31st, 2016, 3:15 pm
Selecting the current side's units
Hey there, I'm kinda new and I can't find any way to filter units by the current turn's side.
Inside of a new turn event, I'm trying to [heal_unit] the current side's forces that are standing on keeps (and castles, but that comes later), but I can't find any way to filter by who's turn it is. Any help / ideas?
Inside of a new turn event, I'm trying to [heal_unit] the current side's forces that are standing on keeps (and castles, but that comes later), but I can't find any way to filter by who's turn it is. Any help / ideas?
Re: Selecting the current side's units
There is variable side_number you can use.
-
- Posts: 5
- Joined: December 31st, 2016, 3:15 pm
Re: Selecting the current side's units
and that contains the current side's number? or do I have to set it before the [heal_unit] tag?
EDIT: Nevermind, just found it low on the variables page, I must've just missed it. Sorry for the trouble!
EDIT: Nevermind, just found it low on the variables page, I must've just missed it. Sorry for the trouble!