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

Disarm System v1.0.4

This bundle is marked as useful / simple. Simplicity is bliss, low effort and/or may contain minor bugs.
Disarm System v1.0.4

Disabled enemy unit's attack for a duration

By
ukn0wnD3str0y3r (Hive)
GnE.MaP-Cr3at0r (Garena)

How to Import:
-Copy all the trigger, dummy ability
-Copy all the trigger in the same time by going to Files->Prefences->General->Automatically create unknown variables while pasting trigger data
-Copy all these things into your map and remember give me credits :D Hope you like it!



Configurations:
Disarm_DummyAbility - Dummy Ability of Disarm
Disarm_Duration - Duration of Disarm
Disarm_Caster - Triggering Unit
Disarm_Target - Affected Unit




  • Disarm Configuration
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set Disarm_DummySpell = Cargo Hold (Orc Burrow)
      • Set Disarm_Duration = 0.00
      • Set Disarm_Loop = 0.03
      • Set Disarm_Effect = Abilities\Spells\Other\TalkToMe\TalkToMe.mdl
  • Disarm Normal Att
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • ((Attacking unit) is A Hero) Equal to True
    • Actions
      • -------- Start of the Configuration --------
      • Set Disarm_Caster = (Attacking unit)
      • Set Disarm_Target = (Attacked unit)
      • Set Disarm_Duration = 2.00
      • -------- End of the Configuration --------
      • Trigger - Run Disarm Start <gen> (checking conditions)
  • Disarm Spell
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Frost Nova
    • Actions
      • Set Disarm_Caster = (Triggering unit)
      • Set Disarm_Target = (Target unit of ability being cast)
      • Set Disarm_Duration = 3.00
      • Trigger - Run Disarm Start <gen> (checking conditions)
  • Disarm Start
    • Events
    • Conditions
    • Actions
      • Set DS_X = (DS_X + 1)
      • Set DS_Unit1[DS_X] = Disarm_Caster
      • Set DS_Unit2[DS_X] = Disarm_Target
      • Set DS_Duration[DS_X] = Disarm_Duration
      • Special Effect - Create a special effect attached to the overhead of DS_Unit2[DS_X] using Disarm_Effect
      • Set DS_Effect[DS_X] = (Last created special effect)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Level of Disarm_DummySpell for DS_Unit2[DS_X]) Equal to 0
        • Then - Actions
          • Unit - Add Disarm_DummySpell to DS_Unit2[DS_X]
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • DS_X Equal to 1
        • Then - Actions
          • Trigger - Add to Disarm Timer <gen> the event (Time - Every Disarm_Loop seconds of game time)
        • Else - Actions
  • Disarm Timer
    • Events
    • Conditions
    • Actions
      • For each (Integer DS_Y) from 1 to DS_X, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Level of Disarm_DummySpell for DS_Unit2[DS_X]) Greater than 0
              • DS_Duration[DS_Y] Greater than 0.00
            • Then - Actions
              • Set DS_Duration[DS_Y] = (DS_Duration[DS_Y] - Disarm_Loop)
            • Else - Actions
              • -------- De-indexing the disarm --------
              • Unit - Remove Disarm_DummySpell from DS_Unit2[DS_Y]
              • Special Effect - Destroy DS_Effect[DS_Y]
              • Set DS_Unit1[DS_Y] = DS_Unit1[DS_X]
              • Set DS_Unit2[DS_Y] = DS_Unit2[DS_X]
              • Set DS_Duration[DS_Y] = DS_Duration[DS_X]
              • Set DS_Duration[DS_X] = Disarm_Duration
              • Set DS_Effect[DS_Y] = DS_Effect[DS_X]
              • Set DS_X = (DS_X - 1)
              • Set DS_Y = (DS_Y - 1)
              • -------- Turn off Trigger --------
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • DS_X Equal to 0
                • Then - Actions
                  • Trigger - Turn off (This trigger)
                • Else - Actions




-Added a new trigger to run the disarm
-Now you can add disarm easily



-Fixed minor things of Disarm System
-Testing Dummy now have 100000 hp



-Remove the 'DS_DurationCurrent' Variables
-Loop changed from +.03 to -.03
-Added another hero to show that this system is MUI



-Remove Dummy Caster and Dummy Spell
-Remove dummy buff variable
-Changed disarm spell into Cargo Hold



-Initial Release




-Callahan (Thanks him for telling me adding cargo hold will also disarm)


Gives me credits if you use this :) it doesn't matter which name you give credits :)


Bonus Note

Any wrong to this system please tell me to fix it! :)
Keywords:
Disarm, System, Disabled, Attack, Spell
Contents

Disarm System v1.0.4 (Map)

Reviews
12th Dec 2015 IcemanBo: For long time as NeedsFix. Rejected. IcemanBo: http://www.hiveworkshop.com/forums/spells-569/disarm-system-v1-0-4-a-260483/index4.html#post2638876 15:54, 10th Jan 2015 IcemanBo...
Top