Whirlwind Nova

Ub3r_

New Member
Reaction score
4
Ok, so this is my latest spell idea. I've tried everything to get it to work with no avail. I need someone to help me write a trigger that has four levels, casts 6 Whirlwinds in every direction around the caster (360 degrees) and is 50/100/150/200 damage , 5/10/15/20 cd , 20/40/80/160 mana. I seriously need help. Thanks.
 

BRUTAL

I'm working
Reaction score
118
ok well make a dummy ability that it a single unit target, and make its mana cost the amount you want, then make a trigger that makes 6 custom units with a tornado model file, and create 1 at every 60 degrees, then make a sliding trigger that moves them a certain distance every x seconds, and make a trigger so if a unit comes within x range of the units they recieve x amount of damage
 

GooS

Azrael
Reaction score
154
Sry dont got WE on this computer but you should be able to do it this way.

You need two abilities, one dummy for the real caster and one based on shockwave to give to dummies. Modify the shochwave ability to have a Whirlwind model and set levels to 4 and give them the damage you need and set mana cost to 0,
Then modify the Dummy ability to have 4 levels, the mana cost you want and the cooldown you want.
Btw
50/100/150/200 damage , 5/10/15/20 cd , 20/40/80/160 mana
Doesnt make sence, it would be better to keep rank 1 in that case as you get the most damage out of manacost and you could cast 4 during the time you could cast 1 at rank 4
This is the reason I hate most hero defence maps, because the creators dont realize this.
Its like a salesman I saw before, buy one chocolate for 6kr *Swedish currency* or 3 for 20kr

anyways to the trigger>

Code:
E Units starts the effect of an Ability
C Ability is Whirlwind equals to true
A Create 1 Dummy unit for owner of triggering unit at position of triggering unit facing 0 degrees
   Give ability Whirlwind to last created unit
   Add last created unit to unitgroup WhirlwindCasters
Create 1 Dummy unit for owner of triggering unit at position of triggering unit facing 60 degrees
   Give ability Whirlwind to last created unit
   Add last created unit to unitgroup WhirlwindCasters
Create 1 Dummy unit for owner of triggering unit at position of triggering unit facing 120 degrees
   Give ability Whirlwind to last created unit
   Add last created unit to unitgroup WhirlwindCasters
Create 1 Dummy unit for owner of triggering unit at position of triggering unit facing 180 degrees
   Give ability Whirlwind to last created unit
   Add last created unit to unitgroup WhirlwindCasters
Create 1 Dummy unit for owner of triggering unit at position of triggering unit facing 240 degrees
   Give ability Whirlwind to last created unit
   Add last created unit to unitgroup WhirlwindCasters
Create 1 Dummy unit for owner of triggering unit at position of triggering unit facing 300degrees
   Give ability Whirlwind to last created unit
   Add last created unit to unitgroup WhirlwindCasters
Pick every unit in WhirlwindCaster and do (actions)
         loop
            order picked unit to cast Whirlwind *the one based on shockwave*
and then destroy all dummys using custom scripts.
Notice! I do not know if shockwave is the best ability to base it of since I think it requires a target, well perhaps its a start.
Good luck

Peace
 

Larcenist

REP: Respect, Envy, Prosperity?
Reaction score
211
If you're going to base it off of Shockwave, don't. Base it off of Carrion Swarm instead. Shockwave affects the ground where you cast it, Carrion swarm does not.

Its like a salesman I saw before, buy one chocolate for 6kr *Swedish currency* or 3 for 20kr
One time when I entered a store called "Pressbyrån", they had this amazing offer, 1 Coke for 11kr, 2 Cokes for 10kr...
 

GoGo-Boy

You can change this now in User CP
Reaction score
40
Shockwave is best for it, just need to target the correct location which shouldn't be hard at all
 

Ub3r_

New Member
Reaction score
4
Sry dont got WE on this computer but you should be able to do it this way.

You need two abilities, one dummy for the real caster and one based on shockwave to give to dummies. Modify the shochwave ability to have a Whirlwind model and set levels to 4 and give them the damage you need and set mana cost to 0,
Then modify the Dummy ability to have 4 levels, the mana cost you want and the cooldown you want.
Btw

Doesnt make sence, it would be better to keep rank 1 in that case as you get the most damage out of manacost and you could cast 4 during the time you could cast 1 at rank 4
This is the reason I hate most hero defence maps, because the creators dont realize this.
Its like a salesman I saw before, buy one chocolate for 6kr *Swedish currency* or 3 for 20kr

anyways to the trigger>

