Modding Help How do you get a monster's drop pool and last injury with with Lua?

Discussion in 'Starbound Modding' started by glider521al, Dec 13, 2022.

  1. glider521al

    glider521al Scruffy Nerf-Herder


    The NPC table has a convenient function called npc.dropPools() which provides a list of strings corresponding to the treasure they can drop.

    I tried the function with the monster table (after all it has the function monster.setDropPools()), only to find that monster.dropPools() doesn't exists.

    I know that the "dropPools" attribute exist in the monsterType file and other mods can change it with monstertype.patch files, but I couldn't work out how to retrieve it with scripting.

    for the 2nd question Just found out that there is the damage(args) function on the monster object; which triggers with info each time the monster is damaged.


    Last edited: Dec 13, 2022

Share This Page