Complex 'or' blocks?

Get help using Construct 2

Post » Tue Oct 01, 2013 5:43 pm

Is there a way to do a mixed and/or condition? Such as...

(condition a and condition b) OR condition c
B
11
S
2
Posts: 87
Reputation: 1,112

Post » Wed Oct 02, 2013 12:33 am

Not currently but you work around it using a few more events. Would be good to have in the future, Im sure its on the list.
ImageImage
B
123
S
23
G
7
Posts: 1,071
Reputation: 13,091

Post » Wed Oct 02, 2013 1:14 am

Good to know, thanks!
B
11
S
2
Posts: 87
Reputation: 1,112

Post » Wed Oct 02, 2013 1:52 am

@Wertle actually you sorta can.

> A
or
B
>else
A
B
>else
C.

The first block must be an or block. "else" is a system condition.

also, 2 conditions in the same block work as an "and".

my example says, when A or B, or when A and B, or when C.
Sargas2013-10-02 01:54:21
B
43
S
12
G
6
Posts: 446
Reputation: 6,802

Post » Wed Oct 02, 2013 7:58 am

This Tutorial from Ashley may be of use. Look at the mixed And/Or section.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
134
S
30
G
86
Posts: 5,422
Reputation: 59,530

Post » Wed Oct 02, 2013 9:31 am

I thought the question was if there was a way to create a complex or event. Sorry if I gave you the wrong idea Wertle, that's what I meant about adding more sub events to it.
ImageImage
B
123
S
23
G
7
Posts: 1,071
Reputation: 13,091

Post » Wed Oct 02, 2013 1:57 pm

The main issue is you cant do a&b or b&c.
Image ImageImage
B
169
S
50
G
174
Posts: 8,331
Reputation: 110,806

Post » Wed Oct 02, 2013 2:41 pm

@newt
a&b_or_b&c.capx
tulamide2013-10-02 14:49:30
Image
B
24
S
8
G
10
Posts: 1,821
Reputation: 8,279

Post » Wed Oct 02, 2013 3:27 pm

True, there's a few things you can do to get the logic, including conditionals, "regex", and even logic operators &, and |(which don't seem to work correctly, even though you can use them), but those don't work very well for picking.

No idea how to do regex. lolnewt2013-10-02 15:48:09
Image ImageImage
B
169
S
50
G
174
Posts: 8,331
Reputation: 110,806


Return to How do I....?

Who is online

Users browsing this forum: Artcadev, brunopalermo and 25 guests