OpenXcom Forum

Modding => Help => Topic started by: Alpha Centauri Bear on October 21, 2020, 11:59:27 pm

Title: Statstrings condition on multiple statistics
Post by: Alpha Centauri Bear on October 21, 2020, 11:59:27 pm
Sorry, could not find a dedicated statstrings thread.

Is it possible to build a condition on a multiple statistics? Like say add letter "A" if TU > 60 AND strength > 50? Couldn't find the example or explanation on that in readme. Thank you.
Title: Re: Statstrings condition on multiple statistics
Post by: Meridian on October 22, 2020, 12:15:14 am
Code: [Select]
statStrings:
  - string: "A"
    tu: [61, ~]
    strength: [51, ~]
Title: Re: Statstrings condition on multiple statistics
Post by: Alpha Centauri Bear on October 22, 2020, 03:29:11 am
Awesome. Thank you.
Title: Re: Statstrings condition on multiple statistics
Post by: Alpha Centauri Bear on October 23, 2020, 03:35:16 am
Any way to make OR condition? Like TU > 60 OR stamina > 80?
Title: Re: Statstrings condition on multiple statistics
Post by: Meridian on October 23, 2020, 09:44:28 am
Code: [Select]
statStrings:
  - string: "A"
    tu: [61, ~]
  - string: "A"
    tu: [~, 60]
    stamina: [81, ~]