Author Topic: Statstrings condition on multiple statistics  (Read 1921 times)

Offline Alpha Centauri Bear

  • Colonel
  • ****
  • Posts: 462
    • View Profile
Statstrings condition on multiple statistics
« 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.

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8597
    • View Profile
Re: Statstrings condition on multiple statistics
« Reply #1 on: October 22, 2020, 12:15:14 am »
Code: [Select]
statStrings:
  - string: "A"
    tu: [61, ~]
    strength: [51, ~]
« Last Edit: October 22, 2020, 12:17:36 am by Meridian »

Offline Alpha Centauri Bear

  • Colonel
  • ****
  • Posts: 462
    • View Profile
Re: Statstrings condition on multiple statistics
« Reply #2 on: October 22, 2020, 03:29:11 am »
Awesome. Thank you.

Offline Alpha Centauri Bear

  • Colonel
  • ****
  • Posts: 462
    • View Profile
Re: Statstrings condition on multiple statistics
« Reply #3 on: October 23, 2020, 03:35:16 am »
Any way to make OR condition? Like TU > 60 OR stamina > 80?

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8597
    • View Profile
Re: Statstrings condition on multiple statistics
« Reply #4 on: October 23, 2020, 09:44:28 am »
Code: [Select]
statStrings:
  - string: "A"
    tu: [61, ~]
  - string: "A"
    tu: [~, 60]
    stamina: [81, ~]
« Last Edit: October 23, 2020, 10:09:30 am by Meridian »