• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[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
 
Level 13
Joined
Sep 14, 2008
Messages
1,407
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.
Top