Order unit to use skill every x seconds...

Razed

New Member
Reaction score
44
In my Forest Maul Wars map, I got a tower who has a skill to increase damage done by 10% for 15 seconds (like the skill: Roar). But it is god damn annoying to enable it yourself every time again.

Is it possible to let the unit cast this skill whenever an enemy unit gets near him? :O So that the player doesn't have to use it.

+rep for the right solution
 

Sil3nt

SUP?
Reaction score
134
Why not just use command aura?
If it you dont want to then maybe you could tell me how long the cooldown is. Does the spell cost any mana? Does it only cast when enemies come in range or on a periodic basis?
 

Razed

New Member
Reaction score
44
I just made a custom skill of ''Roar'' and made the duration 15 sec, cooldown 30 sec. I want that, whenever the tower is constructed. It will use this skill if a enemy creep comes in xx range of the tower.

Possible? :O

edit: no mana cost
 
Reaction score
107
give it an attack and let it do 1-1 damage (it doesn't really matter)
set the attack cooldown to match the cooldown on roar, then make a trigger:

Code:
events
a unit is attacked
conditions
attacking unit equal to "your tower"
actions
order "your tower" to night elf druid of the claw roar
 

Razed

New Member
Reaction score
44
Well, the point of Tower Wars is that your towers won't get attacked, unless blocking. So the trigger for ''A unit is attacked'' won't work for me. And about the 1-1 damage, the tower his damage is just around 400-500 and that stays like this. His skill has as goal to increase his current damage and the damage of the nearest friendly towers by 10%.
This trigger must occur once the tower is constructed so you can't specific select the tower when creating the trigger.

I dont know how to create it but...

Event: Unit comes within 450 range of <tower-type>
Conditions: Unit-Type of triggering unit equal to Ogre Magi.
Action: Order tower to cast roar?
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
> the trigger for ''A unit is attacked'' won't work for me

I'd suggest you actually try it.

Event:
- A unit is attacked
Conditions:
- Unit-type of (Attacking unit) equal to "tower with whatever skill"
Actions:
- Unit - Issue order with no target: "Roar".


Note that the condition checks for the attacker being the tower.



> Event: Unit comes within 450 range of <tower-type>

Well, events can be added dynamically with "Trigger - Add event".

However,
- you can not remove them anymore
- "comes in range" only gives you the unit that comes near, not the tower you're looking for...
 

Cohadar

master of fugue
Reaction score
209
Add a dummy curse with 0.01 duration to the tower.
Then when ever tower casts curse on something you make it also cast roar.

The cooldown of curse must be largen than cooldown of roar
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top