multiple objects, overlapping effects

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
white_haired_uncle
Posts: 1456
Joined: August 26th, 2018, 11:46 pm
Location: A country place, far outside the Wire

multiple objects, overlapping effects

Post by white_haired_uncle »

If a unit possesses two objects, say abilities.leadership.value=15 and abilities.leadership.value=20, which one is selected?

What about abilities.leadership.value=-15 and abilities.leadership.value=-20?

Or abilities.leadership.value=-15 abilities.leadership.value=20?

Does it make any difference who the abilities are applied to (for example, if it only uses the greater of the two, would that only apply if they both apply only to allies, or if one applies to allies and one to enemies)?

In my specific case, I have abilities.leadership.value=-15 and abilities.leadership.value=-20 and I think it might be choosing -15 (though I can't completely trust that, hence I need to know what is really being used before I can address what is being reported). And I think it's possible that it's choosing -15 because it is the "greater" of the two.
Speak softly, and carry Doombringer.
User avatar
Ravana
Forum Moderator
Posts: 3317
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: multiple objects, overlapping effects

Post by Ravana »

Objects are stored as wml, so all tags are ordered. Whatever it currently does is what it will always do with same version of game.
white_haired_uncle
Posts: 1456
Joined: August 26th, 2018, 11:46 pm
Location: A country place, far outside the Wire

Re: multiple objects, overlapping effects

Post by white_haired_uncle »

You mean it will use whichever comes last?
Speak softly, and carry Doombringer.
Post Reply