Code:
E Units starts the effect of an Ability
C Ability is Whirlwind equals to true
A Create 1 Dummy unit for owner of triggering unit at position of triggering unit facing 0 degrees
   Give ability Whirlwind to last created unit
   Add last created unit to unitgroup WhirlwindCasters
Create 1 Dummy unit for owner of triggering unit at position of triggering unit facing 60 degrees
   Give ability Whirlwind to last created unit
   Add last created unit to unitgroup WhirlwindCasters
Create 1 Dummy unit for owner of triggering unit at position of triggering unit facing 120 degrees
   Give ability Whirlwind to last created unit
   Add last created unit to unitgroup WhirlwindCasters
Create 1 Dummy unit for owner of triggering unit at position of triggering unit facing 180 degrees
   Give ability Whirlwind to last created unit
   Add last created unit to unitgroup WhirlwindCasters
Create 1 Dummy unit for owner of triggering unit at position of triggering unit facing 240 degrees
   Give ability Whirlwind to last created unit
   Add last created unit to unitgroup WhirlwindCasters
Create 1 Dummy unit for owner of triggering unit at position of triggering unit facing 300degrees
   Give ability Whirlwind to last created unit
   Add last created unit to unitgroup WhirlwindCasters
Pick every unit in WhirlwindCaster and do (actions)
         loop
            order picked unit to cast Whirlwind *the one based on shockwave*
and then destroy all dummys using custom scripts.
Notice! I do not know if shockwave is the best ability to base it of since I think it requires a target, well perhaps its a start.
Good luck

Peace

Could you clarify this trigger a little more?
 

darkRae

Ueki Fan (Ueki is watching you)
Reaction score
173
That trigger makes 6 dummy units.
Each of them casts the custom Shockwave ability to different directions.
Although, it could be shortened by using Loop, like :

Code:
Events
    Unit - A unit Starts the effect of an ability
Conditions
    (Ability Being Cast) Equal to (Whirlwind)
Actions
    Set PointVar1 = (Position of (Triggering Unit))
    For Each (Integer A) 1 to 6 do (Actions)
        Loop - Actions
            Set PointVar2 = ((PointVar1) offset by (100.00) range towards (60.00 * (IntegerA)) degrees)
            Unit - Create 1 (Dummy Unit) for (Owner of (Triggering Unit)) at (PointVar) facing (60.00 * (Integer A))
            Unit - Give the ability (Shockwave) to (Last Created Unit)
            Unit - Order (Last Created Unit) to (Orc Tauren Chieftain - Shockwave) at (PointVar2)
            Unit - Add 1.50 second Generic expiration timer to (Last Created Unit)
            Custom Script: call RemoveLocation(udg_PointVar2)
    Custom Script: call RemoveLocation(udg_PointVar1)

Something like that :)
*Hand-written, might be missing something*
 

darkRae

Ueki Fan (Ueki is watching you)
Reaction score
173
That's Polar... something.
Damn, I'm forgetting things :p

EDIT:
'Point with Polar Offset'

I'm going to edit that post.
 

Ub3r_

New Member
Reaction score
4
I don't know how you got that because this is the clostest I could get to it:

Code:
Set PointVar2 = (PointVar1 offest by 100.00 towards 60.00 degrees)
 

darkRae

Ueki Fan (Ueki is watching you)
Reaction score
173
Yours :

Set PointVar2 = (PointVar1 offest by 100.00 towards 60.00 degrees)

Mine :

Set PointVar2 = ((PointVar1) offset by (100.00) range towards (60.00 * (IntegerA)) degrees)


You just need to have that (60.00 * Integer A) part.
 

darkRae

Ueki Fan (Ueki is watching you)
Reaction score
173
Use Arithmetic function.

Find that function, then you'll see "1.00 + 1.00"

Click the first "1.00" and change it to "60.00"

Change the "+" to "*"

Change the second "1.00" to "For Loop Integer A"
 

Ub3r_

New Member
Reaction score
4
Ok this is really confusing. Could you attach a map that has this action in it? Because I can't find where to get the "For Loop Integer A" value.
 

Larcenist

REP: Respect, Envy, Prosperity?
Reaction score
211
Press the second 1.00, then select "Conversion - Convert Integer to Real", then hit the "F" button once and you'll reach "For Loop Integer A".
 

Ub3r_

New Member
Reaction score
4
Wait, is this right if I get this?:

Code:
Set PointVar1 = (PointVar2 offest by 100.00 towards (60.00 * (Real((Integer A)) degrees)
 
General chit-chat
Help Users

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top