1. If you're looking for help-related things (for example, the key rebinding tutorial), please check the FAQ and Q&A forum! A lot of the stickies from this forum have been moved there to clean up space.
    Dismiss Notice

NPC ID

Discussion in 'Starbound Discussion' started by Eclipse-the-dragon, Apr 26, 2018.

  1. Eclipse-the-dragon

    Eclipse-the-dragon Zero Gravity Genie

    what is the ID of the bystanders in villages? the ones just live there, not the shopkeepers or the ones with guns.
     
  2. Zephyrhawk

    Zephyrhawk Void-Bound Voyager

    Are you using this for /spawnnpc?
    Try "villager"
    Code:
    /spawnnpc avian villager
    Seems to work. Switch out "avian" with any other race like usual for the spawnnpc command.
     
  3. Eclipse-the-dragon

    Eclipse-the-dragon Zero Gravity Genie

    ok. is where a way to pick what they have on (like have the avian naked), and what about shopkeeper kinds?


    ok. got the naked side down, but not the shop side.
    Code:
    /spawnnpc avian villager
    /spawnnpc Avian villager
    
    Avian = naked
    avian = not naked
    still need help with the different kinds of shopkeeper.
     
    Last edited: Apr 29, 2018
  4. Zephyrhawk

    Zephyrhawk Void-Bound Voyager

    Sorry for getting back to you late.
    The usage for the spawnnpc command is
    Code:
     /spawnnpc [race] [npctype] [level] [seed] [json overrides]
    Here's an example of spawning a glitch gun merchant at level 5

    Code:
    /spawnnpc glitch merchant 5 1234 '{"scriptConfig":{"merchant":{"categories":{"glitch":["randomguns"]}}}}'
    Replace "1234" with another seed (I'm not sure how to randomize this without typing it out) for different glitches/clothing.
    Spawning in a randomguns merchant at level 1 causes the game to crash when talking to that NPC, so be careful of level limitations.
    Here are some more common merchant types that you can replace "randomguns" with or even add on another merchant pool. There's a more extensive list of pools in the game assets.

    "genericarmour"
    "basicmerchant"
    "randomguns"
    "randomswords"
    "<race>armour"
    "<race>ingredients"

    Wherever you see <race> just put in avian/human/novakid etc.
     
    Last edited: Apr 30, 2018
  5. Eclipse-the-dragon

    Eclipse-the-dragon Zero Gravity Genie

    if it is in packed.pak, it's to big for notepad to open.
    and the whole is a bit to mach for me to get it seems.
     
    Last edited: Apr 30, 2018
  6. Zephyrhawk

    Zephyrhawk Void-Bound Voyager

    You can unpack that file (packed.pak) using these instructions to gain more insight on the merchant pools, or the game in general. Let me know if you need more help, cheers.
     
  7. Eclipse-the-dragon

    Eclipse-the-dragon Zero Gravity Genie

    got it unpacked, but still deeply lost.
    also, where can i find the files for mods from the workshop?
    do you know?
     
  8. Zephyrhawk

    Zephyrhawk Void-Bound Voyager

    Started a conv with you, seems like we're getting a bit off topic. Cheers
     
  9. Eclipse-the-dragon

    Eclipse-the-dragon Zero Gravity Genie

    i can't get the merchant, so i may as will ask if someone knows where the workshop mod files are.

    the whole /spawnnpc glitch merchant 5 1234 '{"scriptConfig":{"merchant":{"categories":{"glitch":["randomguns"]}}}}' is to mach for me.
    mostly the '{"scriptConfig":{"merchant":{"categories":{"glitch":["randomguns"]}}}}' part. if i did get it, the merchants i'd are the one giving Furniture, Decoratives and Clothing.

    i get the '/spawnnpc glitch merchant 5 1234' part, but not the'{"scriptConfig":{"merchant":{"categories":{"glitch":["randomguns"]}}}}' half.
     

Share This Page