aliens

Author Topic: [DONE][SUGGESTION]Forbid psi-training for soldier type  (Read 2194 times)

Offline Nord

  • Commander
  • *****
  • Posts: 1637
  • The Gate is open.
    • View Profile
[DONE][SUGGESTION]Forbid psi-training for soldier type
« on: October 17, 2021, 06:17:48 pm »
Idea was to forbid psi-nullers to train in psi-labs. It is useful for not ot train tank ai in a gym too, and other similar cases.
Maybe it is possible to add one or two properties into soldier definition?
« Last Edit: December 23, 2021, 03:30:10 pm by Meridian »

Offline Buscher

  • Colonel
  • ****
  • Posts: 167
    • View Profile
Re: [SUGGESTION]forbid training for soldier type.
« Reply #1 on: October 19, 2021, 10:29:30 pm »
It may not be exactly what you are looking for but you can set the trainingStatCaps to 0. For example I did it for the prisoners who are not allowed to train. In the training screen they will show as DONE similar to the other units which cannot increase their stats by training anymore.

Maybe it works the same for PSI training when you set psiSkill to 0 for trainingStatCaps

Code: [Select]
soldiers:
  - type: STR_PENITENT_GUARD
...
    minStats:
...
    maxStats:
...
    statCaps:
...
    trainingStatCaps: # can't train
      tu: 0
      stamina: 0
      health: 0
      firing: 0
      throwing: 0
      strength: 0
      psiStrength: 0
      psiSkill: 0
      melee: 0
    armor: STR_PENAL_ARMOR_BROWN_UC

Offline Nord

  • Commander
  • *****
  • Posts: 1637
  • The Gate is open.
    • View Profile
Re: [SUGGESTION]forbid training for soldier type.
« Reply #2 on: October 20, 2021, 09:23:49 am »
No, it does not work with psi-skill. Soldier with 0 stat cap will train one month, and then message "psi training finished" will pop up. And then he will count again as not trained.

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8616
    • View Profile
Re: [SUGGESTION]forbid training for soldier type.
« Reply #3 on: October 22, 2021, 04:39:22 pm »
todolisted

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8616
    • View Profile
Re: [DONE][SUGGESTION]Forbid psi-training for soldier type
« Reply #4 on: December 23, 2021, 03:32:06 pm »
No, it does not work with psi-skill. Soldier with 0 stat cap will train one month, and then message "psi training finished" will pop up. And then he will count again as not trained.

Since OXCE 7.2, this will work.

(set trainingStatCaps.psiSkill to zero)