Modding Help How to control NPC's in a dungeon

Discussion in 'Starbound Modding' started by ImSoAwesome, Jul 8, 2017.

  1. ImSoAwesome

    ImSoAwesome Orbital Explorer

    I'm making a dungeon, and I want an NPC to be able to move to a certain point and do something (give the player an item, open a door, activate something, activate a command etc.) when triggered, like during the avian mission. Is there any way that you can help me? Thanks.
     
  2. IHart

    IHart Scruffy Nerf-Herder

    /behaviors/sequences/avianmission/
    Behavior trees are complicated. Good luck!
     
  3. ImSoAwesome

    ImSoAwesome Orbital Explorer

    o_Ohmmmm. I can see your point. It's gonna be a toughy.
     
  4. cpeosphoros

    cpeosphoros Orbital Explorer

    @IHart you may also want to have a look at /scripts/stateMachine.lua and do a grep for where and how it's used around vanilla and some good npc mods.
     
    IHart likes this.

Share This Page