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.
  • WildTurkey WildTurkey:
    is there a stephen green in the house?
    +1
  • The Helper The Helper:
    What is up WildTurkey?
  • The Helper The Helper:
    Looks like Google fixed whatever mistake that made the recipes on the site go crazy and we are no longer trending towards a recipe site lol - I don't care though because it motivated me to spend alot of time on the site improving it and at least now the content people are looking at is not stupid and embarrassing like it was when I first got back into this like 5 years ago.
  • The Helper The Helper:
    Plus - I have a pretty bad ass recipe collection now! That section of the site is 10 thousand times better than it was before
  • The Helper The Helper:
    We now have a web designer at my job. A legit talented professional! I am going to get him to redesign the site theme. It is time.
  • Varine Varine:
    I got one more day of community service and then I'm free from this nonsense! I polished a cop car today for a funeral or something I guess
  • Varine Varine:
    They also were digging threw old shit at the sheriff's office and I tried to get them to give me the old electronic stuff, but they said no. They can't give it to people because they might use it to impersonate a cop or break into their network or some shit? idk but it was a shame to see them take a whole bunch of radios and shit to get shredded and landfilled
  • The Helper The Helper:
    whatever at least you are free
  • Monovertex Monovertex:
    How are you all? :D
    +1
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?

      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