Author Topic: [Done] Specific randomised stats for clones during Soldier Transformation.  (Read 8290 times)

wcho035

  • Guest
Hi all, I wish for this request for my mod. It is for clone soldiers to have premature aging. How it works is, clone soldier has x days they can function at their peak before their genetic instability caught up with them and their stats starts to decay (age) until they are useless.

This is to add a mechanic to balance out for creating a super soldier, a price has to be paid for performance gain.

This add a dynamic that my elite soldier can’t go on forever. This request is central to the creation of elite soldiers in my mod.
« Last Edit: October 13, 2019, 03:02:40 pm by Precentor Apollyon »

Offline krautbernd

  • Commander
  • *****
  • Posts: 1108
    • View Profile
Re: [suggestion] Premature aging for clones.
« Reply #1 on: September 20, 2019, 05:58:12 pm »
IIRC last time you mentioned something like this scripts were brought up (i.e. lowering stats when deployed on the battlescape) - would this be enough of a stop-gap measure, taking into account the random time between missions? Not saying a feature like wouldn't be interesting, but seeing how the only use for soldiers are battlescape missions you could get pretty much the same effect (limit usefulness/number of possible deplyoments) by using scripts.

wcho035

  • Guest
Re: [suggestion] Premature aging for clones.
« Reply #2 on: September 20, 2019, 06:30:36 pm »
This is a simplified version of my original request.

Please clarify a few points of what you have here.

"would this be enough of a stop-gap measure, taking into account the random time between missions?"

"seeing how the only use for soldiers are battlescape missions you could get pretty much the same effect (limit usefulness/number of possible deplyoments) by using scripts."

What do you mean by stop gap measure? You mean soldier temporary looses their stats while deploy in battle?

I am seeking permanent reduction of stats, to the point even below of their starting stats.

The purpose of this is to make player appreciate that for any gain in performance, there is a cost.

For myself, this is more of an experiment. I want to ensure there's a life cycle to this cloning business. You clone X number of soldiers from a template,  X number of soldiers each have different stats from a generation. The soldier from that generation will prove themselves and only the best performing clones will get clone again for the next generation. The aging mechanic will ensure you get rid of the older generation for the next better performing batch.

This is more of an experiment for me.. in gameplay. How much management is required to manage these elite clones.. and appreciate of their mortality and etc. In a way, I feel of the character side of the clone, as they struggle to be the best through trials and battles.

Personally, I don't know of how the other modders would utilize this feature. This suggestion is more of a self fish request on my part. I always wanted this in a UFO mod. Genetic breeding to build the ultimate soldier, slowly with gradual improvement to fight the aliens. Not cheat crafting a super soldier straight away.

If I wanted any... ANY features in UFO, this is perhaps the strongest in my desires. If I have this, it is enough for me, beside the craft vs hanger size request I made for specialized craft docking certain size hanger. I have plans to stay quiet after getting these two request and move on with the completion of my mod.


Offline ohartenstein23

  • Commander
  • *****
  • Posts: 1933
  • Flamethrowers fry cyberdisk circuits
    • View Profile
Re: [suggestion] Premature aging for clones.
« Reply #3 on: September 20, 2019, 06:58:30 pm »
You can permanently alter the stats of a soldier during battle or coming back from a battle using script functions.

Offline krautbernd

  • Commander
  • *****
  • Posts: 1108
    • View Profile
Re: [suggestion] Premature aging for clones.
« Reply #4 on: September 20, 2019, 07:20:40 pm »
What do you mean by stop gap measure? You mean soldier temporary looses their stats while deploy in battle?

I am seeking permanent reduction of stats, to the point even below of their starting stats.
Yeah, sorry for that, I should have worded that better. I meant "enough to satisfy the underlaying idea you're trying to implement". Instead of having stats reduced every day, have them reduced after every deployment (akin to stats are improved/trained after every deployment). Continous drain would make sense if you had "continous" use for your soldiers. Seeing how the only use your soldier have is being deployed to (randomly appearing) missions it would make sense to compromise for having stats reduced after deployment (if the underlaying idea is to limit their usefulness).

