0
Answered

Stat Modifiers Order

Kejo 1 month ago in Stats updated by Marti (Lead Developer) 4 weeks ago 2

Hi, I couldn't find details on the order on which the stat modifiers are applied other than that it is "automatically handled for you". What determines the order in which stat modifiers are applied to a stat? Also, it there a way to set the order manually?

Unity version:
2019.2
Game Creator version:
1.1.5

Answer

Answer
Answered

Correct. However, I would like to highlight that "Multiplier" operations are performed first and then the additive operations. That's why the order doesn't matter: Because adding X + Y + Z is the same as Z + Y + X.

Because multiplications and sums are performed separately in strict order, the results will always be consistent. Cheers!

Please disregard. Upon some testing, modifier appears to be based off on the original value regardless of whether any prior modifiers were applied.

Answer
Answered

Correct. However, I would like to highlight that "Multiplier" operations are performed first and then the additive operations. That's why the order doesn't matter: Because adding X + Y + Z is the same as Z + Y + X.

Because multiplications and sums are performed separately in strict order, the results will always be consistent. Cheers!