• 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.

Item Respawn - How?

Status
Not open for further replies.
Level 9
Joined
Sep 15, 2012
Messages
311
I want to make some plants (items) that are scattered around the map to respawn, let's say 1 minute, after the player has picked them.
I tried using Triggers from a Tutorial for Creep Respawn, putting Items instead of Units.
It didn't work.

Anyone can help?
 
Level 9
Joined
Sep 15, 2012
Messages
311
This is what Triggers I used.

1.png


2-1.png
 
Level 9
Joined
Sep 15, 2012
Messages
311
The triggers I posted above worked fine. You picked the flower with your hero and after specific time the flower re-appeared. BUT if you dropped that flower in the ground and picked it up again, a new flower would spawn at the same spot with the one you picked it first effectively duplicating the item. So I added the 2nd trigger to prevent this.

Note: at the time I posted the topic the flowers were under a trigger that made them stack at the hero's inventory. This prevented them to re-appear after you picked one while having one of that type in your inventory again.
 
Level 9
Joined
Sep 15, 2012
Messages
311
I have some herbs scattered on my map. (These herbs are items that the Player can find and pick to use on crafting items)
Everytime the Player picks one with the Hero from the ground after 10 seconds a herb of the same type will appear on the spot it was picked.

I managed to do this with the triggers above but this only works for single items.
So, I was wondering if anyone could apply this to items that stack.
 
Status
Not open for further replies.
Top