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: 65
Reputation: 682

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
52
S
26
G
109
Posts: 1,618
Reputation: 61,657

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: 65
Reputation: 682


Return to How do I....?

Who is online

Users browsing this forum: Blendi1223, gskunk, richcoz81, tarek2 and 40 guests