How to make a skill where you are given a random item

Hello, I would like to make a skill where I can give the party an item, or money, or give the user of the skill damage with a status effect. I'm pretty sure I have to use the common events tab in the database, but there are so many things to do there, I don't know which is the right choice.

Thank You!
Common event
Use control variable to get a random number, then conditional branches to decide the exact result based on the number.
You could use the Eventcommand Script. There is a Helpthread in the Forums:
https://forums.rpgmakerweb.com/index.php?threads/script-call-equivalent-of-events.6248/

In your Event you would use the normal Eventcommand Control Variable1 to Random 1 to 20, for example.
Than u use EventcommandScript and insert this:
$game_party.gain_item($data_items[id], amount)

You need to replace"id" with a Number or with a reference to a game variable in our case:
$game_party.gain_item($data_items[$game_variables[1]], 1)

Thisway you safe yourself the Work of making dozens if not hundrets of conditional Branches.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-a-skill-where-you-are-given-a-random-item.104247/