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
Koopa Troopa
Koopa Troopa
Posts: 24
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?
Here's Johnny


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.

User avatar
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 6667
Joined: Mon Jan 20, 2014 12:58 pm
Flair: -chan ^^

Re: Random outcomes in LunaLua

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

Muh favourite quotes:
Spoiler: show
TheKingOfBoos: enji I'm only scared of you cuz you're always right, and that's creepy
SnoruntPyro: if you don't like kirby you have no life
ToonQuill: do you have any hentai girl sfx
Pichu: "And Jesus said unto his apostles, 'ew so much clash 0/10'."
MNIE52: ohoho master king sitting in his golden chair! Dude, you think you're president? i will not leave, if i want - i'll leave.
MNIE52: i will not kill you, why you so rude. are you have nothing to do, boy?
Sanct: oh my god i made the perfect amount of stairs i am jesus christ.
Spoiler: show

Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 2 guests