HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Help Me!!!!!!!!

08-16-2002, 03:44 PM#1
Guest
Hi I am a map creator (beginner) that has been
> having problems. I do not mean
> to bother you, I just have a quick couple of
> questions.
>
> I have been having trouble creating a timer that
> will count down from 20 and
> then destroy itself after 20 ticks. I created a
> timer with a title that I
> wanted. Then I told it to start last timer in one
> shot and count down from 20.
> The timer shows up, but does not count down. DO I
> need a variable there
> somewhere???
>
> My other question is a bit more involved. I have a
> couple of regions that I
> want only tiggered when ALL the heros that are
> controlled by DIFFERENT people
> are on that region. I put a condition on the regions
> saying, [ Number of units
> in (Units in "region" ) equal to (variable of
> players)]. When it didn't work I
> created a leaderboard to display the the number that
> my variable had, thinking
> the variable was incorrect. The leaderboard
> displayed the CORRECT number. I am
> stumped.... PLZ help I couldn't find any thing on
> the net that looked as these
> problems first hand. THX
08-16-2002, 08:18 PM#2
Equilibrium
Can't say anything about your first question, I haven't tried timers yet..

But for your second one, here's what I would do to solve your problem: (bear in mind, other people are sure to have more effective methods than this crude one.. you can use arrays, I'm sure)

Create a trigger that runs on unit - enters region, and have it set a variable depending on what hero enters.. that is, one for each hero. You'd probably need one for each hero unless you make it more efficient (again, with arrays..) Have it increase the variable by 1.

Also, you'll need a counterpart for these.. the unit - leaves region triggers, that do the same except they decrease the variable by one. So when a hero leaves it, it won't think he's still there.

Then, create a final trigger.. Unit - enters region, have it wait 0.1 seconds, and then check to see if the variable == amount of heroes necessary.. if so, do whatever you wanted it to do.

I hope that helps (and that you could understand what I wrote..)