Author Topic: Specialist training  (Read 684 times)

Offline TheCurse

  • Colonel
  • ****
  • Posts: 180
    • View Profile
Specialist training
« on: September 15, 2019, 01:33:38 am »
Nope, its not another thread about introducing soldier classes  :P
Would it be possible to have multiple different trainings (in the same gym), basically one for each stat?
Well not exactly one for each stat, but more or less role.
E.g. you get a rookie that just really sucks at shooting but has decent melee.
Instead of putting him for some months into a general training, you just put him in melee training to get a usable strength/melee rating and he´s gonna be a brawler...
So still can't shoot for shit, but decent melee attacker in faster time. You can put him in other trainings after that as well, each just once of course.

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • ***
  • Posts: 8848
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: Specialist training
« Reply #1 on: September 16, 2019, 07:23:45 pm »
Sorry, not possible. I had similar ideas initially - wanted to make a shooting range and a gym. Nope.

Offline TheCurse

  • Colonel
  • ****
  • Posts: 180
    • View Profile
Re: Specialist training
« Reply #2 on: September 16, 2019, 11:51:13 pm »
Interesting.
So you can make a general training, improving all stats by some %, but could not differ between stats?
Or cannot have multiple training categories?
I´ll put it in my list of features, in case I ever have enough time to write my own engine  ;)
(unfortunately current time schedule says never)

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • ***
  • Posts: 8848
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: Specialist training
« Reply #3 on: September 17, 2019, 02:54:48 am »
You can't define which stats are trained in the gym and which aren't.

Offline TheCurse

  • Colonel
  • ****
  • Posts: 180
    • View Profile
Re: Specialist training
« Reply #4 on: September 19, 2019, 02:06:46 am »
thats interesting. and kinda sad...
i take it there´s no possible work around with training of a soldier being a manufacturing item or such... or un-removable implant items...
why of all things are stats hardcoded.

Offline krautbernd

  • Commander
  • *****
  • Posts: 504
    • View Profile
Re: Specialist training
« Reply #5 on: September 19, 2019, 10:39:27 am »
thats interesting. and kinda sad...
i take it there´s no possible work around with training of a soldier being a manufacturing item or such... or un-removable implant items...
why of all things are stats hardcoded.
That would be a case for soldier transformations, but for simple training this would be kind of overkill.

Training stats are not hardcoded - you can modify them in whatever way you want. It's just that there are no separate stat limits for martial training and 'normal' training.

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 5495
  • Aaand we're back!
    • View Profile
    • My Wiki
Re: Specialist training
« Reply #6 on: September 19, 2019, 12:46:39 pm »
Training stats are not hardcoded - you can modify them in whatever way you want. It's just that there are no separate stat limits for martial training and 'normal' training.

Martial training stats are hardcoded, here: https://github.com/MeridianOXC/OpenXcom/blob/oxce-plus/src/Savegame/Soldier.cpp#L1047
It's firing, health, melee, throwing, strength, tu and stamina.

And there are separate limits for martial training ("trainingStatCaps") and normal training ("statCaps"), see: https://www.ufopaedia.org/index.php/Ruleset_Reference_Nightly_(OpenXcom)#Player_Units_.28Soldiers.29

Offline krautbernd

  • Commander
  • *****
  • Posts: 504
    • View Profile
Re: Specialist training
« Reply #7 on: September 19, 2019, 03:02:33 pm »
Martial training stats are hardcoded, here: https://github.com/MeridianOXC/OpenXcom/blob/oxce-plus/src/Savegame/Soldier.cpp#L1047
It's firing, health, melee, throwing, strength, tu and stamina.

And there are separate limits for martial training ("trainingStatCaps") and normal training ("statCaps"), see: https://www.ufopaedia.org/index.php/Ruleset_Reference_Nightly_(OpenXcom)#Player_Units_.28Soldiers.29
Interesting. I was under the impression that trainingStatCaps also define which stats can/can't be trained during martial training. Thanks for clearing that up :)

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 5495
  • Aaand we're back!
    • View Profile
    • My Wiki
Re: Specialist training
« Reply #8 on: September 19, 2019, 03:10:28 pm »
Interesting. I was under the impression that trainingStatCaps also define which stats can/can't be trained during martial training. Thanks for clearing that up :)

They could, if you set something to 0 for example... but it's a global setting, not per facility as requested here.

Offline LytaRyta

  • Colonel
  • ****
  • Posts: 319
  • Lisbeth ;p My Engrish is easy bad, Csaba is dead!
    • View Profile
    • svetmightandmagic.cz
Re: Specialist training
« Reply #9 on: September 24, 2019, 11:48:14 pm »
Specialist *S.P.E.C.I.A.L.* Training

"..
..
Nope, its not another thread about introducing soldier classes  :P
Would it be possible to have multiple different trainings (in the same gym), basically one for each stat?
Well not exactly one for each stat, but more or less role.
E.g. you get a rookie that just really sucks at shooting but has decent melee.
Instead of putting him for some months into a general training, you just put him in melee training to get a usable strength/melee rating and he´s gonna be a brawler...
So still can't shoot for shit, but decent melee attacker in faster time. You can put him in other trainings after that as well, each just once of course.

Re: Specialist training
« Reply #1 on: September 16, 2019, 07:23:45 pm »
Sorry, not possible. I had similar ideas initially - wanted to make a shooting range and a gym. Nope.
..
.."




 .. yap, it just get me on mind, - almost exactly as it is used in Fallout Shelter game

(..there is such *S.P.E.C.I.A.L.* training - for every kind of stats (Strength, P..xx.., Energy, Charisma, Intelligence, Agility, Luck..),there is own training room for it..

..or, even better solution, - one big, universal training room with optional, (settingable) setting between those RPG´ parameters stats

« Last Edit: September 25, 2019, 08:32:32 pm by LytaRyta »

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • ***
  • Posts: 8848
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: Specialist training
« Reply #10 on: September 25, 2019, 08:15:14 pm »
Doable, but I decided to use multiple soldier types to have actual multiple soldier types (hybrids, dogs, etc.).

Offline Vangrimar1

  • Colonel
  • ****
  • Posts: 102
    • View Profile
Re: Specialist training
« Reply #11 on: October 03, 2019, 02:39:56 pm »
А почему бы не сделать тренировку агентов в пилотов. Это будет более реалистично.

Offline X-Man

  • Colonel
  • ****
  • Posts: 175
  • My english is bad... So, what?
    • View Profile
Re: Specialist training
« Reply #12 on: October 03, 2019, 03:01:54 pm »
А почему бы не сделать тренировку агентов в пилотов. Это будет более реалистично.

Ага, я тоже затрахался уже напрягать остатки былых знаний английского, чтоб что-то здесь написать ;D

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • ***
  • Posts: 8848
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: Specialist training
« Reply #13 on: October 03, 2019, 07:32:29 pm »
Guys, this is an international thread. I don't know what you wrote and didn't bother to check, but non-English posts will from now on be deleted without warning. (Except in dedicated threads, like for translations.)

Offline X-Man

  • Colonel
  • ****
  • Posts: 175
  • My english is bad... So, what?
    • View Profile
Re: Specialist training
« Reply #14 on: October 03, 2019, 08:41:14 pm »
Guys, this is an international thread. I don't know what you wrote and didn't bother to check, but non-English posts will from now on be deleted without warning. (Except in dedicated threads, like for translations.)

Excuse us for this moment of little weakness  ;)