Selecting the current side's units

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.
Post Reply
acidian113
Posts: 5
Joined: December 31st, 2016, 3:15 pm

Selecting the current side's units

Post by acidian113 »

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?
User avatar
Ravana
Forum Moderator
Posts: 3000
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: Selecting the current side's units

Post by Ravana »

There is variable side_number you can use.
acidian113
Posts: 5
Joined: December 31st, 2016, 3:15 pm

Re: Selecting the current side's units

Post by acidian113 »

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!
Post Reply