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