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

DBFreezingPrison

This bundle is marked as useful / simple. Simplicity is bliss, low effort and/or may contain minor bugs.
Creates big freezing prison of ice around the target for 3 seconds, dealing 3 x hero level as damage every half-second with frost slowing for movement only by 25% for 10 seconds as 20 strikes. After that, the target also will be freezed for 3 seconds then get free.
  • Freezing Prison cast
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Freezing Prison
    • Actions
      • Set FreezingPrison_Caster = (Triggering unit)
      • Set FreezingPrison_DmgPerSecond = (5.00 x (Real((Hero level of FreezingPrison_Caster))))
      • Set FreezingPrison_Player = (Owner of (Triggering unit))
      • Set FreezingPrison_Target = (Target unit of ability being cast)
      • Set FreezingPrison_TargetPoint = (Position of FreezingPrison_Target)
      • Set FreezingPrison_TrgtDefultPoint = (Position of FreezingPrison_Target)
      • Unit - Create 1 Freezing_Prison_DummyAndCaster for FreezingPrison_Player at FreezingPrison_TargetPoint facing (Facing of FreezingPrison_Target) degrees
      • Set FreezingPrison_DummyCasterUnit = (Last created unit)
      • Unit - Add a 3.00 second Water Elemental expiration timer to FreezingPrison_DummyCasterUnit
      • For each (Integer A) from 1 to 12, do (Actions)
        • Loop - Actions
          • Set FreezingPrison_IcingPoint = (FreezingPrison_TargetPoint offset by 125.00 towards ((Facing of FreezingPrison_DummyCasterUnit) + 30.00) degrees)
          • Unit - Create 1 Freezing_Prison_DummyAndCaster for FreezingPrison_Player at FreezingPrison_TargetPoint facing FreezingPrison_IcingPoint
          • Set FreezingPrison_DummyCasterUnit = (Last created unit)
          • Unit - Add a 13.00 second Water Elemental expiration timer to FreezingPrison_CreatedUnit
          • Unit - Create 1 Freezing_Prison_Ice for FreezingPrison_Player at FreezingPrison_IcingPoint facing (Random angle) degrees
          • Set FreezingPrison_CreatedUnit = (Last created unit)
          • Unit - Add a 3.00 second Water Elemental expiration timer to FreezingPrison_CreatedUnit
          • Destructible - Create a Freezing Prison at FreezingPrison_IcingPoint facing (Random angle) with scale 1.00 and variation 0
      • Custom script: call RemoveLocation(udg_FreezingPrison_IcingPoint)
      • Custom script: call RemoveLocation(udg_FreezingPrison_TargetPoint)
      • Set FreezingPrison_LoopNumber = 1.00
      • Floating Text - Create floating text that reads ((String((Integer(FreezingPrison_LoopNumber)))) + Strike) above FreezingPrison_Target with Z offset 50.00, using font size 10.00, color (50.00%, 50.00%, 100.00%), and 0.00% transparency
      • Floating Text - Change (Last created floating text): Disable permanence
      • Floating Text - Change the lifespan of (Last created floating text) to 5.00 seconds
      • Floating Text - Change the fading age of (Last created floating text) to 3.00 seconds
      • Floating Text - Set the velocity of (Last created floating text) to 125.00 towards 90.00 degrees
      • Set FreezingPrison_TargetPoint = (Position of FreezingPrison_Target)
      • Unit - Move FreezingPrison_DummyCasterUnit instantly to FreezingPrison_TargetPoint
      • Unit - Order FreezingPrison_DummyCasterUnit to Undead Lich - Frost Nova FreezingPrison_Target
      • Unit - Cause FreezingPrison_Caster to damage FreezingPrison_Target, dealing FreezingPrison_DmgPerSecond damage of attack type Spells and damage type Cold
      • Wait 0.50 seconds
      • For each (Integer A) from 1 to 19, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (FreezingPrison_Target is alive) Equal to True
            • Then - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (FreezingPrison_Target is dead) Equal to True
                • Then - Actions
                  • Skip remaining actions
                • Else - Actions
              • Set FreezingPrison_TargetPoint = (Position of FreezingPrison_Target)
              • Unit - Move FreezingPrison_DummyCasterUnit instantly to FreezingPrison_TargetPoint
              • Unit - Order FreezingPrison_DummyCasterUnit to Undead Lich - Frost Nova FreezingPrison_Target
              • Unit - Cause FreezingPrison_Caster to damage FreezingPrison_Target, dealing FreezingPrison_DmgPerSecond damage of attack type Spells and damage type Cold
              • Set FreezingPrison_LoopNumber = (FreezingPrison_LoopNumber + 1.00)
              • Floating Text - Create floating text that reads ((String((Integer(FreezingPrison_LoopNumber)))) + Strikes) above FreezingPrison_Target with Z offset 50.00, using font size 10.00, color (50.00%, 50.00%, 100.00%), and 0.00% transparency
              • Floating Text - Change (Last created floating text): Disable permanence
              • Floating Text - Change the lifespan of (Last created floating text) to 5.00 seconds
              • Floating Text - Change the fading age of (Last created floating text) to 3.00 seconds
              • Floating Text - Set the velocity of (Last created floating text) to 125.00 towards 90.00 degrees
              • Custom script: call RemoveLocation(udg_FreezingPrison_TargetPoint)
              • Wait 0.50 seconds
            • Else - Actions
              • Do nothing
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (FreezingPrison_Target is dead) Equal to True
        • Then - Actions
          • Skip remaining actions
        • Else - Actions
      • Set FreezingPrison_TargetPoint = (Position of FreezingPrison_Target)
      • Unit - Move FreezingPrison_DummyCasterUnit instantly to FreezingPrison_TargetPoint
      • Unit - Order FreezingPrison_DummyCasterUnit to Human Mountain King - Storm Bolt FreezingPrison_Target
      • Custom script: call RemoveLocation(udg_FreezingPrison_TargetPoint)
      • Floating Text - Create floating text that reads Finished!!! above FreezingPrison_Target with Z offset 50.00, using font size 20.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
      • Floating Text - Change (Last created floating text): Disable permanence
      • Floating Text - Change the lifespan of (Last created floating text) to 5.00 seconds
      • Floating Text - Change the fading age of (Last created floating text) to 3.00 seconds
      • Floating Text - Set the velocity of (Last created floating text) to 50.00 towards 90.00 degrees
  • Freezing Prison end
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Triggering unit) Equal to FreezingPrison_CreatedUnit
    • Actions
      • Set FreezingPrison_TargetPoint = (Position of FreezingPrison_Target)
      • Destructible - Pick every destructible within 200.00 of FreezingPrison_TrgtDefultPoint and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Destructible-type of (Picked destructible)) Equal to Freezing Prison
            • Then - Actions
              • Destructible - Remove (Picked destructible)
            • Else - Actions
      • Custom script: call RemoveLocation (udg_FreezingPrison_TargetPoint)

Keywords:
Freezing Prison, FreezingPrison, Freezing Bite, FreezingBite, Freezing, Prison, Bite, Ice Prison, IcePrison.
Contents

Freezing Prison (Map)

Reviews
12.12 IcemanBo: For long time as NeedsFix. Rejected. 15:52, 1st Jun 2011 Maker: Not MUI due to how waits are used.

Moderator

M

Moderator

12.12
IcemanBo: For long time as NeedsFix. Rejected.

15:52, 1st Jun 2011
Maker: Not MUI due to how waits are used.
 
Level 7
Joined
Apr 12, 2011
Messages
124
Srry to tell you it's not MUI :p
NEVER use Waits.
if you don't know how to make the spell without waits then don't make it.
Learn indexing/and/or hashtables while ur at it.
Set FreezingPrison_Player = (Owner of (Triggering unit)) -> Set FreezingPrison_Player = (Triggering Player)
Bet there's load of stuff that needs changing, cba waste more time on it :)
No obvious leaks atleast :)

Please, if u have an opinion that i don't like, don't post it!!!
But no problem if u found some bugs u want to talk about!!! ok?

Enjoy...

Lol!
 
Top