Author Topic: Better MedKit - help needed  (Read 4731 times)

Offline ibanix

  • Captain
  • ***
  • Posts: 75
    • View Profile
Better MedKit - help needed
« on: July 04, 2014, 12:14:59 pm »
After being annoyed with my wounded Captain taking over a month to recover, I wanted to find a way to speed healing time up. Since that isn't currently exposed to Rulesets, I did the next best thing, and implemented and improved med-kit. It requires researching an alien autopsy first, for the nanotechnology.

The thing is, I can't seem to get this to work. The research topic isn't showing up for me. Can someone have a look and tell me what I did wrong? Thanks!

Offline moriarty

  • Commander
  • *****
  • Posts: 1421
    • View Profile
    • Luke's OX mod site
Re: Better MedKit - help needed
« Reply #1 on: July 04, 2014, 01:02:25 pm »
I've taken a quick look, and I can't see an error in the ruleset. does it work if you remove the dependencies and requirements?

Offline ibanix

  • Captain
  • ***
  • Posts: 75
    • View Profile
Re: Better MedKit - help needed
« Reply #2 on: July 06, 2014, 03:43:04 am »
If I remove the dependencies on the Improved Med-Kit research, I am able to find the research topic and manufacture the Med Kits w/o any issues.

So something must be wrong here:

#    dependencies:
#       - STR_ETHEREAL_CORPSE
#       - STR_SNAKEMAN_CORPSE
#       - STR_MUTON_CORPSE
#       - STR_FLOATER_CORPSE
#       - STR_SECTOID_CORPSE
#    requires:
#       - STR_MEDI_KIT
#  - name: STR_FLOATER_CORPSE
#    unlocks:
#       - STR_MEDI_KIT_IMPROVED
#  - name: STR_ETHEREAL_CORPSE
#    unlocks:
#       - STR_MEDI_KIT_IMPROVED
#  - name: STR_SNAKEMAN_CORPSE
#    unlocks:
#       - STR_MEDI_KIT_IMPROVED
#  - name: STR_MUTON_CORPSE
#    unlocks:
#       - STR_MEDI_KIT_IMPROVED
#  - name: STR_FLOATER_CORPSE
#    unlocks:
#       - STR_MEDI_KIT_IMPROVED

Offline Deskulpa

  • Sergeant
  • **
  • Posts: 21
    • View Profile
Re: Better MedKit - help needed
« Reply #3 on: July 06, 2014, 05:16:07 am »
In my game take time to research the vanilla Medi Kit, look what i did, maybe will help you:

research:
  - name: STR_MEDI_KIT
    dependencies:
      - STR_SECTOID_MEDIC
      - STR_FLOATER_MEDIC
      - STR_EXAMINATION_ROOM
  - name: STR_EXAMINATION_ROOM
    unlocks:
      - STR_MEDI_KIT
  - name: STR_FLOATER_MEDIC
    getOneFree:
      - STR_MEDI_KIT
  - name: STR_SECTOID_MEDIC
    getOneFree:
      - STR_MEDI_KIT
« Last Edit: July 06, 2014, 05:18:37 am by Deskulpa »

Offline ibanix

  • Captain
  • ***
  • Posts: 75
    • View Profile
Re: Better MedKit - help needed
« Reply #4 on: July 06, 2014, 06:09:08 am »
Is there a reason you use getOneFree: instead of unlocks: ?

Offline ibanix

  • Captain
  • ***
  • Posts: 75
    • View Profile
Re: Better MedKit - help needed
« Reply #5 on: July 06, 2014, 06:12:06 am »
If I read your ruleset correctly, the Medi-Kit research would become available to research after you researched the Exam Room; or you'd get the Medi-Kit research topic free if you research a Sectoid or Floater medic. Is that right?

Offline Deskulpa

  • Sergeant
  • **
  • Posts: 21
    • View Profile
Re: Better MedKit - help needed
« Reply #6 on: July 06, 2014, 03:30:42 pm »
Yes, work for me.