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
 
Level 24
Joined
Aug 1, 2013
Messages
4,658
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.
 
Level 10
Joined
Apr 4, 2010
Messages
509

Attachments

  • Item Effects.w3x
    16 KB · Views: 47
Status
Not open for further replies.
Top