• 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.
  • Vote for the theme of Hive's HD Modeling Contest #7! Click here to vote! - Please only vote if you plan on participating❗️

[Trigger] Itens

Status
Not open for further replies.
Level 8
Joined
Aug 4, 2008
Messages
279
I have a problem,
  • Frostmourne
    • Events
      • Unit - A unit Acquires 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 Frostmourne
        • Then - Actions
          • Special Effect - Create a special effect attached to the right hand of (Triggering unit) using war3mapImported\WrathFrostmourneV3.mdx
          • Set FrostMourne = (Last created special effect)
        • Else - Actions
  • Loses
    • Events
      • Unit - A unit Loses an item
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Item-type of (Last dropped item)) Equal to Frostmourne
        • Then - Actions
          • Special Effect - Destroy FrostMourne
        • Else - Actions
Why this doesnt work?The effect appears, but dont get removed.And I want to be MUI.
 
Last edited:
Level 37
Joined
Mar 6, 2006
Messages
9,243
  • Untitled Trigger 006
    • Events
      • Unit - A unit Acquires 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 Claws of Attack +15
        • Then - Actions
          • Special Effect - Create a special effect attached to the right hand of (Hero manipulating item) using Objects\InventoryItems\BattleStandard\BattleStandard.mdl
          • Set specialEffect = (Last created special effect)
        • Else - Actions
          • Do nothing
  • Untitled Trigger 007
    • Events
      • Unit - A unit Loses 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 Claws of Attack +15
        • Then - Actions
          • Special Effect - Destroy specialEffect
        • Else - Actions
          • Do nothing
This works for me. However this is not multi-instanceable.
 
Level 12
Joined
Dec 10, 2008
Messages
850
This can be done without triggers. Make a dummy ability based off Sphere and delete the crap about Spirte one Spirite two bla bla and change it to 2 strings. One is "Hand" and the 2nd one is whatever side you want your unit to hold it. Then change the Target Art to your wanted effect and change the part about projectiles to none. Name it what you like, then take an item that adds something to the hero as long as they have it (like a Ring of Defense). At the very top, there should be a part about ability's. Change that to have your dummy shpere ability.
 
Status
Not open for further replies.
Top