• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Item Expire

Status
Not open for further replies.
Level 8
Joined
Nov 6, 2019
Messages
230
Is it possible to set a expire time on specific floor loot and if no one picks it up after 60 seconds it despawns?
 
I did a quick test and this works, you could use it as a base and refine it a little

  • Item Cleanup
    • Events
      • Unit - A unit Loses an item
    • Conditions
    • Actions
      • Wait 60.00 seconds
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Item being manipulated) is in (Playable map area)) Equal to True
        • Then - Actions
          • Item - Remove (Item being manipulated)
        • Else - Actions
Fortunately (item being manipulated) is MUI so people could drop several items in a row and they would be treated individually

Of course if someone drops something and picks it back up after 59 seconds, it would reset the timer, see if that's bothering you
 
It is multiple typed of item, kill a boss 2 random items spawn can be power up, artefact, charged what not can be any 2
like Diablo?I have also done such a trigger, by dropping some bad or good equipment, bringing luck and excitement to the game.
 
like Diablo?I have also done such a trigger, by dropping some bad or good equipment, bringing luck and excitement to the game.
Not Really, all the loot is usable but if u already got that item u not gonna pick it up and in end is alot of loot on floor

however i cant do a floor loot wipe as it would remove the resource required on floor from the floor

i did want to add a diablo style system to the game thought be fun, however i use equipment system and the diablo type loot system doesnt make them equip able items only ones u hold in inv, Basically doesnt work with equipment system sadly.
 
Last edited:
If you're spawning the items with triggers then you can keep track of them yourself for the timeout. It's possible to use a high-frequency periodic timer to search the map for all existing items and then begin a 60s countdown for anything 'new' since the last search; it would require keeping track of the items somehow and since there aren't item groups (please nobody mention itempools here it's not relevant) that means Hashtables. A bit of work but honestly not too much.
 
Status
Not open for further replies.
Back
Top