Hi
I've been thinking lately how to create a loot system. I would like a given monster to drop items assigned to it. While it's easy to do, after creating families for enemies and items, I don't know how to combine it with each other. I tried creating different variables for item families or enemies but still nothing.
For example, a Goblin should drop a sword when killed, so for sword I created a variable ID=0, but now how to force the game that when the goblin's life is equal to or less than 0, it creates an object after the item's ID, i.e. in this case ID=0, which is a sword.