Ludeon Forums

RimWorld => Mods => Help => Topic started by: Adam561 on March 09, 2014, 07:55:17 PM

Title: Research Prerequisite for Research?
Post by: Adam561 on March 09, 2014, 07:55:17 PM
Hello!

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

Like this:
RayTech1 => RayTech2
Title: Re: Research Prerequisite for Research?
Post by: Serrate Bloodrage on March 09, 2014, 10:26:04 PM
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>
Title: Re: Research Prerequisite for Research?
Post by: Adam561 on March 09, 2014, 10:45:39 PM
OOH... Im so stupid.... I only did <prerequisite>RayTech2</prerequisite> and forgot the <li></li> part... Thanks anyway!