How do i make random things appear in a ester egg

hi all

can anybody help with ma prob
is there a way to make random things appear from item like for example
i made an easter egg
and gives you random items
like a kinder egg

thx a lot
IAmTheKiwi

One way I can think of is:
making the Egg consume on pick up.
make a item type group called “easterEggLootTable” adding all your items in there.
the script would be:
when unit uses item
if item type of triggering item == easter Egg then
give unit(triggering unit) new item(random item type from item type group(easterEggLootTable))

1 Like