Research Prerequisite for Research?

Started by Adam561, March 09, 2014, 07:55:17 PM

Previous topic - Next topic

Adam561

Hello!

Is it possible to have a Research Prerequisite for a Research?

Like this:
RayTech1 => RayTech2
==Adam561==
==Mod Author and Designer==
==RimWorld==
www.adam561mods.webs.com

Serrate Bloodrage

#1
Yep!
It's in the .xml as the bottom line of the definition of a newly created project and looks something like-

<prerequisites><li>CreativeThoughts</li></prerequisites>

So you might have something like-


<ResearchProjectDef>
      <defName>RayTech1</defName>
      <label>Ray Tech</label>
      <descriptionBefore>For people who love tanning booths.</descriptionBefore>
      <totalCost>5000</totalCost>
      <prerequisites></prerequisites>
   </ResearchProjectDef>

   <ResearchProjectDef>
      <defName>RayTech2</defName>
      <label>Ray Tech 2</label>
      <descriptionBefore>Because some people love a deep tan.</descriptionBefore>
      <totalCost>5000</totalCost>
      <prerequisites><li>RayTech1</li></prerequisites>
   </ResearchProjectDef>
_______________________________________

If only my colonist could have 'personal time' to reduced stress =D

Adam561

OOH... Im so stupid.... I only did <prerequisite>RayTech2</prerequisite> and forgot the <li></li> part... Thanks anyway!
==Adam561==
==Mod Author and Designer==
==RimWorld==
www.adam561mods.webs.com