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

[Solved] Follow Up Help Needed For Trigger

Level 8
Joined
Jul 21, 2015
Messages
143
  • Tame a Panther
    • Events
      • Unit - A unit Loses an item
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Night Elf Runner
      • Or - Any (Conditions) are true
        • Conditions
          • (Item-type of (Item being manipulated)) Equal to Deer Meat
          • (Item-type of (Item being manipulated)) Equal to Frog Meat
          • (Item-type of (Item being manipulated)) Equal to Rabbit Meat
          • (Item-type of (Item being manipulated)) Equal to Raccoon Meat
    • Actions
      • Custom script: local unit udg_TamePanther
      • Set VariableSet MeatPosition = (Position of (Item being manipulated))
      • Set VariableSet GroupPanther = (Units within 600.00 of MeatPosition matching (((Unit-type of (Matching unit)) Equal to Panther) and ((((Matching unit) is alive) Equal to True) and ((Owner of (Matching unit)) Equal to Neutral Passive))).)
      • Set VariableSet TamePanther = (Random unit from GroupPanther)
      • Custom script: call RemoveLocation( udg_MeatPosition )
      • Custom script: call DestroyGroup( udg_GroupPanther )
      • Wait 4.00 seconds
      • Unit - Order TamePanther to Right-Click (Item being manipulated)
      • Wait 4.00 seconds
      • Unit - Change ownership of TamePanther to (Owner of (Triggering unit)) and Change color
      • Custom script: set udg_TamePanther = null

Hi all so various people have contributed for me to craft this trigger, such as Uncle, Chaosium, and Pyrogasm in the thread:

[Solved] - Global Unit Event for Specific Type Help

but the issue I am experiencing now is that the Panther units only seem to pick up items that are Frog Meat. They never pick up for Deer Meat, Rabbit Meat, and Raccoon Meat. Would anyone know why this is happening? Thanks in advance!!
 
Last edited:
Level 8
Joined
Jul 21, 2015
Messages
143
Are the meat items 100% identical except for their names (and icons)? Copy frog meat item to make a new item, change relevant things, test. I don't see anything here that should cause this behavior, so the items must have some fundamental difference in some way.
Thank you bro, I did exactly what you suggested and just copied the frog item text and morphed them into the other versions and it worked. Thank you!
 
Top