• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[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