Warcraft III resources & community, 2003–2006 · archived

aura question

18 posts
#1

aura question

is there an easy way to create an aura without jass? like with editing buffs, effects, and abilities. i've been playing around with buffs and effects but found nothing concrete myself yet. even a trigger way would work i guess, but i would prefer using object editor.

i also tried darky's multi aura, but it wasn't something easy to edit, and while searching the messages under it, someone mentioned jass.

thanks for any advice/help
#2
I just explain it roughly but u will undwerstand :P

Events: Unit leanrs an ability
Conditions: ability = ......
Actions: turn on aura effect and stop effect

aura effect (not initially on)

Events: unit comes withing XXX range of 'that hero'
conditions: ...
Actions: do what u want

Stop Effect

Events: unit leaves that area
conditions: .....
actions: remove and undo all the actions u did at 'aura effect'
#3
Thanks, I just seem to have trouble figuring out some things I want to do with the triggers, and a little point in the right direction always helps.

I'm having a little trouble figuring out exactly each trigger I need for that, but I think I'm slowly getting the hang of it. And if I can pefect that triggering, I'll be sure to add you into the credits for the triggering help.
#4
Maybe because I am using the standard WE, or maybe I am just not finding the events you are talking about, but I can't find any unit leaves range kind of trigger, and the unit enters range is very difficult to set up, the variables don't want to cooperate with me. I'm still working on it, but some more advice would really help is what I mean.
#5
k, use this events:

Unit enters Rect - Convert point with size to rect - then for 'point' use position of unit, and then the x and y for the rect (range)

same for leaves rect
#6
Bullshit. :P What if you learn aura while having units in area of effect? Event Unit enters... won't trigger and you'll have bugged aura. Better way is to cast spell effect every second or something to all units around!
#7
Use Vexorian's aura template, its smooth and leakless.
#8
maybe, but its probably JASS and Biggs said:

is there an easy way to create an aura without jass?
#9
Use this:



Aura Template
    Events
        Time - Every 2.00 seconds of game time
    Conditions
    Actions
        Set tempu = *YOUR UNIT*
        Set i = (Level of *AURA SPELL*  for tempu)
        Set tempp = (Position of tempu)
        Set tempg[1] = (Units within 500.00 of tempp matching (((Matching unit) has buff *AURA BUFF* ) Equal to True))
        Unit Group - Pick every unit in tempg[1] and do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        ((Picked unit) is in tempg[0]) Equal to True
                    Then - Actions
                        Unit - Set level of *AURA SPELL INSIDE* for (Picked unit) to i
                    Else - Actions
                        Unit - Add *AURA SPELL* to (Picked unit)
                        Unit - Set level of *AURA SPELL INSIDE* for (Picked unit) to i
        Unit Group - Pick every unit in tempg[0] and do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        ((Picked unit) is in tempg[1]) Equal to False
                    Then - Actions
                        Unit - Remove *AURA SPELL* from (Picked unit)
                        Unit - Remove *AURA SPELL INSIDE* from (Picked unit)
                    Else - Actions
        Unit Group - Remove all units from tempg[0]
        Custom script:   call DestroyGroup(udg_tempg[0])
        Set tempg[0] = (Units within 500.00 of tempp matching (((Matching unit) has buff *AURA BUFF* ) Equal to True))
        Unit Group - Remove all units from tempg[1]
        Custom script:   call DestroyGroup(udg_tempg[1])
        Custom script:   call RemoveLocation(udg_tempp)


Specifics:

*YOUR UNIT* - The unit with the aura, note that if you use this inside a whole big Unit Group pick matching units with
the spell you could make it work for multiple units, however this may lag since you're going to be doing
loads of loops and such.


*AURA SPELL* - The actual aura spell that the affecting unit has.


*AURA BUFF* - The buff given by your aura.


*DUMMY ABILITY* - This will be a spellbook based ability that is disabled on map initialization for all players.


*DUMMY ABILITY INSIDE* - This is a passive ability inside *DUMMY ABILITY*, it should have as many levels as your main
aura spell does.

**NOTE: This entire system works on a few key bits of information. They are as follows:

1) Passive spells inside a spellbook ability can be hidden by disabling the spellbook that contains it for all players

2) Spells inside a spellbook ability can be detected and upgraded/manipulated

-----------------------------------------

You can also download the template I made Here

However if you can use Vexorian's template I really suggest it, I think mine might have some memory leaks, not sure but I suspect. Anyway I hope this helps.
#10
hey there, ive actually been looking for somthing like this :), just 1 question tho...will this work for multiple level auras??? and if so how?
#11
*NOTE: This entire system works on a few key bits of information. They are as follows:

1) Passive spells inside a spellbook ability can be hidden by disabling the spellbook that contains it for all players

2) Spells inside a spellbook ability can be detected and upgraded/manipulated


Try it out, make a spellbook with a spell in it(multi-level) and increase its level through triggers. You will see that it increases, now hide it and try the same, using a trigger to output the level of the spell.

You will find that even in a disabled spellbook they maintain their levels, and will continue to effect the unit in question.[/quote]
#12
hey, yeah i tired to make an invisibility aura using that template, it didnt work, i found that it was difficult to set which hero the spell belongs to, is there anyother way that u can define the hero???

in your trigger ur first action is to set Var=Deathknight(position)

but i dont wanna use a position on the map...how can i define the hero i want to use without him being on the map??
#13
The position is only there to get around the stupid way that wc3 auras tend to stick on unit's even out of range for a certain amount of time.

As for a unit you can use presets, or you can use a global variable defined earlier. Or if you want to you can do
Pick Every Unit matching - **Unit has Ability**

and get all the units who happen to have the aura. However if you do that you MUST use a temporary unit group to buffer it like I did in the template, and it must be cleaned **Emptied then destroyed**.

Keep in mind though that picking all units with the aura will cause lag when you have lots of units, even if it is only a pick every 2 seconds.

Note about invisiblity aura, I don't really know which way would be more efficient(perma passive or casted effect). Gimme a couple minutes and I will rework the aura template to be more of a template to support multiple spells. However with the method I am using I suggest that you don't base more than 5-10 auras off of it unless you want lag to happen.
#14
Well its done, but the problem is that if I want to make it work for multiple units it will cause MORE lag(I suspect) than if only for one unit.

Also there is an issue I ran into with the new method, that effectively makes it impossible.

When you add ir remove(not sure yet which) an ability from a unit if you happen to have the hero spell button up it will exit it, so for now this system is limited to a single unit carrying the ability.
#15
ok awsome thats fine...i only want it for 1 hero. but i just thought of somthing...wat if another player has the same hero??? would that affect n e thing?