Univerment SpellPack [4 Spells][MUI]

This bundle is marked as useful / simple. Simplicity is bliss, low effort and/or may contain minor bugs.
Univerment Spell Pack



Univerment creates a tornado, which hurts constantly and every 1 seconds conjures a random spell, which can be ice, fire, earth or wind to random unit in range. Each spell has a different effect.

Level: 1/2/3/4

Damage: 20/35/50/65 per second
Duration: 4 seconds
Spell damage: 15/30/45/60
Casting range: 800
Area of effect: 400

Mana cost: 175/250/325/400
Cooldown: 30 seconds

Ice effect: 10/20/30/40%AS and 5/10/15/20%MS reduced for 4 seconds

Fire effect: 10/17.5/25/32.5 damage per second, for 5 seconds

Earth effects: Stuns for 0.6/1.2/1.8/2.4 seconds

Wind effects: 20/40/60/80%MS reduced for 5 seconds


Create a chain of lightning damage each nearby enemy 80, affects up to 5 units.

Level: 1/2/3/4

Mana cost: 50
Cooldown: 4/3/2/1 seconds


Using his mystic powers Univerment absorb some of the damage done in a portion of manna.

Level: 1/2/3/4

Absorbs: 7%/14%/21%/28%


Invokes an elementary Univerment brought from hell beyond. When it hits the ground causes damage and stuns nearby enemies.

Level: 1/2/3

Damage: 100/175/250
Duration: 30/50/70 seconds
Stun: 1.1/1.4/1.7 seconds
Casting range: 600
Area of effect: 250

