Random outcomes in LunaLua

This is the place for discussion and support for LunaLua and related modifications and libraries.
Forum rules
Before you make a topic/post, consider the following:
-Is there a topic for this already?
-Is your post on topic/appropriate?
-Are you posting in the right forum/following the forum rules?
MmmMario
Monty Mole
Monty Mole
Posts: 127
Joined: Sun Aug 05, 2018 6:28 am
Flair: Yeet

Random outcomes in LunaLua

Postby MmmMario » Mon Sep 17, 2018 7:57 am

I've been wondering: how can you make random outcomes in LunaLua?

For example, let's say you hit an enemy. You can have a 15/50 chance you'll lose all your coins, 30/55 chance that you'll lose your spare power-up, and a 5/50 chance you'll get hurt.

So, how would someone go towards creating random outcomes in LunaLua?

Emral
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 9822
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Phoenix

Re: Random outcomes in LunaLua

Postby Emral » Mon Sep 17, 2018 8:13 am



Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 0 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari