• 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] Inventory System.. Whats wrong with this?

Status
Not open for further replies.
Level 20
Joined
Jan 6, 2008
Messages
2,627
  • Events
    • A unit Aquires an item.
  • Conditions
  • Actions
    • If then Else
      • If
        • (Item-type of (Item carried by PLAYER_CONTROLLER of type Item_Bows[(Integer A)])) Equal to Item_Bows[(Integer A)]
      • Then
        • Animation - Play (Triggering unit)'s death animation
      • Else
    • If then Else
      • If
        • (Item-type of (Item carried by PLAYER_CONTROLLER of type Item_TwoHands[(Integer A)])) Equal to Item_TwoHands[(Integer A)]
      • Then
        • Animation - Play (Triggering unit)'s attack animation
      • Else
The Animations should be another action but, the problem is that he do both of it when he aquires an item.

It happens even if he gets another Item.. I want the item that he aquires should make an action.
 
Status
Not open for further replies.
Top