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

[Trigger] Problems with Replace Function

Status
Not open for further replies.
Im using the Unit - Replace in my map when the hero uses an item.
  • Events
  • Unit - A unit uses an item
  • Conditions
  • Actions
  • If/Then/Else Multiple Actions
  • Conditions
  • (Item of ((Hero Manipulating Item)) of Uzi)) equal to Uzi
  • Then
  • Unit - Replace (Hero Manipulating Item) with Human w/ Uzi with old unit's relative
  • Else
  • Do Nothing
But when i have the same item, along with a potion, when I use the potion it uses it and morphs the hero again into the Human w/ Uzi. Goes the same for my Revolver, Pistol, Shotgun, Sniper, M4A1 triggers. How can I stop this?
 
Level 29
Joined
Jul 29, 2007
Messages
5,174
  • Unknown
    • Events
      • Unit - A unit Uses an item
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Item-type of (Item being manipulated)) Equal to Uzi
        • Then - Actions
          • Unit - Replace (Triggering unit) with a Human w/ Uzi using The old unit's relative life and mana
        • Else - Actions
 
Status
Not open for further replies.
Top