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

DOTA's Magic wand and Quelling Blade - questions

Status
Not open for further replies.
Level 5
Joined
Nov 29, 2007
Messages
106
1. How to make Blade - Here's description:
+32% bonus attack damage against NON-HERO units if wielder is melee, +12% bonus attack damage against non-hero units if wielder is ranged. Also second one's DAMAGE not stacking so if we got 2 we will only got 32% not 64%.

Tree Chop
Destroys a target tree
Has a 10 second cooldown, and 100 cast range


2.Magic Wand
Gains 1 charge every time an enemy unit casts an ability in a 1600 AoE
Maximum of 15 charges
Certain abilities, such as arrow abilites (Frost Arrow, Poison Attack, etc) and item abilities, will not add a charge


Energy Charge
Restores 15 HP and mana for each charge
 
  • Trigger
  • Events
    • Unit - A unit starts the effect of an ability
  • Conditions
  • Actions
    • Set Point1 = (Position of (Triggering unit))
    • Set TempGroup = (Units within 1600.00 of Point1 matching (((Matching unit) is a Hero) Equal to True) and ((Matching unit) belongs to an enemy of (Owner of (Triggering unit)) Equal to True) and ((Matching unit) has an item of type Magic Wand) Equal to True) and (Charges remaining in (Item carried by (Matching unit) of type Magic wand) Less than 15))
    • Unit Group - Pick every unit in TempGroup and do (Actions)
      • Loop - Actions
        • Item - Set charges remaining in (Item carried by (Picked unit) of type Magic Wand) to ((Charges remaining in (Item carried by (Picked unit) of type Magic Wand)) + 1)
    • Custom script: call RemoveLocation (udg_Point1)
    • Custom script: call DestroyGroup (udg_TempGroup)
  • Trigger
  • Events
    • Unit - A unit uses an item
  • Conditions
    • (Item-type of (Item being manipulated)) Equal to Magic Wand
  • Actions
    • Unit - Set life of (Triggering unit) to ((Life of (Triggering unit) + (15 x (Charges remaining in (Item being manipulated)) + 1))
    • Unit - Set mana of (Triggering unit) to ((Mana of (Triggering unit) + (15 x (Charges remaining in (Item being manipulated)) + 1))
    • Item - Set charges remaining in (Item being manipulated) to 0
 
Pharaoh_ you forget to add condition in first one!
This go below Group
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • (Charges remaining in (Item carried by (Picked unit) of type Magic Wand)) Equal to 15
    • Then - Actions
    • Else - Actions
      • Item - Set charges remaining in (Item carried by (Picked unit) of type Magic Wand) to ((Charges remaining in (Item carried by (Picked unit) of type Magic Wand)) + 1)
 
Status
Not open for further replies.
Top