aliens

Author Topic: psiSkill for all hidred soldiers set at minimim  (Read 286 times)

Offline robin

  • Commander
  • *****
  • Posts: 1232
  • ULTIMATE ROOKIE
    • View Profile
psiSkill for all hidred soldiers set at minimim
« on: December 27, 2024, 03:40:19 pm »
I noticed that, in my mod, all new soldiers have psiSkill set to the minimum value 15; the value should range from 15-30 instead.
This affects both the initial soldiers and the soldiers that you hire.

Mod is here: https://openxcom.org/forum/index.php?topic=3319.0
To reproduce, start a new game and check soldiers stats and hire soldiers.

The 0.30.4 mod ruleset (soldiers_apoc.rul) modifies/overrides the default STR_SOLDIER. I also tried to delete STR_SOLDIER and define a whole new STR_SOLDIER but I get the same result.
The mod also forces:
 * Psionic training at any time
 * Psi-Strenght Evalutation
Don't know if relevant

Could you help me solve this issue?

Code: [Select]
soldiers:
  - type: STR_SOLDIER
    costBuy: 60000
    costSalary: 25000
    minStats:
      tu: 60
      stamina: 50
      strength: 30
      psiStrength: 15
      psiSkill: 15
      melee: 40
    maxStats:
      tu: 70
      firing: 60
      throwing: 70
      psiStrength: 40
      psiSkill: 30
      melee: 60
    trainingStatCaps:
      tu: 80
      stamina: 80
      bravery: 80
      reactions: 80
      firing: 80
      throwing: 80
      strength: 80
      psiStrength: 80
      psiSkill: 80
      melee: 80
    statCaps:
      tu: 100
      stamina: 100
      bravery: 100
      reactions: 100
      firing: 100
      throwing: 100
      strength: 100
      psiStrength: 100
      psiSkill: 100
      melee: 100
    # avatar stuff:
    armorForAvatar: STR_NONE_UC
    avatarOffsetX: 67
    avatarOffsetY: 47

Offline psavola

  • Commander
  • *****
  • Posts: 899
    • View Profile
Re: psiSkill for all hidred soldiers set at minimim
« Reply #1 on: December 27, 2024, 03:52:09 pm »
The ruleset reference seems to say that psiSkill is treated differently from all other stats. I suppose currently the engine doesn't support what you want (no idea whether this could be achieved with y-scripts)?

minStats    Minimum values used to generate the soldier's Starting Stats. In this case, psiSkill is treated as the initial stat (not generated).
maxStats    Maximum values used to generate the soldier's Starting Stats. In this case, psiSkill is treated as the minimum value for the first month of psi training (actual value is 100%-150%).

Offline robin

  • Commander
  • *****
  • Posts: 1232
  • ULTIMATE ROOKIE
    • View Profile
Re: psiSkill for all hidred soldiers set at minimim
« Reply #2 on: December 27, 2024, 04:39:40 pm »
Ah I see, I didn't think about the fact that psiSkill has a different behavior. Thanks