• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

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.
 
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