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

Eat Tree is triggering an Item Skill :S

Status
Not open for further replies.
Level 20
Joined
Jul 14, 2011
Messages
3,213
Hi!

When I equip 'Coral Sword' I trigger the possibility of creating a summon that is ordered to attack the target enemy unit.

  • Coral Sword DAMAGE
    • Events
      • Game - GDD_Event becomes Equal to 0.00
    • Conditions
      • (Level of 1 Coral Sword (+20 Damage) for GDD_DamageSource) Equal to 1
    • Actions
      • Trigger - Turn off (This trigger)
      • Set Temp_Point = (Position of GDD_DamageSource)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Random integer number between 1 and 100) Less than or equal to 15
        • Then - Actions
          • Unit - Create 1 Coral Sword Summon (Level 1) for (Owner of GDD_DamageSource) at Temp_Point facing Default building facing degrees
          • Unit - Order (Last created unit) to Attack GDD_DamagedUnit
          • Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
        • Else - Actions
      • Custom script: call RemoveLocation(udg_Temp_Point)
      • Trigger - Turn on (This trigger)
The problem is that, when I use 'Eat Tree' it triggers also, and the summon attacks me :p I don't know how to avoid that :)
 
Level 20
Joined
Jul 14, 2011
Messages
3,213
I think this works, haven' tested though.
  • Conditions
    • (Level of 1 Coral Sword (+20 Damage) for GDD_DamageSource) Equal to 1
    • (Current order of GDD_DamageSource) Not equal to (Order(eattree))
 
Status
Not open for further replies.
Top