That way you could at least implement something very much akin to your initial idea without being dependant on others coding it for you. It might not be ideal, but it's probably workable. If it helps you can 'pretend' that your soldiers are in stasis/frozen between missions. It's often easier to find lore/fluff explanations to work around engine limitations instead of waiting for a specific feature to be implemented.

« Last Edit: September 20, 2019, 07:23:24 pm by krautbernd »

wcho035

  • Guest
Re: [suggestion] Premature aging for clones.
« Reply #5 on: September 20, 2019, 08:09:29 pm »
This is more of a personal request. I understand the coding part. If I can avoid it I will. Unfortunately, there is not that I could think off.. I wanted this more than the other features in the game, aside from the hybrid game setup, bless Meridian for enable it for me. Not that I am ungrateful.

Offline ohartenstein23

  • Commander
  • *****
  • Posts: 1933
  • Flamethrowers fry cyberdisk circuits
    • View Profile
Re: [suggestion] Premature aging for clones.
« Reply #6 on: September 20, 2019, 08:15:33 pm »
You can permanently alter the stats of a soldier during battle or coming back from a battle using script functions.

This does not require any new C++ code. The script functions are available by writing a ruleset file and can be used to make a per-battle decay, though not a per-geoscape-time-period decay.

wcho035

  • Guest
Re: [suggestion] Premature aging for clones.
« Reply #7 on: September 20, 2019, 08:40:14 pm »
You can permanently alter the stats of a soldier during battle or coming back from a battle using script functions.

Okay, let me understand this, the decay stats of a soldier, you can permanently alter in a battle, but will this stats transfer to the next battle?

Like you posted, "though not a per-geoscape-time-period decay."

Sorry, I need more clarity on this detail. You mean on Geoscape, the decay stats not stored?

I had consulted with Meridian, once a soldier is clone, it is possible to put a market on the soldier.

I wanted only 3 outcome.

1) X days before decay starts.

2) Decay percentage per day.

3) Final stats before decay stops.

Although soldier can continue to gain stats again through battle, but ultimately the decay will over ride it. This kind of feature has application like realistic experience decay, should some one request that feature one day. A soldier could decay from not training or in constant battle.

Or have taken something to have stats gain and then loses it over the days or weeks.

I just wanted a more fun and realistic game play with the cloning feature.

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9104
    • View Profile
Re: [suggestion] Premature aging for clones.
« Reply #8 on: September 20, 2019, 09:01:04 pm »
Okay, let me understand this, the decay stats of a soldier, you can permanently alter in a battle, but will this stats transfer to the next battle?

Yes, they will transfer to the next battle. That's what permanent means :)

I just wanted a more fun and realistic game play with the cloning feature.

Sorry, but what does "cloning" have to do with "realistic"?
« Last Edit: September 20, 2019, 09:05:55 pm by Meridian »

Offline ohartenstein23

  • Commander
  • *****
  • Posts: 1933
  • Flamethrowers fry cyberdisk circuits
    • View Profile
Re: [suggestion] Premature aging for clones.
« Reply #9 on: September 20, 2019, 09:04:29 pm »
Per-battle decay would mean that at the end of a mission, your clone soldier would lose some amount of stats. The exact nature of how much and how that interacts with gaining experience is up to you in writing the script. These stats will be kept on the soldier in the geoscape and the next time the soldier enters battle. You can write custom tags or variables that tracks how much a soldier has decayed if you wish - these can also be kept outside of battle.

Numbers 1 and 2 of what you want are not available with script functions.

wcho035

  • Guest
Re: [suggestion] Premature aging for clones.
« Reply #10 on: September 20, 2019, 09:06:20 pm »
I will define the “realistic” part with clone gaining super superior stats and make game easy, vs slow increment stats growth through generation breeding with limited life span for clones.

