RNG in common events

Heya. Looking for a way to implement a mechanic in my game. Let's say there's a sprout on the overworld map. When you go to click on it, it has a 50% chance to give you an item and a 50% chance to start a battle. How would I go about implementing that? Thanks 🙂
control variable to get a random number, then conditional branch to decide what to do based on which number you got.
Control variables> Random 1~2
Conditional branch
>If var=1
give item
>else
Battle

After that you can decide to either erase event (so it respawns on map revisit) or self switch it to an empty page (so its one time only)

Hope this helps 👋
Moved to: MV Support

Original thread: https://forums.rpgmakerweb.com/threads/rng-in-common-events.143138/