• 💀 Happy Halloween! 💀 It's time to vote for the best terrain! Check out the entries to Hive's HD Terrain Contest #2 - Vampire Folklore.❗️Poll closes on November 14, 2023. 🔗Click here to cast your vote!
  • 🏆 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!
  • 🏆 HD Level Design Contest #1 is OPEN! Contestants must create a maze with at least one entry point, and at least one exit point. The map should be made in HD mode, and should not be openable in SD. Only custom models from Hive's HD model and texture sections are allowed. The only exceptions are DNC models and omnilights. This is mainly a visual and design oriented contest, not technical. The UI and video walkthrough rules are there to give everyone an equal shot at victory by standardizing how viewers see the terrain. 🔗Click here to enter!

Melee/Range Request

Status
Not open for further replies.
Level 1
Joined
Jan 23, 2009
Messages
3
I'm looking for a spell that changes the hero melee to range and range to melee... can someone help me?:confused:
 
Level 22
Joined
Jun 23, 2007
Messages
3,242
morph? u can make two heroes identical to each other, but one of them has melee, the other range. then create a custom morph ability, and make it so your melee hero can morph into your range hero. all exp/items etc will be kept i believe.
 
Level 16
Joined
May 9, 2008
Messages
1,447
Well, u could make it like this:

  • Hero Morph
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Morph
    • Actions
      • Set Point = (Position of (Casting unit))
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of (Triggering unit)) Equal to Melee
        • Then - Actions
          • Unit - Remove (Casting unit) from the game
          • Unit - Create 1 The Range for (Owner of (Triggering unit)) at Point facing (Facing of (Triggering unit)) degrees
          • Hero - Set (Last created unit) experience to (Hero experience of (Triggering unit)), Hide level-up graphics
          • Hero - Modify Strength of (Last created unit): Set to (Strength of (Triggering unit) (Exclude bonuses))
          • Hero - Modify Agility of (Last created unit): Set to (Agility of (Triggering unit) (Exclude bonuses))
          • Hero - Modify Intelligence of (Last created unit): Set to (Intelligence of (Triggering unit) (Exclude bonuses))
          • For each (Integer A) from 1 to 6, do (Actions)
            • Loop - Actions
              • Hero - Give (Item carried by (Triggering unit) in slot (Integer A)) to (Last created unit)
          • Unit - Set life of (Last created unit) to (Percentage life of (Triggering unit))%
          • Unit - Set mana of (Last created unit) to (Percentage mana of (Triggering unit))%
          • Selection - Select (Last created unit) for (Owner of (Triggering unit))
        • Else - Actions
          • Unit - Remove (Casting unit) from the game
          • Unit - Create 1 Melee for (Owner of (Triggering unit)) at WherewolfPoint facing (Facing of (Triggering unit)) degrees
          • Hero - Set (Last created unit) experience to (Hero experience of (Triggering unit)), Hide level-up graphics
          • Hero - Modify Strength of (Last created unit): Set to (Strength of (Triggering unit) (Exclude bonuses))
          • Hero - Modify Agility of (Last created unit): Set to (Agility of (Triggering unit) (Exclude bonuses))
          • Hero - Modify Intelligence of (Last created unit): Set to (Intelligence of (Triggering unit) (Exclude bonuses))
          • For each (Integer A) from 1 to 6, do (Actions)
            • Loop - Actions
              • Hero - Give (Item carried by (Triggering unit) in slot (Integer A)) to (Last created unit)
          • Unit - Set life of (Last created unit) to (Percentage life of (Triggering unit))%
          • Unit - Set mana of (Last created unit) to (Percentage mana of (Triggering unit))%
          • Selection - Select (Last created unit) for (Owner of (Triggering unit))
      • Custom script: call RemoveLocation (udg_Point)
 
Status
Not open for further replies.
Top