HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Event - Any Destructible in Region Dies

03-13-2006, 10:13 PM#1
BanishedSoull
Basically im making a trigger so that whenever a destructible of a certain type dies, certain actions take place. Seeing as there are only 2 events, one for a specific destructible and one for any in a region, i decided to use 'Event - Any Destructible in (Playable Map Area) Dies'. Then i read the fine print in the trigger description, "Only the first 64 destructibles within the region when this even is registered are monitored for death. It is best to use this event for regions containing only a few destructibles.". I'm definitely going to have way more than 64 destructibles in the map, so is there any way that this can be done? I assume that the answer lies in JASS, but I'm not very good at JASS myself, though I'll try to figure it out if you do post in JASS.
03-13-2006, 11:06 PM#2
TaintedReality
Make a seperate trigger that runs on Map Initialization. In actions, loop through every destructible on your map, and for each one use the action Trigger - Add Event, then add the specific destructible event to your other trigger. You can then leave the events section of your main trigger blank, since they'll be added by this one.
03-13-2006, 11:55 PM#3
BanishedSoull
Brilliantly simple and effective. Thanks a ton for the help.