Author Topic: [Answered] costUse include other stats beside TU, HP, Energy, Morale and Mana.  (Read 2225 times)

wcho035

  • Guest
Hi Meridian,

If this is not a big job. Currently costUse can only affect

     time:
     energy:
     morale:
     mana:
     health:

Can you also include the other missing stats like.

      stamina
      bravery:
      reactions:
      firing:
      throwing:
      strength:
      psiStrength:
      psiSkill:
      melee: 

Thanks?

I would like to this feature create to create drugs that affect soldiers stats
« Last Edit: February 11, 2023, 06:58:32 pm by Meridian »

Offline efrenespartano

  • Commander
  • *****
  • Posts: 765
  • I know a lot about the law and other lawyerings.
    • View Profile
Finnik wrote some very cool scripts last year that will help you get the results you look for.

https://openxcom.org/forum/index.php?topic=6721.0

Enviado desde mi LG-M400 mediante Tapatalk


wcho035

  • Guest
efrenespartano, you are the god man. Thank you for the link.

Meridian, don't worry about this.

Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9090
    • View Profile
Can you also include the other missing stats like.

No I cannot.

costUse cannot modify any stats, it can modify only resources. And it is already possible to modify all 6 resources.

current TU, energy, current HP, stun, morale and mana are not stats, they are resources.
max TU (pool), stamina, max HP (pool), bravery, (max) mana pool, firing/throwing/melee accuracy, strength, and so on... are not resources, they are stats.

wcho035

  • Guest
Thank you for the quick and kind reply Meridian. I appreciate the clarity.

Another solution is found.

I hope this message would be useful for others looking the same as what I am seeking.

Thank you all.