• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[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