Staredit Network > Forums > SC2 Assistance > Topic: Differences between Events and Conditions...
Differences between Events and Conditions...
May 8 2010, 11:01 pm
By: Tharuk Zhal Omaenha  

May 8 2010, 11:01 pm Tharuk Zhal Omaenha Post #1



I have a trigger (see screenshot), and I want both events to be taking place at the same time to trigger the action. However, the action occurs when just one have the events have taken place. Clearly, I don't understand events, conditions, and actions very well. Could someone please clarify the difference between events and conditions, and provide me with a solution? Noob question, I know... :L

Attachments:
screenshot.png
Hits: 8 Size: 16.83kb



None.

May 8 2010, 11:48 pm Centreri Post #2

Relatively ancient and inactive

An event is an event that has to happen. A condition is a condition that has to be met while the event happens for the trigger to fire. Basically, you can have it so that the middle button being pushed down is the event and the selection is the condition - that way, if the selection is true while the button is pushed down it'll fire. Otherwise, if the unit being selected is the event and the button being pushed down is the condition, it'll fire if you select the unit while the middle mouse button is pushed down.

My editor isn't starting up and I'm too lazy to restart, so I can't help you with specifics, but this is the difference. Try to find a condition that does either of your two events.



None.

May 9 2010, 6:10 am UnholyUrine Post #3





Try to use Imageshack or w/e next time ^.^



None.

May 9 2010, 7:34 pm Ahli Post #4

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

Triggers in sc2 are linking themselves to some game mechanics. Imagine that everything has a list with triggers that are checked, if the mechanic does something (e.g. player presses middle mouse button, or a unit enters a location or a unit is created or a unit attacks or ...).
Then all triggers in the list are checked.

In sc1 every trigger would have the events with running every 2 game seconds and everytime a wait is created.

in short:
Event = when should the trigger be checked?
Conditions = the trigger shall run his actions when the conditions are met.




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[03:08 pm]
Oh_Man -- example of wat u mean?
[05:59 am]
NudeRaider -- *is
[05:17 am]
NudeRaider -- despite all its flaws the sound design its fantastic
[10:29 pm]
Oh_Man -- homeworld 3 = massive disappointment
[2024-5-14. : 10:05 am]
Moose -- ya
[2024-5-14. : 5:23 am]
zsnakezz -- yes
[2024-5-12. : 8:51 pm]
l)ark_ssj9kevin -- Are you excited for Homeworld 3?
[2024-5-12. : 8:44 pm]
l)ark_ssj9kevin -- Hi Brusilov
[2024-5-12. : 4:35 pm]
O)FaRTy1billion[MM] -- Brusilov
Brusilov shouted: Hey, what happened to EUDDB? Is there a mirror for it somewhere? Need to do a little research.
my server that was hosting it died
[2024-5-10. : 8:46 pm]
NudeRaider -- Brusilov
Brusilov shouted: Hey, what happened to EUDDB? Is there a mirror for it somewhere? Need to do a little research.
https://armoha.github.io/eud-book/
Please log in to shout.


Members Online: 9taylorc8691eg7, 3giannac1722tg4