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:39 am]
Ultraviolet -- no u elky skeleton guy, I'll use em better
[10:50 pm]
Vrael -- Ultraviolet
Ultraviolet shouted: How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
hey cut it out I'm getting all the minerals
[10:11 pm]
Ultraviolet -- :P
[10:11 pm]
Ultraviolet -- How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
[2024-4-17. : 11:50 pm]
O)FaRTy1billion[MM] -- nice, now i have more than enough
[2024-4-17. : 11:49 pm]
O)FaRTy1billion[MM] -- if i don't gamble them away first
[2024-4-17. : 11:49 pm]
O)FaRTy1billion[MM] -- o, due to a donation i now have enough minerals to send you minerals
[2024-4-17. : 3:26 am]
O)FaRTy1billion[MM] -- i have to ask for minerals first tho cuz i don't have enough to send
[2024-4-17. : 1:53 am]
Vrael -- bet u'll ask for my minerals first and then just send me some lousy vespene gas instead
[2024-4-17. : 1:52 am]
Vrael -- hah do you think I was born yesterday?
Please log in to shout.


Members Online: Roy, Frabotta