Author Topic: [Documentation] Soldier Transformations  (Read 3441 times)

Offline Ethereal

  • Colonel
  • ****
  • Posts: 342
    • View Profile
Re: [Documentation] Soldier Transformations
« Reply #15 on: July 30, 2018, 01:45:35 am »
Hi,  I´m interested in the cloning dead soldiers feature. How do I enable it ingame?

Code: [Select]
soldierTransformation:
  - name: STR_CLONE_SOLDIER
    requires:
      - STR_SOLDIER_CLONE
    cost: 1500000
    producedSoldierType: STR_SOLDIER
    producedSoldierArmor: STR_NONE_UC
    allowsDeadSoldiers: true
    allowsLiveSoldiers: false
    needsCorpseRecovered: false
    createsClone: true
    allowedSoldierTypes:
      - STR_SOLDIER
    lowerBoundAtMinStats: false
    upperBoundAtMaxStats: false
    upperBoundAtStatCaps: true
    flatOverallStatChange:
      bravery: 10
      reactions: 10
      firing: 10
      throwing: 10
      melee: 10

Allegedly so...

Offline Carfax

  • Sergeant
  • **
  • Posts: 31
  • Question your own beliefs once a year
    • View Profile
Re: [Documentation] Soldier Transformations
« Reply #16 on: January 25, 2020, 08:13:37 pm »
Hi. I have a problem with the cloning code. I added it to the W40k mod (thx ohartenstein) and everything is working , but it won´t take the random stat option for the cloned Soldier.
All other optinons like % stat gain/loss, reset training etc. work but the random just won´t. the clone is generated with the stats at the time of death. Can somebody have a look at my .rul
and help me out pls. Playing with Extended 6.2
Code: [Select]
  - name: STR_CLONE_GUARDSMAN
    producedSoldierType: STR_GUARDSM
    needsCorpseRecovered: false
    createsClone: true
    allowsDeadSoldiers: true
    allowedSoldierTypes:
      - STR_GUARDSM
    forbiddenPreviousTransformations:
      - STR_CLONE_GUARDSMAN
    cost: 15000
    transferTime: 72
    useRandomStats: true
    lowerBoundAtMinStats: true
    upperBoundAtMaxStats: false
    upperBoundAtStatCaps: true