• 🏆 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 for Item Crafting

Status
Not open for further replies.
Level 9
Joined
Sep 15, 2012
Messages
311
Hello,

I have this trigger right here to craft an item:

  • Craft Attuned Staff
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Forge Attuned Staff
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • And - All (Conditions) are true
            • Conditions
              • (Hero has an item of type Steel Staff) Equal to True
              • MaterialTrollMojo Greater than or equal to 15
              • MaterialKoboldEye Greater than or equal to 15
        • Then - Actions
          • Special Effect - Create a special effect attached to the origin of Hero using Abilities\Spells\Orc\AncestralSpirit\AncestralSpiritCaster.mdl
          • Special Effect - Create a special effect attached to the origin of Hero using Abilities\Spells\NightElf\Blink\BlinkTarget.mdl
          • Item - Remove (Item carried by Hero of type Steel Staff)
          • Set MaterialTrollMojo = (MaterialTrollMojo - 15)
          • Set MaterialKoboldEye = (MaterialKoboldEye - 15)
          • Item - Create |cff0099ffAttuned Staff|r at (Position of Hero)
          • Hero - Give (Last created item) to Hero
        • Else - Actions
          • Game - Display to Player Group - Player 1 (Red) the text: You lack the requir...
For some reason the trigger is not working.

The ability that needs to be clicked is based on 'Charge Gold and Lumber' on a "Forge" unit (with shared shop etc.) which actually has all the other similar abilities needed for the other crafts. Does the fact that they are based on the same ability interferes with the trigger?
 
Status
Not open for further replies.
Top