Mana cost: 400/600/800
Cooldown: 100 seconds






  • Init
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Game - Display to (All players) the text: Press "ESC" for set...


  • ESC
    • Events
      • Player - Player 1 (Red) skips a cinematic sequence
    • Conditions
    • Actions
      • Unit - Set life of Univerment 0000 <gen> to 100.00%
      • Unit - Set mana of Univerment 0000 <gen> to 100.00%
      • Unit - Reset ability cooldowns for Univerment 0000 <gen>





  • Wind of the Elements DETECT
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Wind of the Elements
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • WotE_Index[0] Equal to 0
        • Then - Actions
          • Trigger - Turn on Wind of the Elements ACTION <gen>
        • Else - Actions
      • Set WotE_Index[0] = (WotE_Index[0] + 1)
      • Set WotE_Index[1] = (WotE_Index[1] + 1)
      • Set WotE_Caster[WotE_Index[1]] = (Triggering unit)
      • Set WotE_Point[WotE_Index[1]] = (Target point of ability being cast)
      • Set WotE_Level[WotE_Index[1]] = (Level of Wind of the Elements for WotE_Caster[WotE_Index[1]])
      • Special Effect - Create a special effect at WotE_Point[WotE_Index[1]] using Abilities\Spells\Other\Tornado\TornadoElemental.mdl
      • Set WotE_SpecialEffect[WotE_Index[1]] = (Last created special effect)
      • Set WotE_Damage[WotE_Index[1]] = (0.05 + (0.15 x (Real(WotE_Level[WotE_Index[1]]))))
      • Set WotE_CastingAbility[0] = Wind of the Elements [Earth]
      • Set WotE_CastingAbility[1] = Wind of the Elements [Fire]
      • Set WotE_CastingAbility[2] = Wind of the Elements [Ice]
      • Set WotE_CastingAbility[3] = Wind of the Elements [Wind]
      • Set WotE_Time[WotE_Index[1]] = 0.00
      • Set WotE_Duration = 4.20
      • Set WotE_Interval[WotE_Index[1]] = 0.00
      • Unit - Create 1 Visibility for (Owner of WotE_Caster[WotE_Index[1]]) at WotE_Point[WotE_Index[1]] facing Default building facing degrees
      • Set WotE_Visibility[WotE_Index[1]] = (Last created unit)
      • Set WotE_Target = No unit
      • Set WotE_Dummy = No unit
      • Set WotE_Boolean[WotE_Index[1]] = True


  • Wind of the Elements ACTION
    • Events
      • Time - Every 0.03 seconds of game time
    • Conditions
    • Actions
      • For each (Integer WotE_Index[2]) from 1 to WotE_Index[1], do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • WotE_Boolean[WotE_Index[2]] Equal to True
            • Then - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • WotE_Time[WotE_Index[2]] Less than WotE_Duration
                • Then - Actions
                  • Unit Group - Pick every unit in (Units within 400.00 of WotE_Point[WotE_Index[2]] matching (((((Matching unit) is A structure) Equal to False) and (((Matching unit) is Magic Immune) Equal to False)) and ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of and do (Actions)
                    • Loop - Actions
                      • Unit - Cause WotE_Caster[WotE_Index[2]] to damage (Picked unit), dealing WotE_Damage[WotE_Index[2]] damage of attack type Spells and damage type Normal
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • WotE_Interval[WotE_Index[2]] Less than 1.00
                    • Then - Actions
                      • Set WotE_Interval[WotE_Index[2]] = (WotE_Interval[WotE_Index[2]] + 0.03)
                    • Else - Actions
                      • Set WotE_Target = (Random unit from (Units within 400.00 of WotE_Point[WotE_Index[2]] matching (((((Matching unit) is A structure) Equal to False) and (((Matching unit) is Magic Immune) Equal to False)) and ((((Matching unit) is alive) Equal to True) and (((Matching unit) belo
                      • Unit - Create 1 Wind of the Elements [Dummy] for (Owner of WotE_Caster[WotE_Index[2]]) at WotE_Point[WotE_Index[2]] facing Default building facing degrees
                      • Set WotE_Dummy = (Last created unit)
                      • For each (Integer A) from 0 to 3, do (Actions)
                        • Loop - Actions
                          • Unit - Set level of WotE_CastingAbility[(Integer A)] for WotE_Dummy to WotE_Level[WotE_Index[2]]
                      • Set WotE_WhatAbility = (Random integer number between 0 and 3)
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • WotE_Target Not equal to No unit
                        • Then - Actions
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • If - Conditions
                              • WotE_WhatAbility Equal to 0
                            • Then - Actions
                              • Unit - Order WotE_Dummy to Human Mountain King - Storm Bolt WotE_Target
                              • Floating Text - Create floating text that reads |c00b68d50Earth!|r at (Position of WotE_Target) with Z offset 0.00, using font size 12.00, color (100.00%, 100.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 2.30 seconds
                            • Else - Actions
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • If - Conditions
                              • WotE_WhatAbility Equal to 1
                            • Then - Actions
                              • Unit - Order WotE_Dummy to Night Elf Warden - Shadow Strike WotE_Target
                              • Floating Text - Create floating text that reads |c00ff8080Fire!|r at (Position of WotE_Target) with Z offset 0.00, using font size 12.00, color (100.00%, 100.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 2.30 seconds
                            • Else - Actions
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • If - Conditions
                              • WotE_WhatAbility Equal to 2
                            • Then - Actions
                              • Unit - Order WotE_Dummy to Undead Lich - Frost Nova WotE_Target
                              • Floating Text - Create floating text that reads |c0080ffffIce!|r at (Position of WotE_Target) with Z offset 0.00, using font size 12.00, color (100.00%, 100.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 2.30 seconds
                            • Else - Actions
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • If - Conditions
                              • WotE_WhatAbility Equal to 3
                            • Then - Actions
                              • Unit - Order WotE_Dummy to Human Sorceress - Slow WotE_Target
                              • Floating Text - Create floating text that reads |c00cbcbe4Wind!|r at (Position of WotE_Target) with Z offset 0.00, using font size 12.00, color (100.00%, 100.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 2.30 seconds
                            • Else - Actions
                        • Else - Actions
                      • Set WotE_Interval[WotE_Index[2]] = 0.00
                  • Set WotE_Time[WotE_Index[2]] = (WotE_Time[WotE_Index[2]] + 0.03)
                • Else - Actions
                  • Special Effect - Destroy WotE_SpecialEffect[WotE_Index[2]]
                  • Unit - Kill WotE_Visibility[WotE_Index[2]]
                  • Custom script: set bj_wantDestroyGroup = true
                  • Set WotE_Boolean[WotE_Index[2]] = False
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • WotE_Boolean[WotE_Index[2]] Equal to False
                    • Then - Actions
                      • Set WotE_Index[0] = (WotE_Index[0] - 1)
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • WotE_Index[0] Equal to 0
                        • Then - Actions
                          • Set WotE_Index[1] = 0
                          • Trigger - Turn off (This trigger)
                        • Else - Actions
                    • Else - Actions
            • Else - Actions




  • Thunder Generator ACTION
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Thunder Generator
    • Actions
      • Set TG_Caster = (Triggering unit)
      • Set TG_Target = (Random unit from (Units within 800.00 of (Position of TG_Caster) matching (((((Matching unit) is A structure) Equal to False) and (((Matching unit) is Magic Immune) Equal to False)) and ((((Matching unit) is alive) Equal to True) and (((Matching unit) belong
      • Unit - Create 1 Thunder Generator [Dummy] for (Owner of TG_Caster) at (Position of TG_Caster) facing Default building facing degrees
      • Set TG_Dummy = (Last created unit)
      • Unit - Order TG_Dummy to Orc Far Seer - Chain Lightning TG_Target
      • Unit - Add a 0.50 second Generic expiration timer to TG_Dummy




  • Elemental Strike INIT
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Hashtable - Create a hashtable
      • Set ES_HashTable = (Last created hashtable)


  • Elemental Strike DETECT
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • (Level of Elemental Strike for (Attacking unit)) Greater than 0
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (((Attacked unit) is A structure) Equal to False) and (((Attacked unit) belongs to an enemy of (Owner of (Attacking unit))) Equal to True)
        • Then - Actions
          • Set ES_Attacking = (Attacking unit)
          • Set ES_Attacked = (Attacked unit)
          • Set ES_Percentage = (0.07 x (Real((Level of Elemental Strike for ES_Attacking))))
          • Trigger - Add to Elemental Strike ACTION <gen> the event (Unit - ES_Attacked Takes damage)
        • Else - Actions


  • Elemental Strike ACTION
    • Events
    • Conditions
    • Actions
      • Hashtable - Save (Damage taken) as 0 of (Key (Triggering unit)) in ES_HashTable
      • Set ES_Regenerated = ((Load 0 of (Key (Triggering unit)) from ES_HashTable) x ES_Percentage)
      • Unit - Set mana of ES_Attacking to ((Mana of ES_Attacking) + ES_Regenerated)
      • Special Effect - Create a special effect attached to the overhead of ES_Attacking using Abilities\Spells\Other\CrushingWave\CrushingWaveDamage.mdl
      • Set ES_SpecialEffect = (Last created special effect)
      • Special Effect - Destroy ES_SpecialEffect
      • Set ES_Attacked = No unit
      • Set ES_Attacking = No unit




  • Hell Elemental INIT
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Player - Disable Hell Elemental [Spell Book] for Player 1 (Red)
      • Set HE_Ability[0] = Hell Elemental [Armor]
      • Set HE_Ability[1] = Hell Elemental [Attack Speed]
      • Set HE_Ability[2] = Hell Elemental [Damage]
      • Set HE_Ability[3] = Hell Elemental [Life]


  • Hell Elemental DETECT
    • Events
      • Unit - A unit Spawns a summoned unit
    • Conditions
      • (Unit-type of (Summoned unit)) Equal to Hell Elemental
    • Actions
      • Set HE_Caster = (Summoning unit)
      • Set HE_HellInfernal = (Summoned unit)
      • For each (Integer A) from 0 to 3, do (Actions)
        • Loop - Actions
          • Unit - Set level of HE_Ability[(Integer A)] for HE_HellInfernal to (Level of Hell Elemental for HE_Caster)


  • Hell Elemental Wind
    • Events
      • Unit - A unit Is attacked
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of (Attacking unit)) Equal to Hell Elemental
          • (Random integer number between 1 and 100) Greater than 85
        • Then - Actions
          • Unit - Create 1 Wind of the Elements [Dummy] for (Owner of (Attacking unit)) at (Position of (Attacking unit)) facing Default building facing degrees
          • Unit - Order (Last created unit) to Human Sorceress - Slow (Attacked unit)
          • Floating Text - Create floating text that reads |c00cbcbe4Wind!|r at (Position of (Attacked unit)) with Z offset 0.00, using font size 12.00, color (100.00%, 100.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 2.30 seconds
        • Else - Actions


  • Hell Elemental Ice
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • (Unit-type of (Attacking unit)) Equal to Hell Elemental
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of (Attacking unit)) Equal to Hell Elemental
          • (Random integer number between 1 and 100) Greater than 85
        • Then - Actions
          • Unit - Create 1 Wind of the Elements [Dummy] for (Owner of (Attacking unit)) at (Position of (Attacking unit)) facing Default building facing degrees
          • Unit - Order (Last created unit) to Undead Lich - Frost Nova (Attacked unit)
          • Floating Text - Create floating text that reads |c0080ffffIce!|r at (Position of (Attacked unit)) with Z offset 0.00, using font size 12.00, color (100.00%, 100.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 2.30 seconds
        • Else - Actions


  • Hell Elemental Fire
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • (Unit-type of (Attacking unit)) Equal to Hell Elemental
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of (Attacking unit)) Equal to Hell Elemental
          • (Random integer number between 1 and 100) Greater than 85
        • Then - Actions
          • Unit - Create 1 Wind of the Elements [Dummy] for (Owner of (Attacking unit)) at (Position of (Attacking unit)) facing Default building facing degrees
          • Unit - Order (Last created unit) to Night Elf Warden - Shadow Strike (Attacked unit)
          • Floating Text - Create floating text that reads |c00ff8080Fire!|r at (Position of (Attacked unit)) with Z offset 0.00, using font size 12.00, color (100.00%, 100.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 2.30 seconds
        • Else - Actions


  • Hell Elemental Earth
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • (Unit-type of (Attacking unit)) Equal to Hell Elemental
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of (Attacking unit)) Equal to Hell Elemental
          • (Random integer number between 1 and 100) Greater than 85
        • Then - Actions
          • Unit - Create 1 Wind of the Elements [Dummy] for (Owner of (Attacking unit)) at (Position of (Attacking unit)) facing Default building facing degrees
          • Unit - Order (Last created unit) to Human Mountain King - Storm Bolt (Attacked unit)
          • Floating Text - Create floating text that reads |c00b68d50Earth!|r at (Position of (Attacked unit)) with Z offset 0.00, using font size 12.00, color (100.00%, 100.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 2.30 seconds
        • Else - Actions





Keywords:
elemental, thunder, buffs, dummy, tornado, hurricane, hiveworkshop, nice spell, usable spell, for my map, hell elemental, absorbs mana each attack, pe
Contents

Univerment Spell Pack (Map)

Reviews
12th Dec 2015 IcemanBo: Too long as NeedsFix. Rejected. 07:26, 5th Oct 2011 Bribe: Ask for help making your triggers better in the Triggers & Scripts forum: http://www.hiveworkshop.com/forums/triggers-scripts-269/

Moderator

M

Moderator

12th Dec 2015
IcemanBo: Too long as NeedsFix. Rejected.

07:26, 5th Oct 2011
Bribe: Ask for help making your triggers better in the Triggers & Scripts forum:

http://www.hiveworkshop.com/forums/triggers-scripts-269/
 
Level 10
Joined
Aug 12, 2008
Messages
349
Well, I just simply run through. The indexing system is old I can say. Check for the "Recommended" section under my signature.
In your triggers, you leak (points, special effects, etc.) and misuse the function of "set bj_wantDestroyGroup = true"
You should use "Unit - A unit Starts the effect of an ability" instead of "Unit - A unit Spawns a summoned unit". You just need to change the "Ability being cast - blabla..."
I don't actually get how the hell elemental works.
 
Top