• 🏆 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!

Stacking Manyshot v1.0

ManyshotPreview-1.jpg


A relatively simple but useful spell I made for the sixth skill of The Outlaw in
my upcoming map, Infamous Arena.

This spell allows a unit to target multiple units simultaneously with each attack.
Further, this spell stacks with itself: Each additional casting during the duration
increases the number of simultaneous attacks that can be made by one.

Note that it is not a hero skill and is not designed to have levels (though you can
easily convert it to a hero skill). If you would like a hero skill version, send me a
request and I will make one for you.

+MUI
+GUI
+Leakless
+Easily Transferable
+Easily Modified for any purpose
+Demonstrates usage of hidden spellbook trick

  • Manyshot
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Manyshot z
    • Actions
      • Set ManyshotSkip = (ManyshotSkip + 1)
      • Set Manyshot = (Manyshot + 1)
      • Set ManyshotCaster[Manyshot] = (Triggering unit)
      • Set ManyshotPoint = (Position of ManyshotCaster[Manyshot])
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Triggering unit) has buff Manyshot ) Equal to True
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Level of Manyshot for (Triggering unit)) Not equal to 4
            • Then - Actions
              • Set ManyshotLevel[Manyshot] = ((Level of Manyshot for ManyshotCaster[Manyshot]) + 1)
              • Unit - Set level of Manyshot for ManyshotCaster[Manyshot] to ManyshotLevel[Manyshot]
            • Else - Actions
              • Set ManyshotLevel[Manyshot] = ((Level of Manyshot for ManyshotCaster[Manyshot]) + 0)
        • Else - Actions
          • Unit - Add Manyshot Hidebook to ManyshotCaster[Manyshot]
          • Set ManyshotLevel[Manyshot] = 1
          • Player - Disable Manyshot Hidebook for (Owner of (Triggering unit))
      • Special Effect - Create a special effect attached to the origin of (Triggering unit) using Abilities\Spells\Items\AIil\AIilTarget.mdl
      • Special Effect - Destroy (Last created special effect)
      • Floating Text - Create floating text that reads (String((ManyshotLevel[Manyshot] + 2))) at ManyshotPoint with Z offset 20.00, using font size 10.00, color (33.00%, 33.00%, 100.00%), and 0.00% transparency
      • Floating Text - Change (Last created floating text): Disable permanence
      • Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
      • Floating Text - Change the fading age of (Last created floating text) to 2.00 seconds
      • Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds
      • Custom script: call RemoveLocation(udg_ManyshotPoint)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ManyshotSkip Equal to 1
        • Then - Actions
          • Trigger - Turn on Manyshot Loop <gen>
        • Else - Actions
  • Manyshot Loop
    • Events
      • Time - Every 0.04 seconds of game time
    • Conditions
    • Actions
      • For each (Integer ManyshotA) from 1 to Manyshot, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (ManyshotCaster[ManyshotA] has buff Manyshot ) Equal to True
            • Then - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • ManyshotOn[ManyshotA] Equal to True
                • Then - Actions
                • Else - Actions
                  • Set ManyshotOn[ManyshotA] = True
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • ManyshotOn[ManyshotA] Equal to True
                • Then - Actions
                  • Unit - Remove Manyshot Hidebook from ManyshotCaster[ManyshotA]
                  • Set ManyshotLevel[ManyshotA] = 0
                  • Set ManyshotSkip = (ManyshotSkip - 1)
                  • Set ManyshotOn[ManyshotA] = False
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • ManyshotSkip Equal to 0
                    • Then - Actions
                      • Set Manyshot = 0
                      • Trigger - Turn off (This trigger)
                    • Else - Actions
                • Else - Actions

Spell by Caedrus
Icon by Mr. Goblin


Please give credit if you use this spell!

Enjoy,
-Caedrus

Keywords:
Multishot, manyshot, arrow, arrows, ranger, bow, missile, multiple, barrage, spellbook, hidden, archer, stacking, buff
Contents

Stacking Manyshot (Map)

Reviews
16:27, 9th Jun 2010 TriggerHappy: Coding was fine and spell worked.

Moderator

M

Moderator

16:27, 9th Jun 2010
TriggerHappy:

Coding was fine and spell worked.
 
Level 11
Joined
Feb 11, 2010
Messages
199
do you have to do those triggers to make the spell work?

