HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Leavign Aura = 3 sec delay?!

06-18-2004, 11:52 AM#1
GaDDeN
Im working on a ward that gives invisibility to nearby units (a cloud that ur invis while inside) within 500 range. Ive been working a long time to make it possible to have multiple of these out that all give invisibilt, but i cud only make 1 work. Therefor i added a devotion aura without effect to the ward, and checked if the unit had the buff or not. Now my problem is, the units can leave the cloud and be like 1000 range from there before the buff dissapears. So the problem is that the AURA is extremly slow to react if a unit leaves.

Is there any way to speed it up?!
06-18-2004, 04:54 PM#2
Porsche911R
It sounds like your trying to recreate a starcraft ability, I think it was called "dark swarm" ? Why don't you just make the wards have the voodoo invincibility ability? Sounds like having the units be invulnerable rather than invisibile would still give the desired effect and it would require far less triggering.
06-18-2004, 05:02 PM#3
Dalten
Quote:
Originally Posted by GaDDeN
Im working on a ward that gives invisibility to nearby units (a cloud that ur invis while inside) within 500 range. Ive been working a long time to make it possible to have multiple of these out that all give invisibilt, but i cud only make 1 work. Therefor i added a devotion aura without effect to the ward, and checked if the unit had the buff or not. Now my problem is, the units can leave the cloud and be like 1000 range from there before the buff dissapears. So the problem is that the AURA is extremly slow to react if a unit leaves.

Is there any way to speed it up?!

Hiya,

I believe all you have to do is change the Duration of the aura to 0 or something tiny and it will go away.

You didnt' say how you were giving them invisibility though so I don't know if that will answer your question, if it's an aura too then just try my suggestion and it should work.
06-18-2004, 05:03 PM#4
CynicalYouth
I dont mean to offend you but did you forget to change the auras range when you edited devotion aura. When I have been working on a skill for a long time and start to get fustrated i forget the simple things like that. Drove myself crazy with a spell where I forgot to remove the upgrade requirment once.

If you did change that then are you using a timed event to check for the buff? You could try lowering the time it takes for that event to fire. Another thing you could do lower the range to compinsate for this delay.

On last thing that just ocurred to me is to check and see if the aura has a duration. This could have something to do with it. I'm not on my computer so I cant check right now, but I will look into it when I get home.
06-18-2004, 06:29 PM#5
GaDDeN
Well im 100% sure its the slow reaction of the auras fault. I can move out of 500 range and stand there, wait 2 sec and then loose aura. Or i can run for all i can, then i can move to like 1500 range before aura disspaears. Thats also 2 sec. So the range is correct and everything, and i can see the buff on the unit so its not the triggers either.

Porsche: Invulerability and Invisiblity is DEFFINATELy not the same thing in an AoS. With invisibility you can use these clouds to create auras where you are invisible, and can sneak up on units. Units with sentry wards can also attack you even if you are in cloud.

Dalten: Sorry the aura is allready at 0 duration, still a HUGE delay before it removes aura. Got no idea why... really need this to work :S

Anybody know it?
06-18-2004, 06:51 PM#6
Dalten
Quote:
Originally Posted by GaDDeN
Well im 100% sure its the slow reaction of the auras fault. I can move out of 500 range and stand there, wait 2 sec and then loose aura. Or i can run for all i can, then i can move to like 1500 range before aura disspaears. Thats also 2 sec. So the range is correct and everything, and i can see the buff on the unit so its not the triggers either.

Porsche: Invulerability and Invisiblity is DEFFINATELy not the same thing in an AoS. With invisibility you can use these clouds to create auras where you are invisible, and can sneak up on units. Units with sentry wards can also attack you even if you are in cloud.

Dalten: Sorry the aura is allready at 0 duration, still a HUGE delay before it removes aura. Got no idea why... really need this to work :S

Anybody know it?

Come to think of it, do not set it to 0, that should make it permanent but it doesn't huh? Try 0.01 anyway if you do have it at 0.

Only other thing that I can think of that would goof it up is that the Duration Hero got overlooked, double check to make sure they're all at 0.01.

Good luck!
06-18-2004, 07:43 PM#7
GaDDeN
Sorry i allready tried. When i saw that it was 0 from start, i though of the same thing as you just did... setting to 0.1, but there was no difference.

And i also tried setting hero to 0.1 as well, nothing happened :'(

