• 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] What's Wrong?

Status
Not open for further replies.
Level 9
Joined
Feb 15, 2013
Messages
372
  • Power Threads Change Copy
    • Events
      • Unit - A unit Uses an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to Power Threads (Strenght)
    • Actions
      • Item - Remove (Item carried by (Triggering unit) of type Power Threads (Strenght))
      • Item - Create Power Threads (Agility) at (Position of (Triggering unit))
      • Hero - Give (Last created item) to (Triggering unit)
What's wrong about this trigger?why i cant change the item when i clicked it?
 
Level 18
Joined
May 11, 2012
Messages
2,108
This is leakless and working trigger.
And it's spelled "Treads".

  • Power Threads Change
    • Events
      • Unit - A unit Uses an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to Power Treads (Strength)
    • Actions
      • Set TempUnit = (Triggering unit)
      • Item - Remove (Item carried by (TempUnit) of type (Item being manipulated))
      • Hero - Create Power Treads (Agility) and give it to (TempUnit)
      • Custom script: set udg_TempUnit = null
You can use
  • Hero - Create Power Treads (Agility) and give it to (TempUnit)
instead of creating item at point and giving it.
This action will create item and give it to your unit automaticly
 
:wink: Bro... change your STRENGHT in STRENGTH

and

You need one trigger for that items

TRIGGER:

  • Power Threads
    • Events
      • Unit - A unit Uses an item
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Item-type of (Item being manipulated)) Equal to Strength
          • (Item-type of (Item being manipulated)) Equal to Agililty
          • (Item-type of (Item being manipulated)) Equal to Intelligence
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Item-type of (Item being manipulated)) Equal to Strength
        • Then - Actions
          • Item - Remove (Item being manipulated)
          • Hero - Create Agililty and give it to (Hero manipulating item)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Item-type of (Item being manipulated)) Equal to Agililty
            • Then - Actions
              • Item - Remove (Item being manipulated)
              • Hero - Create Intelligence and give it to (Hero manipulating item)
            • Else - Actions
              • Item - Remove (Item being manipulated)
              • Hero - Create Strength and give it to (Hero manipulating item)
 
Status
Not open for further replies.
Top