Modding Help Custom Dungeon issue. (NPC's dying)

Discussion in 'Starbound Modding' started by ZaelixStrife, Apr 22, 2022.

  1. ZaelixStrife

    ZaelixStrife Big Damn Hero

    I've made my own dungeon, and everything inside works. I created an NPC and placed them in the dungeon using Tiled. The NPC appears, and will sit there the entire time. However if i go to interact with the NPC for dialogue, the NPC activates the Death animation and disappears.
    This is the error code

    [20:15:17.581] [Error] Exception while invoking lua function 'interact'. (LuaException) Error code 2, [string "/npcs/bmain.lua"]:228: attempt to index a nil value (field 'board')
    stack traceback:
    [C]: in metamethod '__index'
    [string "/npcs/bmain.lua"]:228: in global 'setInteracted'
    [string "/npcs/bmain.lua"]:206: in function <[string "/npcs/bmain.lua"]:200>

    I have used my custom Race NPC, as well as a Vanilla Human NPC and they both have this same issue. It only happens whenever the player attempts to interact dialogue with the npc

Share This Page