• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Throw Boll

Status
Not open for further replies.
Level 3
Joined
Jul 11, 2009
Messages
15
Hi i need a spell that throws a boll. I tried to make one but dident work.:slp: Its for my dodge boll map.:grin:
i will +rep and be thank full if its in Gui not jazz. (Dont understand Jazz.:sad:)
  • shoot
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • Throw [Y] Equal to (Ability being cast)
    • Actions
      • Wait 0.30 seconds
      • Set Missle_angel[(Custom value of (Item carried by (Triggering unit) in slot 1))] = (Angle from (Position of (Triggering unit)) to (Target point of ability being cast))
      • Unit - Create 1 Missle for (Owner of (Casting unit)) at ((Position of (Triggering unit)) offset by 30.00 towards Missle_angel[(Custom value of (Item carried by (Casting unit) in slot 1))] degrees) facing Default building facing degrees
      • Unit - Turn collision for (Last created unit) Off
      • Set Missle[(Custom value of (Item carried by (Triggering unit) in slot 1))] = (Last created unit)
      • Unit - Set the custom value of (Last created unit) to (Custom value of (Item carried by (Triggering unit) in slot 1))
      • Set speed[(Custom value of (Item carried by (Triggering unit) in slot 1))] = 16.00
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Casting unit) has buff Rune of swirl ) Equal to True
        • Then - Actions
          • Set Swirl[(Custom value of (Item carried by (Casting unit) in slot 1))] = True
          • Set speed[(Custom value of (Item carried by (Triggering unit) in slot 1))] = 20.00
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Casting unit) has buff Rune of Power ) Equal to True
        • Then - Actions
          • Set speed[(Custom value of (Item carried by (Triggering unit) in slot 1))] = 26.00
        • Else - Actions
      • Set move[(Custom value of (Item carried by (Triggering unit) in slot 1))] = True
      • Item - Remove (Item carried by (Triggering unit) of type Ball)
      • Unit - Replace (Casting unit) with a Shadow Hunter using The old unit's relative life and mana
      • Selection - Select (Last replaced unit) for (Owner of (Last replaced unit))
  • move
    • Events
      • Time - Every 0.01 seconds of game time
    • Conditions
    • Actions
      • For each (Integer A) from 1 to number_of_balls, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • move[(Integer A)] Equal to True
            • Then - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • Swirl[(Integer A)] Equal to True
                • Then - Actions
                  • Set Missle_angel[(Integer A)] = (Missle_angel[(Integer A)] + (Random real number between -10.00 and 10.00))
                  • Set speed[(Integer A)] = (speed[(Integer A)] - 0.01)
                • Else - Actions
                  • Set speed[(Integer A)] = (speed[(Integer A)] - 0.02)
              • Unit - Move Missle[(Integer A)] instantly to ((Position of Missle[(Integer A)]) offset by speed[(Integer A)] towards Missle_angel[(Integer A)] degrees)
              • Set speed[(Integer A)] = (speed[(Integer A)] - 0.02)
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • speed[(Integer A)] Less than 5.00
                • Then - Actions
                  • Set Swirl[(Integer A)] = False
                  • Unit - Pause Missle[(Integer A)]
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • speed[(Integer A)] Less than or equal to 1.00
                • Then - Actions
                  • Unit - Create 1 Weapon for Neutral Hostile at (Position of Missle[(Integer A)]) facing Default building facing degrees
                  • Unit - Set the custom value of (Last created unit) to (Custom value of Missle[(Integer A)])
                  • Unit - Remove Missle[(Integer A)] from the game
                  • Trigger - Run check <gen> (checking conditions)
                  • Set move[(Integer A)] = False
                • Else - Actions
            • Else - Actions

  • Condition
    • Events
      • You - Post Reply
    • Conditions
      • At this thread
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • In Gui Form
        • Then - Actions
          • +Rep
        • (Else Actions)
          • You - Stop writing a post
 
Status
Not open for further replies.
Top