Random human spawn from Table.

Started by TheRexus100, September 21, 2015, 06:38:04 AM

Previous topic - Next topic

TheRexus100

Hey, how can i make a mini mod that let you "make" from resources a pawn ( human) with random stats that is your colonist already.Is it possible? Thanks.It's for my private using only.

I made this but its not even showing in hydroponic...

<ThingDef ParentName="PlantBase">
    <defName>ColonistPlant</defName>
    <label>colonist plant</label>
    <statBases>
      <MaxHitPoints>85</MaxHitPoints>
      <Beauty>12</Beauty>
    </statBases>
    <description>An advance tech plant that grows Colonist.</description>
    <graphicData>
      <texPath>Things/GrowGoods/Plant/GoldBush</texPath>
      <graphicClass>Graphic_Single</graphicClass>
    </graphicData>
    <selectable>true</selectable>
    <pathCost>10</pathCost>
    <ingestible>
      <preferability>Plant</preferability>
      <nutrition>0.40</nutrition>
    </ingestible>
    <plant>
      <dieIfLeafless>true</dieIfLeafless>
      <shootsSeeds>false</shootsSeeds>
      <harvestTag>Standard</harvestTag>
      <harvestedThingDef>Colonist</harvestedThingDef>
      <harvestDestroys>true</harvestDestroys>
      <harvestYield>1
      </harvestYield>
      <sowTags>
        <li>Hydroponic</li>
      </sowTags>
      <topWindExposure>0.1</topWindExposure>
      <growDays>7</growDays>
      <fertilityFactorGrowthRate>0.6</fertilityFactorGrowthRate>
      <visualSizeRange>
        <min>0.25</min>
        <max>1.00</max>
      </visualSizeRange>
    </plant>
  </ThingDef>

Fluffy (l2032)

Hah, plant people. Nice!

Not sure why this doesnt show on the hydro table, seems like it probably should, but then again I haven't worked with plants at all yet.

You might want to join the modding slack, there's probably more people there who can help you faster!
https://ludeon.com/forums/index.php?topic=14501.0

TheRexus100


RinusC

Make Table that human spawn, failed and lack my game.

TheRexus100

What i need to write?
<products>
<Colonist>40</Colonist>
</products>

OR

<products>
<SpawnColonist>40</SpawnColonist>
</products>

Im not good at modding.I started to learn.Can you help me?

SlimeCrusher

Sorry mate, you need dll coding for that, so it won't be a simple mod, unless you know how to code dll stuff...
Now, don't ask me how to do that, since dll is still gibberish to me  ;D

TheRexus100