[Trigger] Special Effects between points

Status
Not open for further replies.
Level 6
Joined
Jun 15, 2008
Messages
175
How do I make a special effect between 2 points?
Lets say I want a dummy unit to be moved every 0.04 second, I am going to make it cast a firebolt at a nearby unit - How do I create this effect. Do I need to do it manually by adding the spell and ordering it to be cast or can it be done some other way?
 
  • Effect Between Points
    • Events
      • Time - timer expires
    • Conditions
    • Actions
      • Set Location = (Position of EffectUnit)
      • Set LocationPolOffset = (Location offset by displacement towards angle degrees)
      • Unit - Move EffectUnit instantly to LocationPolOffset
      • Set MaxDist = (MaxDist - displacement)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • MaxDist Less than or equal to 0.00
        • Then - Actions
          • Countdown Timer - Pause timer
        • Else - Actions
      • Custom script: call RemoveLocation(udg_Location)
      • Custom script: call RemoveLocation(udg_LocationPolOffset)
Variables:

angle (Real)
displacement (Real)
EffectUnit (Unit)
Location (Point)
LocationPolOffset (Point)
MaxDist (Real)
timer (Timer)

of course you have to set this variables somewhere in another trigger and also start a repaeting timer that expires in tt.tt seconds.
 
Did not understand much of what Starquizer said, I will try that out I think. Also I don't know much jass yet, but I will probably also try your system Saia_Djinn

Whats there not to understand I posted the whole trigger !!

And below it I gave you the variables I used in the trigger, if you want a map I can do attach one.
 
Status
Not open for further replies.
Back
Top