• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Nitro Trigger

Status
Not open for further replies.
Level 2
Joined
Jan 27, 2008
Messages
7
Hi, i need a trigger that makes my unit that cast a ability to move very fast but he cant move, he can only go forward. Can someone tell me how to do that.
 
Level 4
Joined
Dec 16, 2007
Messages
134
  • Untitled Trigger 002
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Ability being cast) Equal to Nitro
        • Then - Actions
          • Set point1 = (Position of (Casting unit))
          • Set point2 = (point1 offset by 5.00 towards (Facing of (Casting unit)) degrees)
          • Unit - Move (Casting unit) instantly to point2
        • Else - Actions
          • Custom script: call RemoveLocation(udg_point1)
          • Custom script: call RemoveLocation(udg_point2)
 
Level 29
Joined
Jul 29, 2007
Messages
5,174
Most ice games use something like this for their ice. This example includes two kinds of ice (two diffrent speeds).

Variables Used:

Slider - Unit variable, arrayed.
Point - Point variable, non-arrayed.
Point2 - Point variable, non-arrayed.

  • Wolves PWNNNNNNNNNNNNT
    • Events
      • Time - Every 0.20 seconds of game time
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 10, do (Actions)
        • Loop - Actions
          • Set Point = (Position of Slider[(Integer A)])
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Terrain type at Point) Equal to Northrend - Ice
            • Then - Actions
              • Set Point2 = (Point offset by 5.00 towards (Facing of Slider[(Integer A)]) degrees)
              • Unit - Move Slider[(Integer A)] instantly to Point2
              • Custom script: call RemoveLocation( udg_Point2 )
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Terrain type at Point) Equal to Icecrown Glacier - Dark Ice
                • Then - Actions
                  • Set Point2 = (Point offset by 10.00 towards (Facing of Slider[(Integer A)]) degrees)
                  • Unit - Move Slider[(Integer A)] instantly to Point2
                  • Custom script: call RemoveLocation( udg_Point2 )
                • Else - Actions
          • Custom script: call RemoveLocation( udg_Point )
 
Status
Not open for further replies.
Top