HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Important Triggers Question =P

01-10-2004, 12:40 AM#1
Wyvern_8
Question: Is there a limit to the amount of triggers you can have in a game? Because im gonna need atleast about 4000 ://// (literally)
01-10-2004, 01:17 AM#2
Cacodemon
I think number of executing triggers is only limited by maximum amount of threads Warcraft can create. But I can't guess a task which requires so many triggers. And if you do so I think nobody can play that map because of lags.
01-10-2004, 01:19 AM#3
Pesmerga
I doubt theres a limit, but even if there were, it would be a hell of a lot higher than 4000. Probably in the tens of thousands. And by the way, I don't think any kind of map could take 4000 triggers. Your probably doing things the long way. But I have no clue what your doing, so anything is possible.
01-10-2004, 01:24 AM#4
Eriond
I wanna know waht's gonna take 4000 dif triggers, lol.
01-10-2004, 01:42 AM#5
Wyvern_8
Actually the whole thing is a giant escape from hell map that i started making when i was bored emote_sweat

Right now, I have about 10-20 regions left to place that have to do with the story. But right now I have exactly 5169 triggers :ggani:

<EDIT> Oh Caco that lags people? Damn :bangH:
01-10-2004, 02:03 AM#6
Cubasis
Wyvern, i'm kinda sorry to tell, but you are most very likely doing something wrong if you end up with so many triggers.... you should be able to do everything you need with not more than 100 triggers...And i'm not asking you to argue with me about the complexity of your map, you are most likely creating hundreds or thousands of triggers doing very similar job but just with a small difference each, f.ex. for all kinds of different regions. These could be done with 1 trigger if you do it right.

On another subject, cacodemon, i'm not sure if what you're saying is true, but you can feel free to proove me wrong....but, what i've deciphered....is that the jass script that the map runs uses only a single thread....so only one trigger/function is running at a time, only executing other functions/triggers when it finishes the currently running function/trigger or when it encounters a sleep.
BUT....the "AI", i hear, is multithreaded.... 6 i hear, this number may be wrong though but....it's the .ai script that is multithreaded...

that's how i learned it...


And to finish up...if you have 5000 triggers, each containing a event....it will indeed lag....heavily, as registering events places it in memory and containing masses of registered events involves lag. If you insist of having this number of events, you should try take into practice at "destroying" triggers that are no longer usefull (f.ex. a trigger that only needs to run once, you can just order it to destroy itself when it has run already).

Cubasis
01-10-2004, 02:28 AM#7
Pesmerga
And by looking at your sig and location statements, it seems you like to do things the long way :) Something called an array variable :) Learn how to use them and you will be rewarded... So, 5000 triggers could probably be reduced to 100 at most, 200 if it's really alot. And yes, 5000 events really causes huge lag. If you can find any triggers with the same event, COMBINE THEM.
01-10-2004, 05:51 PM#8
Wyvern_8
lol really? Well im a noob at triggers and all.. could you explain to me how to combine them/do it all with 1 trigger? =P

<Edit> The trigger i was using was
EVENT: Unit Enters <Rect>
ACTION: Unit Dies

Yknow for the lava thing and everything :////
01-10-2004, 06:30 PM#9
DaKaN
Let me guess, you have 1 trigger for every region, correct....
01-10-2004, 06:36 PM#10
Wyvern_8
yup
01-10-2004, 06:42 PM#11
weaaddar
Where is that link to that marrying trigger thread.

I feel for you man your going to be deleting a lot of triggers when cub tells you the easy answer...
01-10-2004, 06:47 PM#12
Wyvern_8
Lol sounds like this is gonna be fun :) Ah well it only took me 3 days to do all that, so i can manage... well.. yeah.. just so as long as my slow @$$ 56k comp doesnt whack out, ill be perfectly fine.:////
01-10-2004, 06:51 PM#13
DaKaN
region array, and 1 loop can take care of every single region in your map with the boolean: Region Contains Unit all in 1 trigger.

Thats 1 way of looking at it
01-10-2004, 06:57 PM#14
Hunter0000
Aha!

Just make an invis unit with a modified immolation(1,000 dmg and have small range with no buff either) and place them around your path.
01-10-2004, 07:11 PM#15
Wyvern_8
Dakan: Umm.. Sorry. Im a bit of a trigger noob. Could you say that in english please? :knife:

Hunter0000: Hrm.. Mebbe that might work, but im trying to do this with regions and all. sorry. If this doesnt work, i might end up having to try that :)

Misc. Info about my map: Size: 192x192
Name: Escape from Hell (hey, its original..)
Started: 1 month ago..