HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Thread by wiebbe

08-03-2005, 04:04 PM#1
wiebbe
Ok, i have been working on a new hero for my dota clone map, but i have a problem.

The hero in question is a "ward" hero, it uses all kind of wards so i thought it would be cool to create a stoneskin ward. When a unit enters the region of the ward it adds the stone skin ability. Now so far it all works but 1 thing is bothering me. Let me show:



Now notice at the end of the trigger i Add a Event to the enter trigger. This works perfectly but the problem i have with it that after a long game of Dota clone there might be like 200 events testing to be fired. There isnt a way to clear the events as there is with conditions and i cant see to do this with conditions instead of events.

The enter trigger is kinda small but still:


does any one have a better idea?
I thought the trick would be to create a new trigger for every ward that has been dropped and then destroy the trigger after the ward is gone. But that's probably jass stuff.
08-03-2005, 04:06 PM#2
wiebbe
ok this sucks, i wanted to change the title but i cant :>
any mod perhaps?
08-03-2005, 10:40 PM#3
Vexorian
As fun as it sounds, I can't change titles either.

Your problem seems bigger actually, what if the unit gets away? it will still have stone skin even away of the ward.

I think the answer is that you will end using JASS. Or directly my aura template.

Where is the aura template?

http://vexorian.wc3campaigns.com/spe...ratemplate.w3x
08-03-2005, 11:19 PM#4
wiebbe
well, ofcourse i made a units leaves region trigger and all ;)
but as that wasnt my problem i didnt post it in here.

I did take a look at your aura template, but didnt feel like implementing yet.

But what would be the way to fix this in jass? or would that take a big piece of code? ie, creating a new trigger seems the best way to me. Although iam not sure if that is possible.

Its not that i cant code in JASS i just dont like it, and i need to put in some time learning the syntax :P
i would rather try it the hard way.
08-04-2005, 08:44 PM#5
Vexorian
Leave rect? you mean it also leaks?

JASS solution: Instead of adding events Create a trigger for each unit that self destructs when the unit dies.