HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Problem

12-22-2004, 12:05 AM#1
Zeal_
Hi

I'm making a trigger that when you do something specifically some pathing blockers are destroyed.The blocks are surrounding in a circular area, and it would take to long to do this. But to avoid an extremly long trigger

Code:
Destructible - Kill Pathing Blocker (Air) (Large) 0726
Destructible - Kill Pathing Blocker (Air) (Large) 0727
Destructible - Kill Pathing Blocker (Air) (Large) 0728
Destructible - Kill Pathing Blocker (Air) (Large) 0729
Destructible - Kill Pathing Blocker (Air) (Large) 0730
Destructible - Kill Pathing Blocker (Air) (Large) 0731
Destructible - Kill Pathing Blocker (Air) (Large) 0732
Destructible - Kill Pathing Blocker (Air) (Large) 0725
Destructible - Kill Pathing Blocker (Air) (Large) 0724

Can i just simplify it? Just put in one trigger. I havent put it through War3 enchancer or unlimited yet so... Any help is apprechiated.
12-22-2004, 01:14 AM#2
AntJAB
What you can do is either:

A) Make a region around the destructables and trigger a detroy all destructables in region.
or
B) Since they are in a circle, point out the center of the circle some how (with perhaps another one of those pathing blockers) and then select every destructable in a radius around the point.

Option (A) is easiest, if you need any more help just ask. :)
12-22-2004, 09:28 PM#3
Zeal_
This trigger (much short than its predicesour)

Code:
Actions- 
Destructible-Pick every destructible in region <gen> and do actions
     Loop-Actions
               Destructible-Kill (Picked destructible) 
               Trigger- Turn off (This trigger)

It didnt work.
12-22-2004, 10:18 PM#4
AntJAB
1 - Make sure your event is correct.
2 - You may be turning off the trigger after only the first picked destructable is destroyed. Try taking out the Turn off trigger and running it.
12-24-2004, 01:40 AM#5
Zeal_
Thx, it was the turn trigger off.

Now i've come across another problem. I've made a leaderboard and put it in a variable. I want it to correspond with the amount of health your unit has, so how could i do this? I've never really used leaderboards.
12-24-2004, 03:26 AM#6
AntJAB
Might want to start a new thread on that - I've never every used a leader board once.
But glad I could help, and good luck. ;)