Research mods

Started by mrofa, November 06, 2014, 12:09:52 PM

Previous topic - Next topic

mrofa

Anyone got a ide how in example i could change Hp with research mod now ?
All i do is clutter all around.

Shinzy

Like increase colonists health after reasearch project?
(You know my abilities on these matters but that doesn't stop me from trying to help! Have at you!)

would looking at the Pneumatic Picks research be of any help?

mrofa

No i mean to incerase hp of buildings.
Pawns are your branch of buisness :D
All i do is clutter all around.

skullywag

Dll, check the auto turret research.
Skullywag modded to death.
I'd never met an iterator I liked....until Zhentar saved me.
Why Unity5, WHY do you forsake me?

mrofa

I know how to do it in dll, i was just wondering if its still possible to do in research mods.
All i do is clutter all around.

Matthiasagreen

I think I understand what you want and a good place to look might be the old superior crafting mod. I remember one specific research that increased the HP of the conduits. As soon as you finished researching it, all conduits were marked as damaged and you needed to fix them to get them to the new HP. 
Hi, my name is Matthias and I am a Rimworld Addict. It has been five seconds since my last fix...

skullywag

Problem is that used the old system not the new system you need to use a dll now as far as i know unless Tynan changed how the old system works but hasnt let anyone know.
Skullywag modded to death.
I'd never met an iterator I liked....until Zhentar saved me.
Why Unity5, WHY do you forsake me?

mrofa

Quote from: Matthiasagreen on November 06, 2014, 12:54:52 PM
I think I understand what you want and a good place to look might be the old superior crafting mod. I remember one specific research that increased the HP of the conduits. As soon as you finished researching it, all conduits were marked as damaged and you needed to fix them to get them to the new HP.

In a6 it worked diffrently and you could use research mod, i had that in the mod working :D

Quote from: skullywag on November 06, 2014, 12:56:37 PM
Problem is that used the old system not the new system you need to use a dll now as far as i know unless Tynan changed how the old system works but hasnt let anyone know.

Thanks, wasnt sure even thrugh i did check out research mod class a bit had hoped that i did miss something :D
All i do is clutter all around.

Rikiki

I use it to unlock recipes in a workbench if you want to have a look at M&Co. mods.

Here is an example:

  <ResearchProjectDef>
    <defName>CommonEnergyPack</defName>
    <label>Common: energy pack</label>
    <description>   After ...
    </description>
    <descriptionDiscovered>   You hav...
    </descriptionDiscovered>
    <totalCost>50</totalCost>
    <prerequisites>
      <li>CommonBioBatteryCells</li>
    </prerequisites>
    <researchMods>
      <li>
        <specialAction>Common.Building_ElectronicWorkbench.DoCustomAction</specialAction>
      </li>
    </researchMods>
  </ResearchProjectDef>


You then just have to code the Common.Building_ElectronicWorkbench.DoCustomAction function. :)