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

[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,240
  • 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