"then" condition

i would like a “then” condition added to the conditions page.

i’m trying to make it so that you must activate A, then B, and once they are activated in that order, C will activate. however, with the current version of GDevelop, there is no simple way to do this.

i believe adding a “then” condition would solve this problem. it would greatly simplify the process, as you could specify if A activates then B activates, activate C.

You can achieve the same with sub events.

Create and event with condition A. Then add a subevent with Condition B. Off that one, create a subevent with condition C.

But this, and your “then” suggestion, won’t fix if B is already activated and then A gets activated.

What you could instead do is use a string to record the order of activation. An event for each condition, with a trigger once. In the action append something unique to the string:

This example is unoptimised (for example the trigger once isn’t needed for clicked event) and is just to show the basics of how it could be done.

1 Like