But i noticed one thing: when i enter range it reacts qickly (.5 sec probly) but when i leave it takes allmost 3-5 sec before i loose

Are you sure thats the aura refreshment rate?
06-18-2004, 10:21 PM#8
LunaSeer
OK, I have pondered your problem for a while and haven't come up with a solution. Maybe that's how auras work. The one thing that's keeping you from making this spell perfect is that "Units within range" doesn't work with user defined globals but only units that are preplaced.

If you would like to go back to the 500,500 rectangular region attempt, I can help but it wouldn't be so good because its a rectangle and not a circle.

Variables:
NumberOfWards - Integer initially at 0
UnitsInRegion - Unit Group
InvisCloudWard - Unit Array
InRegion - Boolean Array initially False

TrigOne
Events: A unit enters playable map area
Conditions: Unit-type of Entering unit equal to cloudward
Actions:
- Set InvisCloudWard[NumberOfWards] = Entering Unit
- Set NumberOfWards = NumberOfWards + 1

TrigTwo
Events: Every 0.50 seconds (<--shouldn't lag. reduce duration for more accuracy until the point where it doesn't lag. 1 second is just way too long.)
Conditions: none
Actions:
- For each IntegerA from 0 to NumberOfWards do actions
- - - Pick every unit in playable map area and do actions
- - - - - If picked unit is in region centered at InvisCloudWard[IntegerA] with width 1000 length 1000 (whatever it is but it's the whole length not 1/2)...
- - - - - - - Then Set InRegion[UnitID of picked unit] = True
- - - - - - - Else Do nothing
- Pick every unit in playable map area and do actions
- - - If (InRegion[UnitID of picked unit] = True)
- - - - - Then (add picked unit to UnitsIsRegion)
- - - - - Else (remove picked unit from UnitsInRegion)
- - - If picked unit is in UnitsInRegion equal to True
- - - - - Then add permanent invisiblity
- - - - - Else remove permanent invisibility
- - - Set InRegion[UnitID of picked unit] = False


I hoped that helped. Still can't figure out an easy way to pick all units within a circular radius of ward.


==================================================
EDIT
==================================================

Guess what. You can either choose to do what I said up there or completely ignore it. I was looking through the downloads section and found that someone submitted a JASS enhanced invisibility aura. Just go download that. You're lucky someone made one. :D
06-20-2004, 02:58 PM#9
GaDDeN
Ahh thanks alot, i have tried to make a rektangular one work. But i never figured out your (smart) way of making 1 trigger for each one, that is why i used pick every unit of type cloudward instead. I think a rektangular will work fine, thanks!

(rep added ;))

But one problem, which was the problem that stopped me from doing that: Entering unit doesnt work for the ward for some reason. I also tried unit summons a unit and then summoned unit; still doesnt work. So im gonna try making a dummy unit that is moved to the unit.... Lets hope that works :D

I tried a (weird) system of checking for new clouds instead of using entering unit (because that didnt work). But this didnt work either! Here's a copy of the trigger i made to check:

Code:
Mystic Cloud Count Copy
    Events
        Time - Every 1.00 seconds of game time
    Conditions
    Actions
        Unit Group - Pick every unit in (Units of type Cloud) and do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        ((Picked unit) is in SP_Mystic_Cloud_WGroup) Equal to False
                    Then - Actions
                        Unit Group - Add (Picked unit) to SP_Mystic_Cloud_WGroup
                        Set SP_Mystic_Cloud_Wards[SP_Mystic_Cloud_Count] = (Picked unit)
                        Set SP_Mystic_Cloud_Count = (SP_Mystic_Cloud_Count + 1)
                    Else - Actions

And to u guys who havent red the whole thread, and thinks im stupid cuz this trigger is more complicated then needed: The ward didnt register as entering unit, or unit enters playable area, and therefor im making this trigger as an alternative for that.

Luna u know whats wrong? o_O
06-20-2004, 10:55 PM#10
LunaSeer
Oops, I think i made a little mistake. I fixed it up there if you still want to use it. I don't think it was the event because all units are suppose to trigger that event.

I still suggest using the one in the downloads section. It's circular and is much nicer. You don't have to understand it. Just copy it, edit endurance aura, edit the stuff he says you can edit in the trigger, and give him credit for it. If you are using endurance aura then just change the code (Aoae) to the code of another aura.