• 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.
  • Vote for the theme of Hive's HD Modeling Contest #7! Click here to vote! - Please only vote if you plan on participating❗️

Removing Powerups

Status
Not open for further replies.
Level 14
Joined
Oct 16, 2010
Messages
740
Hi,

I've been trying to make Powerup items become removed from the game after pick-up, because my seller unit can sell items in a group and obviously Powerups aren't removed from the game, so they get picked up again... and again... and again... etc.

I made the simple trigger below but it doesn't seem to work at all. Any thoughts?

  • Remove Powerups
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • (Item-class of (Item being manipulated)) Equal to Powerup
    • Actions
      • Wait 0.01 seconds
      • Item - Remove (Item being manipulated)
 
Level 12
Joined
May 22, 2015
Messages
1,051
What do you mean they do not get removed from the game? They should still be dead so that you can't pick them up again. They do leak, so if you have tons and tons of these powerups, you should try to remove them like your trigger seems to be trying to do, but your description makes it sound like a different problem.

Maybe you forgot to put "Perishable - true" and "Charges - 1". I don't know what happens if you don't set those as well.

If you are trying to clean up the invisible items...
Have you tried without the wait?
 
Level 14
Joined
Oct 16, 2010
Messages
740
No I mean when you pick an item like a Tome it doesn't actually get removed from the game. So triggers and such will still detect it.

My trigger is just meant to remove the Powerup once it gets picked up so other triggers don't re-use the Powerups
 
Status
Not open for further replies.
Top