HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Dying Destructable?

10-20-2006, 07:31 PM#1
CrashLemon
Is it possible to make a event that runs when a Destructable die? There is only an event where you need to set the Destructable. Exemple:

Trigger:
Events
Destructible - Summer Tree Wall 0007 <gen> dies


But thats not what I want. I want something like this:

Trigger:
Events
Destructible - A Destructable dies.

Someone have a solution? (It can be in JASS)
10-20-2006, 07:41 PM#2
The)TideHunter(
If theyre were Destructable Groups, this would be simple.
10-20-2006, 10:55 PM#3
blu_da_noob
Trigger:
Destructible - Pick every destructible in (Playable map area) and do (Actions)
Collapse Loop - Actions
Trigger - Add to (Your trigger) the event (Destructible - (Picked destructible) dies)
10-20-2006, 11:58 PM#4
CrashLemon
Thanks a lot blu_da_noob is there a way to make a Destructible Group variable so we can add Destructible to it?
10-21-2006, 12:31 AM#5
Rinpun
You could use KaTTana's local variables or some system for storing something with a number after each value (destruct1, destruct2, etc.) and then have an integer that says the "size" of the "group". Then you can make functions to get the integer out of the group's cache and use it in a for loop to get the destructibles out of the handle destructible group variable.
10-21-2006, 08:23 AM#6
zeroXD
Or use
Trigger:
Destructible - A destructible within (Entire map) dies
10-21-2006, 09:25 AM#7
blu_da_noob
Quote:
Originally Posted by zeroXD
Or use
Trigger:
Destructible - A destructible within (Entire map) dies

That is supposed to be limited to 64 destructables, for indeterminable reasons.
10-21-2006, 09:41 AM#8
zeroXD
Hmmm, that is REALLY crap....