Elune's Arrow

Endless_Trev

New Member
Reaction score
5
Hey uhh ive been trying to program an ability like Elune's Arrow for my own map, and after lots of frustrated outbursts at my computer, almost everything seems to be working now, except one thing. Im not sure how to stun the target of the arrow.

So far the way I've tried it is to create a new storm bolt ability with 100 levels which stun for an increasing amount of time, give it to a dummy unit, set the level of the ability based off the distance travelled, then ordered the dummy unit to 'human mountain king - storm bolt' the target of the arrow, but it doesn't work. Im assuming the problem lies within the unit - issue order... human mountain king etc. part of the trigger, but what else can I do seeing as the only orders available are preset and i dont know how to load my own abilities into that list. Anyone know how to help?
 

NindoOne

TH.net Regular
Reaction score
17
Hey uhh ive been trying to program an ability like Elune's Arrow for my own map, and after lots of frustrated outbursts at my computer, almost everything seems to be working now, except one thing. Im not sure how to stun the target of the arrow.

So far the way I've tried it is to create a new storm bolt ability with 100 levels which stun for an increasing amount of time, give it to a dummy unit, set the level of the ability based off the distance travelled, then ordered the dummy unit to 'human mountain king - storm bolt' the target of the arrow, but it doesn't work. Im assuming the problem lies within the unit - issue order... human mountain king etc. part of the trigger, but what else can I do seeing as the only orders available are preset and i dont know how to load my own abilities into that list. Anyone know how to help?

Can you please tell us what spell your'e making?:rolleyes:
 

canons200

New Member
Reaction score
50
go to trigger, select copy as text, and come to here to create a new post, add (wc) your spell here (/wc).

* replace () with []
 

jig7c

Stop reading me...-statement
Reaction score
123
does the dummy unit have that storm bolt with 0 mana cost..
dummies need that ability so you can order them to stun via a trigger!
 

Endless_Trev

New Member
Reaction score
5
Sorry I'm still a noob when it comes to this stuff, so dont judge too harshly :p
Elunes Arrow
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Elune's Arrow
Actions
Unit - Create 1 Arrow Dummy for (Owner of (Casting unit)) at (Position of (Casting unit)) facing Arrow_angle degrees
Set ArrowPlayer = (Owner of (Casting unit))
Set Arrow_angle = (Facing of (Casting unit))
Unit - Turn collision for (Last created unit) Off
Set ArrowCaster = (Casting unit)
Set OriginalPoint = (Position of (Casting unit))
Set Projectile = (Last created unit)
Countdown Timer - Start ArrowTimer as a Repeating timer that will expire in 0.03 seconds

Elunes Arrow 2
Events
Time - ArrowTimer expires
Conditions
Actions
Set ArrowDistanceCounter = (ArrowDistanceCounter + 1)
Unit - Move Projectile instantly to ((Position of Projectile) offset by 30.00 towards Arrow_angle degrees)
Unit Group - Add all units of (Units within 140.00 of (Position of Projectile)) to ArrowTargets
Unit Group - Pick every unit in ArrowTargets and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is dead) Equal to True
Then - Actions
Unit Group - Remove (Picked unit) from ArrowTargets
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) belongs to an ally of ArrowPlayer) Equal to True
Then - Actions
Unit Group - Remove (Picked unit) from ArrowTargets
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is A structure) Equal to True
Then - Actions
Unit Group - Remove (Picked unit) from ArrowTargets
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(ArrowTargets is empty) Equal to False
Then - Actions
Set ArrowDamageUnit = (Random unit from ArrowTargets)
Unit - Create 1 Arrow Dummy 2 for ArrowPlayer at (Position of Projectile) facing Default building facing degrees
Unit - Add Storm Bolt to (Last created unit)
Unit - Set level of Storm Bolt for (Last created unit) to ArrowDistanceCounter
Unit - Order (Last created unit) to Human Mountain King - Storm Bolt ArrowDamageUnit
Unit - Remove (Last created unit) from the game
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Elune's Arrow for ArrowCaster) Equal to 1
Then - Actions
Unit - Cause ArrowCaster to damage ArrowDamageUnit, dealing 90.00 damage of attack type Spells and damage type Normal
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Elune's Arrow for ArrowCaster) Equal to 2
Then - Actions
Unit - Cause ArrowCaster to damage ArrowDamageUnit, dealing 180.00 damage of attack type Spells and damage type Normal
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Elune's Arrow for ArrowCaster) Equal to 3
Then - Actions
Unit - Cause ArrowCaster to damage ArrowDamageUnit, dealing 270.00 damage of attack type Spells and damage type Normal
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Elune's Arrow for ArrowCaster) Equal to 4
Then - Actions
Unit - Cause ArrowCaster to damage ArrowDamageUnit, dealing 360.00 damage of attack type Spells and damage type Normal
Else - Actions
Do nothing
Unit - Remove Projectile from the game
Countdown Timer - Pause ArrowTimer
Else - Actions
Do nothing

Elunes Arrow 3
Events
Time - ArrowTimer expires
Conditions
ArrowDistanceCounter Equal to 101
Actions
Unit - Remove Projectile from the game
Countdown Timer - Pause ArrowTimer

Before you say anything, I know its probably more complex than it needs to be, again, I'm just a noob.
 

Hot

New Member
Reaction score
9
Post Code in "WC3 GUI TAG" (the golden "a") ´

u can stun the target by this,

Code:
Event - Every 0.03 seconds
Condition
Action - Set TmpPoint position at Arrow
- Set TmpGroup units within 50 range of TmpPoint
- Pick every unit in TmpGroup

- Loop Action

   - Create 1 Stun Dummy at TmpPoint 
   - Add Stun to last created Dummy
   - Set level of Stun equal to ArrowDistanceCounter
   - Order last created Unit to - Human Mountain King, Storm Bolt Picked Unit
   - Add a 0.3 second Experation Timer to last created Unit.
   

- Custom Script: call RemoveLocation( udg_TmpPoint )
- Custom Script: call DestroyGroup( udg_TmpGroup )

Note: Its freehand so it wont look the same in the editor
 

Slapshot136

Divide et impera
Reaction score
471
it might be easier to post the map, but here's a list of things to try

1. if you add a text message in the trigger where you order the dummy to cast it, do you see that text?

2. if you make the dummy visible, do you see the dummy?

3. if you place the dummy elsewhere in the map and select it, can you cast your spell on a unit manually?

4. does the dummy have enough time to cast the spell before it's expiration timer runs out?
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      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