• 🏆 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] Neutral Building - Remove Unit-Type (From Marketplace)

Status
Not open for further replies.
Level 17
Joined
Jun 12, 2007
Messages
1,261
Check a few things:

1) Does the building that you want to remove the buyable unit from have the "sell unit" ability?

2) Did you make sure you selected the proper unit that you want to remove and did u select the proper neutral building you want to remove it from?

  • dhj
    • Events
    • Conditions
    • Actions
      • Neutral Building - Remove Footman from Mercenary Camp (Lordaeron Summer) 0000 <gen>
3) Do you have a event that actualy starts the trigger? To test if the actions get activated add an extra game message so you can see ingame if it starts.

If these are all just fine plese tell us more about your problem.
 
Level 8
Joined
Jul 25, 2006
Messages
177
  • Learns a Spell
    • Events
      • Unit - A unit Sells a unit
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of (Sold unit)) Equal to Arcane Missiles
        • Then - Actions
          • Unit Group - Pick every unit in (Units owned by (Owner of (Sold unit)) matching (((Matching unit) is A Hero) Equal to True)) and do (Actions)
            • Loop - Actions
              • Unit - Add Arcane Missiles to (Picked unit)
          • Neutral Building - Remove Arcane Missiles from (Selling unit)
          • Unit - Remove (Sold unit) from the game
        • Else - Actions
Thats what i have and the Arcane Missiles unit does not get removed from the shop. The shop does have the sell units ability.
 
Level 5
Joined
May 17, 2007
Messages
106
It's because you added Shop's List in Object Editor.
  • Neutral Building - Remove Unit-Type (From Marketplace)
Only work when you use
Neutral Building - Add Unit-Type (to Marketplace).

So what I mean is, you should create a trigger that adding Unit-Type to the Marketplace first.
 
Status
Not open for further replies.
Top