Percent chance of event happening?

Get help using Construct 2

Post » Tue Apr 05, 2016 2:38 am

I'm wondering how (or if) I can make a percent chance of a selection of events happening. Like, the way you can say "choose ("thing1", "thing2", "thing3")" in the expession, ect. But set a likelihood of it happening.
B
8
S
2
Posts: 61
Reputation: 674

Post » Tue Apr 05, 2016 4:52 am

(On Event) - Set Variable to round(random(100))
(Sub-Events) -
If Variable < %chance - Do Thing1
Else if Variable < %chance - Do Thing2
Else if Variable < %chance - Do Thing3

ect...
Mistakes were made.
B
49
S
24
G
107
Posts: 1,581
Reputation: 60,303

Post » Tue Apr 05, 2016 5:13 am

@oosyrag THANK YOU! This is simple, and I'm going to try it out tomorrow. Hopefully it solves my issue!
B
8
S
2
Posts: 61
Reputation: 674


Return to How do I....?

Who is online

Users browsing this forum: ezgaming420, marcinkowski, R0J0hound and 5 guests