• 🏆 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!
  • ✅ The POLL for Hive's Texturing Contest #33 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!

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