Hi all! First post from a newbie here and really hoping you can help.
I've tried doing this myself but don't seem to be making headway. I try to do as much as I can before bothering anyone else but this really has me stuck.
I have 2 Families:
1) Monsters
2) Loot
Goal:
When a Monster dies, it creates Loot from a "loot table". Different Monsters will create different loot and some loot will be rarer than others.
Of course, I could do it like this (in pseudo code):
ON DEATH: Goblin
IF Random = 1-10 ----> loot: gold (1-5)
= 11-15 ----> loot: gold (5-10)
= 16-17 -----> loot: dagger
= 18 ----> loot: potion
ON DEATH: Orc
IF Random = 1-5 ----> loot: gold (5-10)
= 6-10 ----> loot: sword
= 11-15 -----> loot: armor
= 16-20 ----> loot: shield
But as you can see, with a lot of Monster and Loot types, the event list will get really long!