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 raddest synthwave tracks were chosen - Check out our Music Contest #12 - Results and congratulate the winners!
    Dismiss Notice
  5. The poll for Hive's 12th Concept Art Contest is up! Go cast your vote for your favourite genie!
    Dismiss Notice
  6. Travel to distant realms and encounter scenes unknown to the common folk. The Greatest of Adventures is upon us with the 8th Cinematic Contest. Join in on a fun ride.
    Dismiss Notice
  7. The 18th Icon Contest is ON! Choose any ingame unit and give him/her Hero abilities. Good luck to all.
    Dismiss Notice
  8. Contestants are to create a scene set in the Stone Age. Come and see what you can come up with. We wish you the best of luck!
    Dismiss Notice
  9. Colour outside the lines! Techtree Contest #13 is a go. The contest is optionally paired.
    Dismiss Notice
  10. Greetings cerebrates, our Swarm needs new spawners that will have numerous children. Join the HIVE's 31st Modeling Contest - Spawners and Spawned! The contest is optionally paired.
    Dismiss Notice
  11. 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.

Chaosphere v2.4

Submitted by TheSpoon
This bundle is marked as approved. It works and satisfies the submission rules.
Chaosphere v2.4

Description: Creates a circle of chaos arond the Hexmaster. Enemies in the sphere will have a chance of receive a random negative buff at irregular intervals. The buffs have varying durations and effects. Lasts 20 seconds.

Effect List:
- Blind - Causes the target to miss on 33% of their attacks. Lasts 20 (10) seconds.
- Confusion - Causes the target to attack a random nearby allied unit.
- Hex - Turns the target into a random critter. Lasts 10 (3) seconds.
- Poison - Deals 5 damage per second. Lasts 16 (8) seconds.
- Shock - Damages target for 50 damage.
- Silence - Prevents target from using spells. Lasts 12 (4) seconds.
- Sleep - Stuns target, is awoken if damaged. Lasts 8 (4) seconds.
- Slow - Slows the target's attack speed by 25% and move speed by 60%. Lasts 16 (8) seconds.
- Voodoo Curse - Reduces the target's armor by 3 and provides vision. Last 20 (10) seconds.
- Warp - Teleports the target to random location inisde the sphere.


