1. Are you planning to upload your awesome spell or system to Hive? Please review the rules here.
    Dismiss Notice
  2. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  3. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still havn't received your rank award? Then please contact the administration.
    Dismiss Notice
  4. The Lich King demands your service! We've reached the 19th edition of the Icon Contest. Come along and make some chilling servants for the one true king.
    Dismiss Notice
  5. The 4th SFX Contest has started. Be sure to participate and have a fun factor in it.
    Dismiss Notice
  6. The poll for the 21st Terraining Contest is LIVE. Be sure to check out the entries and vote for one.
    Dismiss Notice
  7. The results are out! Check them out.
    Dismiss Notice
  8. Don’t forget to sign up for the Hive Cup. There’s a 555 EUR prize pool. Sign up now!
    Dismiss Notice
  9. The Hive Workshop Cup contest results have been announced! See the maps that'll be featured in the Hive Workshop Cup tournament!
    Dismiss Notice
  10. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Stacking Manyshot v1.0

Submitted by Caedrus
This bundle is marked as approved. It works and satisfies the submission rules.
[​IMG]

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

code
  • 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


Credits

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
Moderator
16:27, 9th Jun 2010 TriggerHappy: Coding was fine and spell worked.
  1. 16:27, 9th Jun 2010
    TriggerHappy:

    Coding was fine and spell worked.
     
  2. chanan12

    chanan12

    Joined:
    Feb 20, 2009
    Messages:
    261
    Resources:
    1
    Tutorials:
    1
    Resources:
    1
    Nice, grats on your first spell.
     
  3. Caedrus

    Caedrus

    Joined:
    Feb 11, 2010
    Messages:
    196
    Resources:
    3
    Maps:
    1
    Spells:
    1
    Tutorials:
    1
    Resources:
    3
    Well, it's not really my first spell, just the first one I submitted here. Thanks though :grin:
     
  4. Mr.Pockets00000

    Mr.Pockets00000

    Joined:
    Jan 1, 2010
    Messages:
    184
    Resources:
    6
    Skins:
    1
    Maps:
    4
    Tutorials:
    1
    Resources:
    6
    do you have to do those triggers to make the spell work?
     
  5. Caedrus

    Caedrus

    Joined:
    Feb 11, 2010
    Messages:
    196
    Resources:
    3
    Maps:
    1
    Spells:
    1
    Tutorials:
    1
    Resources:
    3
    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:
     
  6. Mr.Pockets00000

    Mr.Pockets00000

    Joined:
    Jan 1, 2010
    Messages:
    184
    Resources:
    6
    Skins:
    1
    Maps:
    4
    Tutorials:
    1
    Resources:
    6
    wait can we just copy the triggers from here? no that sounds too easy... importing stuff is usually a pain.
     
  7. Caedrus

    Caedrus

    Joined:
    Feb 11, 2010
    Messages:
    196
    Resources:
    3
    Maps:
    1
    Spells:
    1
    Tutorials:
    1
    Resources:
    3
    You can, but I think importing is easier in this case. Just do what I said and check "automatically create unknown variables" and importing is a cinch.
     
  8. Zeatherann

    Zeatherann

    Joined:
    Nov 25, 2008
    Messages:
    1,303
    Resources:
    6
    Skins:
    1
    Tools:
    1
    Maps:
    4
    Resources:
    6
    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?'
     
  9. Caedrus

    Caedrus

    Joined:
    Feb 11, 2010
    Messages:
    196
    Resources:
    3
    Maps:
    1
    Spells:
    1
    Tutorials:
    1
    Resources:
    3
    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.
     
  10. Mr.Pockets00000

    Mr.Pockets00000

    Joined:
    Jan 1, 2010
    Messages:
    184
    Resources:
    6
    Skins:
    1
    Maps:
    4
    Tutorials:
    1
    Resources:
    6
    Ok i got it in my map ok... now how would i make it into a hero ability with alot of levels? Is it in the triggers? I have yet to grasp custom spells and how they work.
    Custom spells are so confusing.
     
  11. Caedrus

    Caedrus

    Joined:
    Feb 11, 2010
    Messages:
    196
    Resources:
    3
    Maps:
    1
    Spells:
    1
    Tutorials:
    1
    Resources:
    3
    Depends. What do you want each level to do?
     
  12. mikey1313

    mikey1313

    Joined:
    Jun 13, 2010
    Messages:
    1
    Resources:
    0
    Resources:
    0
    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: Jun 13, 2010
  13. Caedrus

    Caedrus

    Joined:
    Feb 11, 2010
    Messages:
    196
    Resources:
    3
    Maps:
    1
    Spells:
    1
    Tutorials:
    1
    Resources:
    3
    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!
     
  14. Demon-300

    Demon-300

    Joined:
    Oct 9, 2007
    Messages:
    7
    Resources:
    0
    Resources:
    0
    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.
     
  15. Ignorance

    Ignorance

    Joined:
    Sep 25, 2008
    Messages:
    50
    Resources:
    0
    Resources:
    0
    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?
     
  16. xorkatoss

    xorkatoss

    Joined:
    Jul 12, 2010
    Messages:
    1,527
    Resources:
    7
    Models:
    5
    Maps:
    1
    Spells:
    1
    Resources:
    7
    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:
     
  17. RanCatu1020

    RanCatu1020

    Joined:
    Mar 23, 2017
    Messages:
    58
    Resources:
    1
    Models:
    1
    Resources:
    1
    Exactly what I needed!!!
    Esp. As a gui only modder ^_^