When I try to set a variable to a random number (1 or 2), the event that needs the variable to be at 1 and the one that needs it to be at 2 both trigger
At the beginning of the scene
Do = RandomInRange(1, 2) to variable wallgeneration1 of wall
Variable wallgeneration1 of wall is = 1
Create objects from the external layout named terrain1
Variable wallgeneration1 of wall is = 2
Create objects from the external layout named terrain2
Before we can help you, let’s do a simple exercise and please answer me a couple of hypothetical questions:
Suppose you are an expert in calculators. You know a lot about old and new, simple and scientific calculators, about the electronic components that compose them and about the failures that they can suffer.
Now suppose I have a problem with a calculator and I make a post on a forum that contains the following text and nothing else:
I write 1 + 1 on the calculator and the result is 3. The result should be 2, why is not 3? Please help me.
And you, despite being a calculator expert, can’t tell me right away what the mistake is.
Why can’t you tell me immediately what’s wrong? What do you need to be able to help me in that situation?
Same exact thing as the text
At the beginning of the scene
Do = RandomInRange(1, 2) to variable wallgeneration1 of wall
Variable wallgeneration1 of wall is = 1
Create objects from the external layout named terrain1
Variable wallgeneration1 of wall is = 2
Create objects from the external layout named terrain2
And, I said
“When I try to set a variable to a random number (1 or 2), the event that needs the variable to be at 1 [to work] and the one that needs it to be at 2 [to work] both trigger”
That means the problem is not in that events but in other section of the events… that’s why we need to take a broader look at your events in order to help you.