• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Special effect training

Status
Not open for further replies.
Level 6
Joined
Aug 5, 2015
Messages
202
i want turn this trigger into MUI pls
current trigger only apply to 1 unit only (not to multiple same unit)

  • Bats
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to |cffff8800Necrotic Claw|r
      • (Unit-type of (Triggering unit)) Equal to Necromancer
    • Actions
      • Unit Group - Add (Triggering unit) to BATGROUP
      • Special Effect - Create a special effect attached to the weapon of (Hero manipulating item) using war3mapImported\BatsOnly.mdx
      • Set BAT1 = (Last created special effect)
      • Special Effect - Create a special effect attached to the hand left ref of (Hero manipulating item) using war3mapImported\BatsOnly.mdx
      • Set BAT2 = (Last created special effect)
      • -------- Origen --------
      • -------- Pecho --------
      • Trigger - Add to Bats del <gen> the event (Unit - A unit Loses an item)
  • Bats del
    • Events
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to |cffff8800Necrotic Claw|r
    • Actions
      • Special Effect - Destroy BAT1
      • Special Effect - Destroy BAT2
      • Unit Group - Remove (Triggering unit) from BATGROUP
 
Dont create the event for the second trigger inside the first trigger.
You will leak trigger events.

Just make a generic event like in the first one but then when a unit loses an item.
Except for that... try to download a unit indexer (you can use the one by Bribe) and store the DATs in two special effect arrays under the index of the custom value of the unit.
 

Attachments

Status
Not open for further replies.
Back
Top