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
25
S
10
Posts: 130
Reputation: 2,191

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
60
S
30
G
132
Posts: 1,931
Reputation: 74,339

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
25
S
10
Posts: 130
Reputation: 2,191


Return to How do I....?

Who is online

Users browsing this forum: Ofris, socialpilgrim and 2 guests