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?
User avatar
MmmMario
Fighter Fly
Fighter Fly
Posts: 70
Joined: Sun Aug 05, 2018 6:28 am
Flair: Yeet
Current Project: My current project is living. Trust me, it's hard.
Chat Username: TawPawNaw

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?
Spoiler: show
Here's Johnny

Image

I will bore everyone out of their mind with my questions!!!

Spoiler: show
Does anyone else have the PostImages problem? Frankly, it annoys me that sometimes I can't view pictures.
Join mine and MemeLord's(PotatoMario's) server here: https://discord.gg/PUTNGKS

User avatar
Enjl
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 6856
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Orphion Egamalenitar Osmos IV, Esq.

Re: Random outcomes in LunaLua

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

ImageImageImageImage
ImageImageImageImageImageImage


Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 2 guests