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
18
S
6
Posts: 106
Reputation: 1,568

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
54
S
28
G
115
Posts: 1,705
Reputation: 65,083

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
18
S
6
Posts: 106
Reputation: 1,568


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 6 guests