Yes. In order to easily copy the triggers from one map to another, go into your World Editor, select File-->Preferences-->General-->check the box Automatically Create Unknown Variables When Pasting Trigger Data. Then, it is simply a matter of copying and pasting the triggers into your map. Of course, you also need to copy the custom objects (Manyshot z, Manyshot, Manyshot Hidebook) from the Object Editor. And that's it! :thumbs_up:
 
i think i found a bug?

Had all 3 archers use the spell, one of them died the 2nd has it at 6 and is attacking six units, the 3rd no matter how many times i cast the spell for her and no matter how close i was to the mobs (for barrage's AoE) still only fired 1 arrow even though your floating text said six.

I may be wrong however, but i was like 'what the heck?'
 
Level 11
Joined
Feb 11, 2010
Messages
199
i think i found a bug?

Had all 3 archers use the spell, one of them died the 2nd has it at 6 and is attacking six units, the 3rd no matter how many times i cast the spell for her and no matter how close i was to the mobs (for barrage's AoE) still only fired 1 arrow even though your floating text said six.

I may be wrong however, but i was like 'what the heck?'

I'll look into it.

Edit: Okay, I have not been able to replicate this alleged glitch. Can you send me a replay, maybe? In fact, if anyone can send me proof of a glitch I'll +rep them and fix the glitch immediately.
 
Level 1
Joined
Jun 13, 2010
Messages
1
Hmm, it worked fine on your map, but I can't import it correctly -.-

I copied the trigger data, and the ability+ buff, still can't get it to work
It shows up, but when clicked it doesn't work, and no numbers show up (it works on test map, so I know what to expect :p)

I'm a completely newbie at this,

Can you give me a simple step by step instructions on what to do? (I'm just playing around the default maps, making custom heros for my own amusement, tested out a lot of files here, only got a few to work...no problem editing the default/custom, it's getting them to work in a map that's the problem, got 7 out of 34 I tried working... -.-). I did read the tutorial on the site, but I can't get this to work...

Thanks for help!
 
Last edited:
Level 11
Joined
Feb 11, 2010
Messages
199
Hmm, it worked fine on your map, but I can't import it correctly -.-

I copied the trigger data, and the ability+ buff, still can't get it to work
It shows up, but when clicked it doesn't work, and no numbers show up (it works on test map, so I know what to expect :p)

I'm a completely newbie at this,

Can you give me a simple step by step instructions on what to do? (I'm just playing around the default maps, making custom heros for my own amusement, tested out a lot of files here, only got a few to work...no problem editing the default/custom, it's getting them to work in a map that's the problem, got 7 out of 34 I tried working... -.-). I did read the tutorial on the site, but I can't get this to work...

Thanks for help!

Step 1) If you haven't already, go into your World Editor, select "File --> Preferences --> General --> Automatically create unknown variables when pasting trigger data." This makes copying triggers much easier.
Step 2) Copy the custom abilities and buffs from the map (Basically, everything that's Pink. Don't forget the buff, not just the abilities)
Step 3) Copy the triggers from the map.

You're done!
 
Level 2
Joined
Oct 9, 2007
Messages
7
ok let me say i love the skill. i just have a question, is it really nessecary to have the "Hidebook" skill? reason i ask is the character i plan to use this on (yes credit will be given, although the map is just a rework of warchasers) has a spellbook skill and right now the "Hidebook" portion is causeing some issues. can anyone help me here?

Just noticed that if you have critical strike on a character and you crit it disables the skill. also auto casts (like searing arrows) and things like envenomed weapons dont spread to the other targets. anyone have any idea of how to fix that with out using jass? if its not possibile let me know.
 
Level 3
Joined
Sep 25, 2008
Messages
50
I have the same question as Demon-300, is it possible for orbs, crit or bash to work? :/
Or would i have to trigger orb effects?
 
Level 19
Joined
Jul 12, 2010
Messages
1,713
Step 1) If you haven't already, go into your World Editor, select "File --> Preferences --> General --> Automatically create unknown variables when pasting trigger data." This makes copying triggers much easier.
Step 2) Copy the custom abilities and buffs from the map (Basically, everything that's Pink. Don't forget the buff, not just the abilities)
Step 3) Copy the triggers from the map.

You're done!

actually that's not all..
sometimes WE screws the triggers up...
when you have a Condition like the one below...
  • Conditions
    • Ability Being Cast Equal to Progressive Manyshot
and you try to transfer it to other maps it might change the trigger to something like this...
  • Conditions
    • Ability Being Cast Equal to Fireball
I usually have this problem when i copy paste triggers on my map

anyway this spell is pretty good 5/5 :thumbs_up:
 
Top