Hey guys, i need some one to guid me on the basics of making an aura using triggers, for instance, i would like to make an aura of stun, basically a unit enters the aura (enemy) and becomes stunned, periodically like every 10 seconds or something (this is NOT a request) plz if anyone can help, guid me through th basics of making an aura using triggers, it would be much appreciated.
Note: if no one can help, plz at least write something.....
Use a periodic event. Pick all units that have the ability. Pick all units within X of the picked unit matching conditions. Create a dummy caster and order it to cast a stun spell on the picked unit.
lol, i wouldnt say that...but n e ways tell me is this rite or am i doing something wrong
Time - Every 1.00 seconds of game time Condition (Issued order) Equal to (Order(attack)) Action
If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions ((Picked unit) has buff Intensify ) Equal to True Then - Actions Unit Group - Pick every unit in (Units within 500.00 of (Position of (Picked unit)) matching (((Picked unit) has buff Curse) Equal to True)) and do (Actions) Loop - Actions Unit - Create 1 Intensify Dummy for (Owner of (Triggering unit)) at (Position of (Picked unit)) facing Default building facing degrees Unit - Add a 2.00 second Generic expiration timer to (Last created unit) Unit - Order (Last created unit) to Human Mountain King - Storm Bolt (Picked unit) Else - Actions Do nothing
i tried it but it didnt work....wat am i doing wrong???
hi i would do it totally different as what raven has suggested: i will try to explain the whole thing:
first off all take an aura like the unholy aura and change it so that only enemy units are effect by that aura not even the hero should be effect by that aura. Then change the buff of that aura so that the units effect will have a stun effect over there head. and try this trigger:
Time - Every 1.00 seconds of game time Condition (dont put any condition here Action Unit group - Pick every unit in (Units in (Playable map area)) and do (Actions) loop - Aktions If (All Conditions are True) then do (Then Actions) else do (Else Actions) 'IF'-Bedingungen ((Picked unit) has buff Unholy Aura) Gleich True 'THEN'-Aktionen Einheit - Pause on (Picked unit) 'ELSE'-Aktionen Einheit - Pause off (Picked unit)
the units will be stunned all the time if they are effected by the aura only if you walk away they will able to move, so you can play with the range of the aura, and if you change the 1.00 second to like 10.00 seconds a couple off units can still be able to hit you before they get stunned otherwise they wont be able to make any damage at all.
i dont know if you were looking for such a solution, but i made this whole thing in a test map and it works pretty good. i will save the map perhaps you want to have a look.
i just had another idea, this idea will come much closer to what raven has suggested. give a unit the stun ability you want to use the unit will be your dummy. change the range of the stun ability so that it matches the range of the aura you want to use.
then do a trigger like this Time - Every 3.00 seconds of game time Condition (no condition) Aktions unit - Create 1 soldier(my dummy unit) for Player 1 at (Position of (the hero you are using) <gen>) facing x unit - Hide (Last created unit) unit - Order (Last created unit) to (Human Mountain King - Storm Bolt) Wait 1.00 seconds unit - Remove (Last created unit) from the game
this worked the best for me i would suggest you use this one instead of my first idea.
Raven which idea would you prefer? i go back now to work on my own triggers have fun and if you have any questions just ask.
i would suggest you do like this: make 2 trigger first:
event Unit - A unit learns ability condition (Learned Hero Skill) equal Stun-Aura Aktions Set stunauraowner = (Learning Hero)
second:
Time - Every 5.00 seconds of game time Condition Aktion UNit - Create 1 Stun-aura Dummy for (Owner of stunauraowner) at (Position of stunauraowner) facing (Position of stunauraowner) Unit - Hide (Last created unit) Unit - Order (Last created unit) to Human Mountain King - Storm Bolt Wait 1.00 seconds Unit - Remove (Last created unit) from the game
Stun Aura
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in (Units in (Playable map area) matching ((Level of Stun Aura for (Matching unit)) Greater than or equal to 1)) and do (Actions)
Loop - Actions
Set Caster = (Picked unit)
Unit Group - Pick every unit in (Units within 800.00 of (Position of Caster) matching (((Matching unit) belongs to an enemy of (Owner of Caster)) Equal to True)) and do (Actions)
Loop - Actions
Unit - Create 1 Dummy Caster for (Owner of Caster) at (Position of (Picked unit)) facing Default building facing degrees
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
Unit - Order (Last created unit) to Human Mountain King - Storm Bolt (Picked unit)
I would also probably create a unit group with the acceptable targets (i.e. enemies, land units, non-invulnerable units, etc.) and create different stun abilities for each level and add them to the dummy caster via If/Then actions.
this step is pretty cool Actions Unit Group - Pick every unit in (Units in (Playable map area) matching ((Level of Stun Aura for (Matching unit)) Greater than or equal to 1)) and do (Actions) Loop - Actions Set Caster = (Picked unit)
i couldnt find another solution for how to give the caster an varible but thats a nice way.
i will keep that in mind, Raven aka my new Master
PS: is expiration timer better then hiding and removing? and when it is, why?
I prefer expiration timers because you set them when you create the unit and don't have to worry about it again. I've never had any problems using this method, but that doesn't mean that there isn't any.