Staredit Network > Forums > SC2 Assistance > Topic: [Solved] Event Definition
[Solved] Event Definition
This topic is locked. You can no longer write replies here.
Nov 29 2012, 9:38 am
By: payne  

Nov 29 2012, 9:38 am payne Post #1

:payne:

How do Event Definitions work?

I have been wondering if it is possible do something like having a single trigger that would let merge "Unit Enters Region "Region 1"" and "Unit Enters Region "Region 2"" (two different events that would require two triggers) into something like "Unit Enters Region "Region x"" where I would set somewhere that "x+1=x" until it reaches a certain amount.

Not sure if that is clear enough.

Basically, I have 13 different triggers that have only one thing different from each other: the Region used in the event. I'd like to know if I can shrink it all to one single trigger.



None.

Nov 29 2012, 9:52 am TF- Post #2

🤙🏾

I'm not sure if you can define that type of event, anyway here you could:
- merge your multiple regions into one region from the terrain editor, just look at the menus
- leave region as 'any region' in the event, then put an Or in conditions and many comparisons in it comparing 'triggering region' with your regions



🤙🏾

Nov 29 2012, 10:17 am payne Post #3

:payne:

Quote from TF-
I'm not sure if you can define that type of event, anyway here you could:
- merge your multiple regions into one region from the terrain editor, just look at the menus
- leave region as 'any region' in the event, then put an Or in conditions and many comparisons in it comparing 'triggering region' with your regions
I can't find "Any Region". And I must not merge those regions.

I have the same problem with my "Unit Enters/Leaves Point" Events (and you set a radius value).
... But worse: 18 times. And there is more than just the Event that changes from one trigger to another in this case.



None.

Nov 29 2012, 10:29 am DevliN Post #4

OVERWATCH STATUS GO

I'm not sure if it helps, but you can make one trigger with 13 "If, Then" Actions instead of 13 separate ones. Though based on TF-'s response I'm not sure if that's what you're asking about.



\:devlin\: Currently Working On: \:devlin\:
My Overwatch addiction.

Dec 1 2012, 9:27 pm Sacrieur Post #5

Still Napping

Events are not conditions and are subject to OR logic. If any of the events occur, then the sc2 client checks the conditions. If ALL of the conditions return true, then the actions are executed.

I looked for a way of lumping all of your regions into a single variable, but it appears there is no way (at least not easily) of doing it. It is possible to duplicate your regions, merge the duplicated regions together, and then use this single region to define what you need. I suggest merely writing more than one event.

But, I get the impression you need AND logic for your map, is this correct?



None.

Dec 2 2012, 4:40 am payne Post #6

:payne:

Quote from Sacrieur
But, I get the impression you need AND logic for your map, is this correct?
What do you mean?

I have two types of triggers that I'd like to modify:
1) Players are within a certain range from a point, and it starts the corresponding level for the players.
2) Flying units leave a region, and they are sent back in the arena.

Now, all those regions/points cannot be merged together: points simply can't, and the map is a template for people to use, which means they will be moving the individual regions around the map independently.



None.

Dec 2 2012, 2:57 pm Sacrieur Post #7

Still Napping

I see, well.

Just add multiple events. The "triggering region" function should get you what you need.

An event is any in-game phenomenon. It can be anything from gathering minerals to destroying a building. Events define not the conditions of what a trigger needs to fire, but rather when to check the conditions of a trigger. Oftentimes, it is best to find the most optimal event for your trigger to maximize trigger performance. In addition, there are also recurring events, or something that will check conditions based on a real time timer (anything from once every two seconds to 11.9 times a second).

For example, if you had an event hat read, "Unit X leaves Region 001." Then every time unit X left region 001, the conditions of the trigger would be evaluated.

Post has been edited 1 time(s), last time on Dec 2 2012, 3:32 pm by Sacrieur.



None.

Dec 4 2012, 6:44 am payne Post #8

:payne:

Worked for my Air-mover trigger.
The other one, I do not want it to be like that in the end.

Topic to be closed. :lock:



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[07:46 am]
RIVE -- :wob:
[2024-4-22. : 6:48 pm]
Ultraviolet -- :wob:
[2024-4-21. : 1:32 pm]
Oh_Man -- I will
[2024-4-20. : 11:29 pm]
Zoan -- Oh_Man
Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
You should do my Delirus map too; it's a little cocky to say but I still think it's actually just a good game lol
[2024-4-20. : 8:20 pm]
Ultraviolet -- Goons were functioning like stalkers, I think a valk was made into a banshee, all sorts of cool shit
[2024-4-20. : 8:20 pm]
Ultraviolet -- Oh wait, no I saw something else. It was more melee style, and guys were doing warpgate shit and morphing lings into banelings (Infested terran graphics)
[2024-4-20. : 8:18 pm]
Ultraviolet -- Oh_Man
Oh_Man shouted: lol SC2 in SC1: https://youtu.be/pChWu_eRQZI
oh ya I saw that when Armo posted it on Discord, pretty crazy
[2024-4-20. : 8:09 pm]
Vrael -- thats less than half of what I thought I'd need, better figure out how to open SCMDraft on windows 11
[2024-4-20. : 8:09 pm]
Vrael -- woo baby talk about a time crunch
[2024-4-20. : 8:08 pm]
Vrael -- Oh_Man
Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
so that gives me approximately 27 more years to finish tenebrous before you get to it?
Please log in to shout.


Members Online: Roy, jun3hong