Modding Help How to make something spawn randomly. (Random Generated?)

Discussion in 'Starbound Modding' started by DarkraiDUD3, Feb 5, 2014.

  1. DarkraiDUD3

    DarkraiDUD3 Subatomic Cosmonaut

    Hey, it's me again with another forum post for a mod help. But however, that doesn't matter because that's what this forum is for. Anyways, I'm wondering on how to make your vanity item, let's just say, a blue baseball cap and make it randomly generate if it's possible? Can you supply a code for it too. Thanks! -DarkraiDUD3
     
  2. intervencion

    intervencion Existential Complex

    I think so, but IDK how.
     
  3. DarkraiDUD3

    DarkraiDUD3 Subatomic Cosmonaut

    Can has example of explanation please?
     
  4. Motionless

    Motionless Pangalactic Porcupine

    Inside starbound assets:
    \assets\treasure\basictreasure.treasurepools

    Something like this:

    Code:
    {
      "__merge" : [],
      "basicTreasure" : [
       [1, { "pool" : [ [0.0003, "baseballhat",1]]  }],
       [2, { "pool" : [ [0.0003, "baseballhat",1]]  }],
       [3, { "pool" : [ [0.0003, "baseballhat",1]]  }]
    }
    This will add your custom baseball hat to the pool list in basictreasure.treasurepools with around 2% chance of dropping like all those hats.
    (Syntax might not be correct but it gives you the general idea)
     
    DarkraiDUD3 likes this.

Share This Page