aliens

Author Topic: Question about Soldier training and request for medikit mod  (Read 2021 times)

Offline Eagleclaws17

  • Sergeant
  • **
  • Posts: 14
    • View Profile
Question about Soldier training and request for medikit mod
« on: October 19, 2020, 02:29:41 am »
I do know how soldiers stats can increase (Accuracy increases when hitting an enemy with a firearm etc.), but Im wondering what defines how much the stats increase every time an ability gets trained until it hits the max cap, and if you can change the amount of stats that increase with each successful training.

And another small thing I cant get my head on is how to enable a simple healthrecovery without the need of fixing a Fatal Wound.
An Idea I had for this would be a Mod that reworks Medkits, by making Pain not only restoring Morale, but also reducing Stun, Stim restoring Energy and Health and Heal fixing Fatal Wounds, but since I am a complete rookie in Modding I cant get a Proper Ruleset done for it, I cant even locate the type of Code that determines the mechanics for the Heal, Stim and Pain feature

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8597
    • View Profile
Re: Question about Soldier training and request for medikit mod
« Reply #1 on: October 19, 2020, 10:20:37 am »
I do know how soldiers stats can increase (Accuracy increases when hitting an enemy with a firearm etc.), but Im wondering what defines how much the stats increase every time an ability gets trained until it hits the max cap, and if you can change the amount of stats that increase with each successful training.

https://www.ufopaedia.org/index.php/Experience

In OXC, training is fixed.

In OXCE, you can affect how much experience an action awards:
- by ruleset: https://openxcom.org/forum/index.php/topic,4230.0.html
- by scripts: https://openxcom.org/forum/index.php/topic,4230.msg93690.html#msg93690

And another small thing I cant get my head on is how to enable a simple healthrecovery without the need of fixing a Fatal Wound.
An Idea I had for this would be a Mod that reworks Medkits, by making Pain not only restoring Morale, but also reducing Stun, Stim restoring Energy and Health and Heal fixing Fatal Wounds, but since I am a complete rookie in Modding I cant get a Proper Ruleset done for it, I cant even locate the type of Code that determines the mechanics for the Heal, Stim and Pain feature

In OXCE, you can override all this using scripts, script hook called 'healUnit'.

Relevant source code: https://github.com/MeridianOXC/OpenXcom/blob/oxce-plus/src/Battlescape/TileEngine.cpp#L4071

Offline Eagleclaws17

  • Sergeant
  • **
  • Posts: 14
    • View Profile
Re: Question about Soldier training and request for medikit mod
« Reply #2 on: October 19, 2020, 03:31:32 pm »
Alright, thanks for the information, but either there is no information for the non-combat stats (tu/Stamina/Health/Strength) tho, or I am either Blind or just beeing a Rookie haha

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8597
    • View Profile
Re: Question about Soldier training and request for medikit mod
« Reply #3 on: October 19, 2020, 03:55:34 pm »
Alright, thanks for the information, but either there is no information for the non-combat stats (tu/Stamina/Health/Strength) tho, or I am either Blind or just beeing a Rookie haha

https://www.ufopaedia.org/index.php/Experience#Secondary_Stats