Triggers:
[trigger=Init]Chaosphere Init
Events
Map initialization
Conditions
Actions
Hashtable - Create a hashtable
Set chaospherehashtable = (Last created hashtable)
Set chaospherenumbereffects = 10
Set chaospherechance[1] = 15.00
Set chaospherechance[2] = 15.00
Set chaospherechance[3] = 10.00
Set chaospherechance[4] = 10.00
Set chaospherechance[5] = 10.00
Set chaospherechance[6] = 10.00
Set chaospherechance[7] = 10.00
Set chaospherechance[8] = 10.00
Set chaospherechance[9] = 5.00
Set chaospherechance[10] = 5.00
For each (Integer A) from 1 to chaospherenumbereffects, do (Actions)
Loop - Actions
Set chaospherechance[(Integer A)] = (chaospherechance[(Integer A)] + chaospherechance[((Integer A) - 1)])
Set chaospheretotalchance = (chaospheretotalchance + chaospherechance[(Integer A)])
[/trigger]
[trigger=Cast]Chaosphere Cast
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Chaosphere
Actions
Set temppoint = (Position of (Triggering unit))
Unit Group - Add (Triggering unit) to chaospherecastinggroup
Hashtable - Save 1 as 9 of (Key (Casting unit)) in chaospherehashtable
Hashtable - Save Handle Ofchaosphereemptyugroup as 10 of (Key (Triggering unit)) in chaospherehashtable
Hashtable - Save Handle Of(Owner of (Triggering unit)) as 11 of (Key (Triggering unit)) in chaospherehashtable
Hashtable - Save 0.00 as 12 of (Key (Triggering unit)) in chaospherehashtable
Hashtable - Save (X of temppoint) as 13 of (Key (Triggering unit)) in chaospherehashtable
Hashtable - Save (Y of temppoint) as 14 of (Key (Triggering unit)) in chaospherehashtable
For each (Integer A) from 1 to 8, do (Actions)
Loop - Actions
Set temppoint2 = (temppoint offset by 50.00 towards (45.00 x (Real((Integer A)))) degrees)
Unit - Create 1 Chaosorb for (Owner of (Triggering unit)) at temppoint2 facing (45.00 x (Real((Integer A)))) degrees
Unit - Add a 24.00 second Generic expiration timer to (Last created unit)
Hashtable - Save Handle Of(Last created unit) as (Integer A) of (Key (Triggering unit)) in chaospherehashtable
Custom script: call RemoveLocation (udg_temppoint2)
Custom script: call RemoveLocation (udg_temppoint)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in chaospherecastinggroup) Equal to 1
Then - Actions
Trigger - Turn on Chaosphere Function <gen>
Else - Actions
[/trigger]
[trigger=Function]Chaosphere Function
Events
Time - Every 0.05 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in chaospherecastinggroup and do (Actions)
Loop - Actions
Set chaospherepickedunit = (Picked unit)
Set tempinteger = (Load 9 of (Key (Picked unit)) from chaospherehashtable)
Set temppoint3 = (Point((Load 13 of (Key (Picked unit)) from chaospherehashtable), (Load 14 of (Key (Picked unit)) from chaospherehashtable)))
Set tempugroup = (Units within 500.00 of temppoint3)
Unit Group - Pick every unit in tempugroup and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Spell Immunity for (Picked unit)) Equal to 0
tempinteger Equal to 2
((Picked unit) is dead) Equal to False
((Owner of (Picked unit)) is an enemy of (Load 11 of (Key chaospherepickedunit) in chaospherehashtable)) Equal to True
((Picked unit) is in (Load 10 of (Key chaospherepickedunit) in chaospherehashtable)) Equal to False
Then - Actions
Unit Group - Add (Picked unit) to (Load 10 of (Key chaospherepickedunit) in chaospherehashtable)
Unit Group - Add (Picked unit) to chaospheretargetgroup
Else - Actions
Unit Group - Pick every unit in (Load 10 of (Key chaospherepickedunit) in chaospherehashtable) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
(Level of Spell Immunity for (Picked unit)) Not equal to 0
tempinteger Not equal to 2
((Picked unit) is dead) Equal to True
((Picked unit) is in tempugroup) Equal to False
Then - Actions
Unit Group - Remove (Picked unit) from (Load 10 of (Key chaospherepickedunit) in chaospherehashtable)
Unit Group - Remove (Picked unit) from chaospheretargetgroup
Else - Actions
Custom script: call DestroyGroup (udg_tempugroup)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in chaospheretargetgroup) Greater than or equal to 1
Then - Actions
Trigger - Turn on Chaosphere Effect <gen>
Else - Actions
Trigger - Turn off Chaosphere Effect <gen>
For each (Integer A) from 1 to 8, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
tempinteger Equal to 1
Then - Actions
Set tempunit2 = (Load (Integer A) of (Key (Picked unit)) in chaospherehashtable)
Set temppoint = (Position of tempunit2)
Set temppoint2 = (temppoint3 offset by ((Distance between temppoint3 and temppoint) + 11.25) towards ((Angle from temppoint3 to temppoint) + 6.00) degrees)
Unit - Move tempunit2 instantly to temppoint2
Custom script: call RemoveLocation (udg_temppoint)
Custom script: call RemoveLocation (udg_temppoint2)
Else - Actions
For each (Integer A) from 1 to 8, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
tempinteger Equal to 2
Then - Actions
Set tempunit2 = (Load (Integer A) of (Key (Picked unit)) in chaospherehashtable)
Set temppoint = (Position of tempunit2)
Set temppoint2 = (temppoint3 offset by ((Distance between temppoint3 and temppoint) + 0.00) towards ((Angle from temppoint3 to temppoint) + 6.00) degrees)
Unit - Move tempunit2 instantly to temppoint2
Custom script: call RemoveLocation (udg_temppoint)
Custom script: call RemoveLocation (udg_temppoint2)
Else - Actions
For each (Integer A) from 1 to 8, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
tempinteger Equal to 3
Then - Actions
Set tempunit2 = (Load (Integer A) of (Key (Picked unit)) in chaospherehashtable)
Set temppoint = (Position of tempunit2)
Set temppoint2 = (temppoint3 offset by ((Distance between temppoint3 and temppoint) - 11.25) towards ((Angle from temppoint3 to temppoint) + 6.00) degrees)
Unit - Move tempunit2 instantly to temppoint2
Custom script: call RemoveLocation (udg_temppoint)
Custom script: call RemoveLocation (udg_temppoint2)
Else - Actions
Set tempreal = (Load 12 of (Key (Picked unit)) from chaospherehashtable)
Set tempinteger = (Load 9 of (Key chaospherepickedunit) from chaospherehashtable)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
tempreal Greater than or equal to 2.00
tempinteger Equal to 1
Then - Actions
Hashtable - Save 2 as 9 of (Key (Picked unit)) in chaospherehashtable
Unit - Create 1 Chaosphere for (Owner of (Picked unit)) at temppoint3 facing Default building facing degrees
Unit - Add a 20.00 second Generic expiration timer to (Last created unit)
Unit - Create 1 Chaosphere for (Owner of (Picked unit)) at temppoint3 facing Default building facing degrees
Unit - Add a 20.00 second Generic expiration timer to (Last created unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
tempreal Greater than or equal to 22.00
tempinteger Equal to 2
Then - Actions
Hashtable - Save 3 as 9 of (Key (Picked unit)) in chaospherehashtable
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
tempreal Greater than or equal to 24.00
tempinteger Equal to 3
Then - Actions
Hashtable - Save 0 as 9 of (Key (Picked unit)) in chaospherehashtable
Unit Group - Remove (Picked unit) from chaospherecastinggroup
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in chaospherecastinggroup) Equal to 0
Then - Actions
Trigger - Turn off (This trigger)
Else - Actions
Hashtable - Clear all child hashtables of child (Key (Picked unit)) in chaospherehashtable
Custom script: call DestroyGroup (LoadGroupHandleBJ(10, GetHandleIdBJ(GetEnumUnit()), udg_chaospherehashtable))
Custom script: call RemoveLocation (udg_temppoint3)
Skip remaining actions
Else - Actions
Hashtable - Save (tempreal + 0.05) as 12 of (Key (Picked unit)) in chaospherehashtable
Custom script: call RemoveLocation (udg_temppoint3)[/trigger]
[trigger=Effects]Chaosphere Effect
Events
Time - Every 0.20 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in chaospherecastinggroup and do (Actions)
Loop - Actions
Set chaospherepickedunit = (Picked unit)
Unit Group - Pick every unit in (Load 10 of (Key (Picked unit)) in chaospherehashtable) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Random integer number between 1 and 15) Equal to 1
Then - Actions
Set temppoint = (Position of (Picked unit))
Set temppoint2 = (Point((Load 13 of (Key chaospherepickedunit) from chaospherehashtable), (Load 14 of (Key chaospherepickedunit) from chaospherehashtable)))
Unit - Create 1 Dummy for (Load 11 of (Key chaospherepickedunit) in chaospherehashtable) at temppoint facing 270.00 degrees
Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
Set tempreal = (Random real number between 0.01 and chaospheretotalchance)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
tempreal Greater than chaospherechance[0]
tempreal Less than or equal to chaospherechance[1]
Then - Actions
Set temppoint3 = (temppoint2 offset by ((Random real number between 7.00 and 20.00) x (Random real number between 7.00 and 20.00)) towards (Random angle) degrees)
Special Effect - Create a special effect at temppoint using Abilities\Spells\NightElf\Blink\BlinkTarget.mdl
Special Effect - Destroy (Last created special effect)
Special Effect - Create a special effect at temppoint3 using Abilities\Spells\NightElf\Blink\BlinkCaster.mdl
Special Effect - Destroy (Last created special effect)
Unit - Move (Picked unit) instantly to temppoint3
Custom script: call RemoveLocation (udg_temppoint3)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
tempreal Greater than chaospherechance[1]
tempreal Less than or equal to chaospherechance[2]
Then - Actions
Special Effect - Create a special effect attached to the origin of (Picked unit) using Abilities\Spells\Items\AIil\AIilTarget.mdl
Special Effect - Destroy (Last created special effect)
Set tempugroup = (Units within 300.00 of temppoint matching (((Matching unit) Not equal to (Picked unit)) and (((Matching unit) belongs to an ally of (Owner of (Picked unit))) Equal to True)))
Unit - Order (Picked unit) to Attack (Random unit from tempugroup)
Custom script: call DestroyGroup (udg_tempugroup)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
tempreal Greater than chaospherechance[2]
tempreal Less than or equal to chaospherechance[3]
Then - Actions
Unit - Add Voodoo Curse (Dummy) to (Last created unit)
Unit - Order (Last created unit) to Night Elf Druid Of The Talon - Faerie Fire (Picked unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
tempreal Greater than chaospherechance[3]
tempreal Less than or equal to chaospherechance[4]
Then - Actions
Unit - Add Blind (Dummy) to (Last created unit)
Unit - Order (Last created unit) to Undead Banshee - Curse (Picked unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
tempreal Greater than chaospherechance[4]
tempreal Less than or equal to chaospherechance[5]
Then - Actions
Unit - Add Shadow Strike (Dummy) to (Last created unit)
Unit - Order (Last created unit) to Undead Necromancer - Unholy Frenzy (Picked unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
tempreal Greater than chaospherechance[5]
tempreal Less than or equal to chaospherechance[6]
Then - Actions
Unit - Add Shock (Dummy) to (Last created unit)
Unit - Order (Last created unit) to Orc Far Seer - Chain Lightning (Picked unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
tempreal Greater than chaospherechance[6]
tempreal Less than or equal to chaospherechance[7]
Then - Actions
Unit - Add Slow (Dummy) to (Last created unit)
Unit - Order (Last created unit) to Human Sorceress - Slow (Picked unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
tempreal Greater than chaospherechance[7]
tempreal Less than or equal to chaospherechance[8]
Then - Actions
Unit - Add Silence (Dummy) to (Last created unit)
Unit - Order (Last created unit) to Neutral Pit Lord - Doom (Picked unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
tempreal Greater than chaospherechance[8]
tempreal Less than or equal to chaospherechance[9]
Then - Actions
Unit - Add Sleep (Dummy) to (Last created unit)
Unit - Order (Last created unit) to Undead Dreadlord - Sleep (Picked unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
tempreal Greater than chaospherechance[9]
tempreal Less than or equal to chaospherechance[10]
Then - Actions
Unit - Add Hex (Dummy) to (Last created unit)
Unit - Order (Last created unit) to Orc Shadow Hunter - Hex (Picked unit)
Else - Actions
Custom script: call RemoveLocation (udg_temppoint)
Custom script: call RemoveLocation (udg_temppoint2)
Else - Actions[/trigger]


Screenshot:
[​IMG]


Notes
Pros:
- The spell is MUI
- The idea is original, or atleast, I haven't seen it done before
- Runs smoothly and has some nice visual effects
- Fairly balanced as a classic level 6 ultimate
- Can add your own spells too!

Cons:
- The spell is difficult to transfer maps due to the number of dummy spells and buffs
- The triggering could probably be made more efficient


Credits:
Sphere Model by Darky29 - link


Keywords:
spell ultimate troll voodoo chaos sphere shadow hunter
Contents

Chaosphere v2.4 (Map)

Reviews
Moderator
18:50, 12th Jul 2010 TriggerHappy: You've updated most of what I've asked. It still would be best if you used arrays though.
  1. 18:50, 12th Jul 2010
    TriggerHappy:

    You've updated most of what I've asked. It still would be best if you used arrays though.
     
  2. RaidonGod

    RaidonGod

    Joined:
    Oct 7, 2008
    Messages:
    285
    Resources:
    5
    Models:
    3
    Icons:
    2
    Resources:
    5
    nice one. :D
    I like it. Could be awesome for some hero arena or else. :D
    I like this idea, got an similar once upon a time. :xxd:
     
  3. Klingo

    Klingo

    Joined:
    Dec 19, 2009
    Messages:
    246
    Resources:
    5
    Spells:
    5
    Resources:
    5
    can you put triggers in description?

    Edit: Your spell isn't MUI nor MPI, It does only provide 1 level. Plus , don't let those two periodic trigger running when noone casted the spell, It could cause lag.
     
    Last edited: Jul 3, 2010
  4. .mitsuki

    .mitsuki

    Joined:
    Mar 22, 2010
    Messages:
    207
    Resources:
    0
    Resources:
    0
    Cool Effects :D
    I LOVE IT!!!
     
  5. gaby-boy

    gaby-boy

    Joined:
    Jun 14, 2009
    Messages:
    114
    Resources:
    5
    Spells:
    4
    Tutorials:
    1
    Resources:
    5
    nice! :grin:

    The effect are good and this is super originality!

    Add more buff for each level would be nice.
     
  6. WherewolfTherewolf

    WherewolfTherewolf

    Joined:
    Jul 18, 2008
    Messages:
    2,821
    Resources:
    3
    Models:
    3
    Resources:
    3
    Read the rules - sorry but custom models for spells aren't allowed - try to find an in game one that works for it (idk but I think it may be okay the suggest a model for it)

    Anyways downloading now.....
    Things noticed on first look through:
    -Well at least some effort was put into the terrain, many spells have some pretty ugly thrown together terrain in them, doesn't impact the spell but whatever.
    -This is MPI, not MUI. With the new change in rules this is no longer allowed.
    -I don't see any leaks in it so far

    K things you can improve upon:
    -Use in game model for the spell effect
    -Make this actually MUI, as in works even if multiple units from the same player cast it at the same time:
    check either:
    Hash Tables
    or
    Dynamic Value Storage
     
  7. TheSpoon

    TheSpoon

    Joined:
    Jul 16, 2007
    Messages:
    704
    Resources:
    54
    Packs:
    4
    Maps:
    49
    Spells:
    1
    Resources:
    54
    So.. I'll have to use a non-custom model, and make it MUI?
    Well.. I'll get to work on it then.
     
  8. lafatu

    lafatu

    Joined:
    Jun 19, 2009
    Messages:
    10
    Resources:
    0
    Resources:
    0
    good job dude
     
  9. Lambdadelta

    Lambdadelta

    Joined:
    Jul 6, 2009
    Messages:
    720
    Resources:
    1
    Maps:
    1
    Resources:
    1
    Really? Where does it state that?
     
  10. Klingo

    Klingo

    Joined:
    Dec 19, 2009
    Messages:
    246
    Resources:
    5
    Spells:
    5
    Resources:
    5
    Well , you can use them if it's necessary and if you give credits , I think it respect both.
     
  11. Darkzealot_128

    Darkzealot_128

    Joined:
    Jun 29, 2010
    Messages:
    737
    Resources:
    2
    Tutorials:
    2
    Resources:
    2
    Wow the spell is great
     
  12. WherewolfTherewolf

    WherewolfTherewolf

    Joined:
    Jul 18, 2008
    Messages:
    2,821
    Resources:
    3
    Models:
    3
    Resources:
    3
    Take a look in the rules
    You cannot use a custom model for a submitted spell - once you've imported it into your map have fun with whatever custom model you want.

    I believe the point is to prevent the downloader the hassle of having to download more resources simply to get a spell to work or look correct.
     
  13. Lambdadelta

    Lambdadelta

    Joined:
    Jul 6, 2009
    Messages:
    720
    Resources:
    1
    Maps:
    1
    Resources:
    1
    I have. I want you to quote it and post the link.
     
  14. ekko56

    ekko56

    Joined:
    Jun 22, 2007
    Messages:
    38
    Resources:
    0
    Resources:
    0
    Just checked the rules for spell resources (above). The rules say nothing about it needing to be MUI or that you can't use custom models (or any custom resource for that matter).

    If this was for a contest with additional rules then I apologize.
     
  15. WherewolfTherewolf

    WherewolfTherewolf

    Joined:
    Jul 18, 2008
    Messages:
    2,821
    Resources:
    3
    Models:
    3
    Resources:
    3
    I know there's a rule against that somewhere and I asked one of the spell mods (after looking through the faq about that) that said he doesn't approve resources the require custom models to work (he basically said he doesn't care if it's just something thrown in that could be replaced, but a spell dependent on the model won't be approved).

    And I know there was a rule against that in there somewhere at some time, perhaps it got removed from the faq or something, but I am quite sure there is a rule against that.


    And yes, full MUI was added as a requirement after the addition of hashtables to GUI
     
  16. Super-Sheep

    Super-Sheep

    Joined:
    Oct 21, 2006
    Messages:
    2,823
    Resources:
    1
    Maps:
    1
    Resources:
    1
    just wondering, shouldnt it be chaossphere

    chaos sphere

    not chaos phere

    ?
     
  17. WherewolfTherewolf

    WherewolfTherewolf

    Joined:
    Jul 18, 2008
    Messages:
    2,821
    Resources:
    3
    Models:
    3
    Resources:
    3
    Chaos O' Sphere?
     
  18. TheSpoon

    TheSpoon

    Joined:
    Jul 16, 2007
    Messages:
    704
    Resources:
    54
    Packs:
    4
    Maps:
    49
    Spells:
    1
    Resources:
    54
    I like it how it is 83
     
  19. Noobsmoke

    Noobsmoke

    Joined:
    Nov 20, 2007
    Messages:
    631
    Resources:
    1
    Spells:
    1
    Resources:
    1
    looks nice but still needs to be MUI :)