Staredit Network > Forums > SC2 Assistance > Topic: Problems with Conditions
Problems with Conditions
Jul 10 2013, 8:53 pm
By: GoGo SpaceMan  

Jul 10 2013, 8:53 pm GoGo SpaceMan Post #1



So I'm in the middle of making a map, and I begin on the triggers.

There's a box in the middle of the screen with 3 buttons on it that, when picked, will determine the variant of the game.
I'm trying to make a trigger that will, go figure, make something happen when you click one of the buttons.

However, my problem lies with the Conditions of the new trigger.

I'm not sure if it's a bug in my Editor, or I'm doing something wrong. When I make a Condition "Or," I should have a list of sub-Conditions to make (for when you select one of the three buttons) but it isn't letting me make that list. The Conditions in the Trigger SHOULD look like this:
Quote
Conditions
Or
Conditions
(Used Dialogue Item) == Button1
(Used Dialogue Item) == Button2
(Used Dialogue Item) == Button3
Button1, Button2, and Button3 are the variables that I labeled onto the buttons. (Not the real names, but in this scenario)
And the problem, again, is that I'm unable to make the second set of Conditions there. If I try to double-click the word "Conditions" under the "Or" nothing happens. Right-clicking and selecting New Element just brings up the options "And", "Comparison", "Not", etc.

Attached to this thread is a picture of the Trigger, and I circled the Condition.

How can I fix this?
Or am I a total scrub and I just don't know what I'm doing?

EDIT: made a little more clarity to the issue

Attachments:
ConditionsProblem.png
Hits: 5 Size: 84.36kb

Post has been edited 3 time(s), last time on Jul 10 2013, 9:19 pm by GoGo SpaceMan.



None.

Jul 11 2013, 2:18 am Leeroy_Jenkins Post #2



You want to select the "Comparison" option under the list with AND, OR, NOT.

Then, within the comparison condition, select your "Used Dialog Item" condition.



None.

Jul 11 2013, 3:15 am Roy Post #3

An artist's depiction of an Extended Unit Death

The "OR" condition means "If any of the following conditions are true." By default, conditions are treated as "AND," meaning "If all of the following conditions are true."

You cannot double-click these statements like you can with the top-level statements (Events/Conditions/Actions). Instead, right-click on "Conditions" and choose "New Element" or, to be explicit, "New -> New Condition" (or left-click and hit Ctrl+K). As Leeroy mentioned, the "Comparison" condition does virtually everything you could want in a conditional statement, because ultimately you're checking if something is true or false.

However, I think what you want is an if/else statement, which is classified as an action rather than a condition. Create a new "If / Then / Else-If" action and put your conditions into Else-If elements inside that action.

Post has been edited 2 time(s), last time on Jul 11 2013, 3:23 am by Roy.




Jul 11 2013, 3:32 am Ahli Post #4

I do stuff and thingies... Try widening and reducing the number of small nooks and crannies to correct the problem.

Quote from Roy
The "OR" condition means "If any of the following conditions are true." By default, conditions are treated as "AND," meaning "If all of the following conditions are true."
In case that confuses you, "following conditions" refers to the list of conditions that belongs to the AND or OR element. Each OR and AND contains its own list of conditions which need to meet the requirements Roy described.

Also, not using an AND or OR or NOT in a condition list (for example, in the conditions of a trigger) acts like all conditions were added to the list of an AND.




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[01:35 am]
Ultraviolet -- Vrael
Vrael shouted: NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
Gonna put deez sportballs in your mouth
[01:24 pm]
Vrael -- NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
[2024-4-30. : 5:08 pm]
Oh_Man -- https://youtu.be/lGxUOgfmUCQ
[2024-4-30. : 7:43 am]
NudeRaider -- Vrael
Vrael shouted: if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
Yeah I'm not a big fan of Westernhagen either, Fanta vier much better! But they didn't drop the lyrics that fit the situation. Farty: Ich bin wieder hier; nobody: in meinem Revier; Me: war nie wirklich weg
[2024-4-29. : 6:36 pm]
RIVE -- Nah, I'm still on Orange Box.
[2024-4-29. : 4:36 pm]
Oh_Man -- anyone play Outside the Box yet? it was a fun time
[2024-4-29. : 12:52 pm]
Vrael -- if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
[2024-4-29. : 11:17 am]
Zycorax -- :wob:
[2024-4-27. : 9:38 pm]
NudeRaider -- Ultraviolet
Ultraviolet shouted: NudeRaider sing it brother
trust me, you don't wanna hear that. I defer that to the pros.
[2024-4-27. : 7:56 pm]
Ultraviolet -- NudeRaider
NudeRaider shouted: "War nie wirklich weg" 🎵
sing it brother
Please log in to shout.


Members Online: Roy, jun3hong