wcho035

  • Guest
Re: [suggestion] Premature aging for clones.
« Reply #11 on: September 20, 2019, 09:13:33 pm »
The other option is the clone “dies” (fired) at x day. I suppose it dies rather than stats decay. Would this be easier than and the other feature? With a counter climbing from the day the clone is created?  Clone would “die” in and not in battlescape?

wcho035

  • Guest
Re: [suggestion] Premature aging for clones.
« Reply #12 on: September 21, 2019, 05:07:57 am »
This is the inspiration behind my request.

https://www.sarna.net/wiki/Way_of_the_Clans

Like 40k and other mods out there, I would like to forge the identity of my mod base of this feature.

wcho035

  • Guest
Re: [suggestion] Randomised Stats during Soldier Transformation.
« Reply #13 on: September 25, 2019, 03:32:35 pm »
Hi ohartenstein23, I wish your day is well.

I was able to meet most of my quest for this with a script generously provided by Firaa. However one feature scripting can't provide is randomized stats in the requirement I need.

I understand currently, in Soldier transformation, there is this feature useRandomStats: false. This would allow general randomized stats can be generated for a clone Soldier.

If I could ask for a small feature, like a more control form of randomization.

For example, there is a ranged in the randomization per stats, in form of percentage.

Using the  percentGainedStatChange:   
   
      tu: 0
      stamina: 0
      health: 0
      bravery: 0
      reactions: 0
      firing: 0
      throwing: 0
      strength: 0
      psiStrength: 0
      psiSkill: 0
      melee: 0

Can something be modified to

percentGainedRANDOMStatChangeMAX:   

      tu: 5
      stamina: 5
      health: 5
      bravery: 5
      reactions: 5
      firing: 5
      throwing: 5
      strength: 5
      psiStrength: 5
      psiSkill: 5
      melee: 5
      Mana: 0

percentGainedRANDOMStatChangeMin:   

      tu: -5
      stamina: -5
      health: -5
      bravery: -5
      reactions: -5
      firing: -5
      throwing: -5
      strength: -5
      psiStrength: -5
      psiSkill: -5
      melee: -5
      Mana: 0

This will generate a random number for each stats, which can be +- 5 percent from the current stats of the donor soldier except for Mana. Currently, the useRandomStats: false does it for all stats.

I ask of your kindness if you can implement this feature,ohartenstein23. I understand any extra request in coding is time investment on your side. This extra feature would give any modder an interesting in modding their soldiers.

I requested this for the reason that in genetic engineering, there is always the chance of nature. Results can't be certain in any outcome in cloning. If I could implement this in a script, I would not be requesting it. This is the final piece in this request I am asking.  I would wish to close off this suggestion/request made, if this important feature to me can be made available.

Thank you for reading.
« Last Edit: September 25, 2019, 03:56:18 pm by wcho035 »

Offline ohartenstein23

  • Commander
  • *****
  • Posts: 1933
  • Flamethrowers fry cyberdisk circuits
    • View Profile
Re: [suggestion] Randomised Stats during Soldier Transformation.
« Reply #14 on: September 25, 2019, 04:14:08 pm »
snip

Let me make sure I have this right - you'd like a parameter in the transformations ruleset such that the stat change parameters can have some variance? For example, the percentGainedStatChange being -5% to +5% instead of just +5%.

Would adding a variance to each stat field work for you? That is, instead of defining min and max rolls, you define the average roll and the amount it can change around that:
Code: [Select]
soldierTransformations:
  - type: STR_SOME_TRANSFORMATION
    percentGainedStatChange:
      tu: 0 # default, soldier will gain +0% of their trained TUs on average
      stamina: 10 # average of +10% stamina
    percentGainedStatChangeVariance:
      tu: 5 # the actual change will be within -5% and +5% of the average change, here just -5% to +5% overall
      stamina: 5 # actual stamina change is +5% to +15%