Multiple Casting of Elune Arrow

popo80000

New Member
Reaction score
20
I made this trigger below, and it is not working..
I want to make the Elune Arrow to be able to cast by multiple player...

How do i do it?
Trigger:
  • Elune Arrow
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Elune Arrow
    • Actions
      • Set Arrow_Count = (Arrow_Count + 1)
      • Set Arrow_Caster[Arrow_Count] = (Casting unit)
      • Set Arrow_CasterLoc[Arrow_Count] = (Position of Arrow_Caster[Arrow_Count])
      • Set Arrow_TargetPoint[Arrow_Count] = (Target point of ability being cast)
      • Set Arrow_Angle[Arrow_Count] = (Angle from Arrow_CasterLoc[Arrow_Count] to Arrow_TargetPoint[Arrow_Count])
      • Unit - Create 1 Arrow Dummy for (Owner of Arrow_Caster[Arrow_Count]) at Arrow_CasterLoc[Arrow_Count] facing Arrow_Angle[Arrow_Count] degrees
      • Set Arrow_Dummy[Arrow_Count] = (Last created unit)
      • Set Arrow_DistanceTravel[Arrow_Count] = 0
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Elune Arrow Move <gen> is on) Not equal to True
        • Then - Actions
          • Trigger - Turn on Elune Arrow Move <gen>
        • Else - Actions

Trigger:
  • Elune Arrow Move
    • Events
      • Time - Every 0.04 seconds of game time
    • Conditions
    • Actions
      • For each (Integer A) from 1 to Arrow_Count, do (Actions)
        • Loop - Actions
          • Set Arrow_DummyLoc[(Integer A)] = (Position of Arrow_Dummy[(Integer A)])
          • Set Arrow_Movement[(Integer A)] = (Arrow_DummyLoc[(Integer A)] offset by 30.00 towards Arrow_Angle[(Integer A)] degrees)
          • Unit - Move Arrow_Dummy[Arrow_Count] instantly to Arrow_Movement[(Integer A)]
          • Set Arrow_DistanceTravel[(Integer A)] = (Arrow_DistanceTravel[(Integer A)] + 30)
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Arrow_DistanceTravel[(Integer A)] Greater than or equal to 3000
            • Then - Actions
              • Unit - Remove Arrow_Dummy[(Integer A)] from the game
              • Special Effect - Create a special effect at Arrow_DummyLoc[(Integer A)] using Abilities\Weapons\GryphonRiderMissile\GryphonRiderMissileTarget.mdl
              • Special Effect - Destroy (Last created special effect)
              • Set Arrow_Count = (Arrow_Count - 1)
            • Else - Actions
          • Custom script: call RemoveLocation (udg_Arrow_DummyLoc[GetForLoopIndexA()])
          • Custom script: call RemoveLocation (udg_Arrow_Movement[GetForLoopIndexA()])
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Arrow_Count Less than or equal to 0
        • Then - Actions
          • Trigger - Turn off (This trigger)
        • Else - Actions


EDIT: hmm.. but is there a way to make it work?
 

kingkingyyk3

Visitor (Welcome to the Jungle, Baby!)
Reaction score
216
Actually sliding dummies is not healthy to do in GUI, it can cause serious performance problem.
 

kingkingyyk3

Visitor (Welcome to the Jungle, Baby!)
Reaction score
216
You can, but not efficient.

Nevermind, I will tell you how to make the spell work.
You need to create a unit group in loop.
If unit group has unit, then make the group only contain 1 unit.
Create dummy and add storm bolt to it,
Count the distance between starting point and the unit.
Set the storm bolt level n dummy.
Kill the arrow dummy.
Order dummy stun the picked unit.

Finish.
 

popo80000

New Member
Reaction score
20
You can, but not efficient.

Nevermind, I will tell you how to make the spell work.
You need to create a unit group in loop.
If unit group has unit, then make the group only contain 1 unit.
Create dummy and add storm bolt to it,
Count the distance between starting point and the unit.
Set the storm bolt level n dummy.
Kill the arrow dummy.
Order dummy stun the picked unit.

Finish.

erm.. sorry its my mistake for not finishing up the triggers..
I know how to make it work.. as the trigger above is unfinished..
What i want is:
- I want to make the elune arrow to be able to multi cast..
Meaning, there can be more than 1 arrow flying instead of only one..

Sorry, its my mistake to not explain it clearly in the beginning..
I already knew how to make the stunning and damage...
 
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