• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[Trigger] What is missing in my equip trigger? add to it

Status
Not open for further replies.
Level 8
Joined
Nov 21, 2008
Messages
316
This is the basic layout for all my equip triggers, how do i make it so when the unit replaces, the items in inventory remain intact, and if the item is clickd again its removed.

  • Troll Shadowhunter
    • Events
      • Unit - A unit Uses an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to |cffff8c00Boomerang|r
    • Actions
      • Unit - Replace (Triggering unit) with a Troll Shadow Hunter using The old unit's relative life and mana
write the what new trigger should look like plz
 
Not sure what you mean but:

Keeping items goes like this:

You need an item array with 6 slots:

Event: A unit Uses an item
Condition: Same as yours
Action:
For integer a 1 - 6 do actions
set item[integer a] = item in slot integer a for triggering unit
replace unit
for integer a 1 - 6 do actions
create 1 item of type "item[integer a]" for last created unit (if that works)
 
Status
Not open for further replies.
Back
Top