Modding Help treasure pool returning multiple items at once

Discussion in 'Starbound Modding' started by odkupiciel375, May 14, 2017.

  1. odkupiciel375

    odkupiciel375 Starship Captain

    Hi.
    Is it possible to create treasurepool that will return more than just one item
    Code:
          "pool" : [
            {"weight" : 0.5, "item" : [ "redstim", 1, ["pool" : "poolName"]]},
            {"weight" : 0.5, "item" : [ "stimpak", 1, ["pool" : "poolName"]]}
          ]
    OR
          "pool" : [
            {"weight" : 0.5, "item" : [ "redstim", 1, ["item" : "itemName"]]},
            {"weight" : 0.5, "item" : [ "stimpak", 1, ["item" : "itemName"]]}
          ]
    OR
          "pool" : [
            {"weight" : 0.5, "item" : [ [["pool" : "poolName"], "redstim", 1 ]]},
            {"weight" : 0.5, "item" : [ [["pool" : "poolName"], "stimpak", 1 ]]}
          ]
    
    rather than just
    Code:
          "pool" : [
            {"weight" : 0.5, "item" : [ "redstim", 1]},
            {"weight" : 0.5, "item" : [ "stimpak", 1]}
          ]
    
     
  2. bk3k

    bk3k Oxygen Tank

    Yes - a few ways I believe. For one thing, you can return entire pools.

    Code:
      "bk3k_cheater" : [
        [0, {
          "fill" : [
              {"pool" : "bk3k_cheater_equipment"},
              {"item" : ["autochip", 10000]},
              {"item" : ["autodrive", 10000]},
              {"item" : ["techcard", 10000]},
              {"item" : ["manipulatormodule", 10000]},
              {"item" : ["money", 100000]},
              {"item" : ["money", 100000]},
              {"item" : ["money", 100000]},
              {"item" : ["money", 100000]},
              {"item" : ["liquidfuel", 65000]},
              {"item" : ["upgrademodule", 10000]}
             
            ]
          }
        ]
      ],
    
    That's sort of a mess-around pool, the extra money entries are there so I can swap other items names lazily. And notice it references another pool entirely.
    Code:
    /spawntreasure bk3k_cheater
    would spawn everything you see there, as well as "bk3k_cheater_equipment" too. The other pools you reference can of course use their own rules.

    But what I posted has no weights and no rounds unlike some other treasurepools you've probably seen. You'd simply get everything. Like many other things in Starbound, there are several possible ways to do most anything.
     
    odkupiciel375 likes this.
  3. odkupiciel375

    odkupiciel375 Starship Captain

    Thx for help now "it just works"
     

Share This Page