aliens

Author Topic: Research requirement for buyable soldiers.  (Read 4550 times)

Offline Lemonymous

  • Squaddie
  • *
  • Posts: 4
    • View Profile
Research requirement for buyable soldiers.
« on: October 23, 2015, 11:02:26 am »
Hi, I've been tinkering a bit with some ruleset modding, but can't figure out how to do this.

Is it possible to have a research requirement for buyable soldier types?

This, doesn't work: The Psionic will be hireable at the start of the game, instead of after Psi lab has been researched.
Code: [Select]
  - type: STR_SOLDIER_PSIONIC
    dependencies:
      - STR_PSI_LAB
    costBuy: 130000
    costSalary: 20000
    minStats:
      tu: 50
      stamina: 40
      health: 25
      bravery: 10
      reactions: 30
      firing: 40
      throwing: 40
      strength: 20
      psiStrength: 70
      psiSkill: 0
      melee: 20
    maxStats:
      tu: 60
      stamina: 70
      health: 40
      bravery: 60
      reactions: 60
      firing: 70
      throwing: 80
      strength: 40
      psiStrength: 100
      psiSkill: 16
      melee: 40
    statCaps:
      tu: 80
      stamina: 100
      health: 60
      bravery: 100
      reactions: 100
      firing: 120
      throwing: 120
      strength: 70
      psiStrength: 100
      psiSkill: 100
      melee: 120
    armor: STR_NONE_UC
    standHeight: 22
    kneelHeight: 14
    femaleFrequency: 100
    soldierNames:
      - SoldierName/

   
Code: [Select]
requires:
      - STR_PSI_LAB
also doesn't work

Offline R1dO

  • Colonel
  • ****
  • Posts: 442
    • View Profile
Re: Research requirement for buyable soldiers.
« Reply #1 on: October 23, 2015, 12:25:04 pm »
Hi,

According to Nightly Ruleset Reference it is currently not possible to specify a research requirement for a soldier type.

Offline Lemonymous

  • Squaddie
  • *
  • Posts: 4
    • View Profile
Re: Research requirement for buyable soldiers.
« Reply #2 on: October 23, 2015, 01:20:13 pm »
I see. That's unfortunate.

Thanks for clearing that up for me.

Offline SupSuper

  • Lazy Developer
  • Administrator
  • Commander
  • *****
  • Posts: 2162
    • View Profile
Re: Research requirement for buyable soldiers.
« Reply #3 on: October 24, 2015, 01:45:26 am »
Hi,

According to Nightly Ruleset Reference it is currently not possible to specify a research requirement for a soldier type.
Not anymore!

Offline R1dO

  • Colonel
  • ****
  • Posts: 442
    • View Profile
Re: Research requirement for buyable soldiers.
« Reply #4 on: October 24, 2015, 01:59:42 am »
How can i  make statements that last longer than a single day if you keep coding so fast  :o

Offline hellrazor

  • Commander
  • *****
  • Posts: 2027
  • Deep Ruleset Digger & Bughunter
    • View Profile
    • Github Account
Re: Research requirement for buyable soldiers.
« Reply #5 on: October 24, 2015, 03:07:03 am »
According to this you can now :>

Offline Lemonymous

  • Squaddie
  • *
  • Posts: 4
    • View Profile
Re: Research requirement for buyable soldiers.
« Reply #6 on: October 24, 2015, 05:46:50 am »
Not anymore!

Wow! You're amazing! Thanks :D

Edit: Just tested it, and it works perfectly.
« Last Edit: October 24, 2015, 06:03:25 am by Lemonymous »

Offline Cooper

  • Colonel
  • ****
  • Posts: 151
  • Chryssalids are awesome
    • View Profile
Re: Research requirement for buyable soldiers.
« Reply #7 on: November 09, 2015, 04:55:37 pm »
To avoid spoilers, is there a way to hide non-researched soldiers from the salaries list in the Monthly Costs section?