Making a skill with random effects

Hi, I'd like to make a "Wheel of Fortune" kind of skill, but I have no idea how to make the script/common event or where to put it/how to call it.


To be more specific, I want to know how to make a skill that can do at least one of these:


A - cause damage based on a random element


B - cause a random state on the target


C - hurt or heals the enemy target with a 50%/50% chance


I would be so thankful if anyone could help me 🙁
the skill needs to call a common event as the effect.


In the common event you'll use a control variable command to generate a random number.


Followed by a series of conditional branches checking which number was generated, and using different force action commands to different skills depending on the result.
Additionally with this it's possible to set up some nice randomness to skills:


https://www.youtube.com/watch?v=a0RZ1dv4jyE
Thanks! I'm going to use the metronome system. ^u^

Original thread: https://forums.rpgmakerweb.com/threads/making-a-skill-with-random-effects.62963/