HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

unit/item removal

02-20-2006, 04:53 AM#1
Linera
Each time a monster dies in my rpg I will have it drop an item called loot.
I want it to set a timer to each loot unit when its created so after 1 minute the unit is removed.

I tried using
Trigger:
Unit - Add a 60.00 second Generic expiration timer to tempunit

and problem is sometimes it will drop the items that the loot unit was carrying. even though in unit editor both the ability for the inventory that unit is using and the unit itself have Drop items on death set to false.

How can i add a 1 minute timer to each loot unit as its created and have to remove the loot unit and any items it may drop when timer ends?

Also I would like a way to remove any items laying on the ground right away. but still allow the player to give an item from one hero to another by dropping the item onto the hero.
02-21-2006, 03:52 AM#2
Naakaloh
Try giving it the Hero Inventory ability. I'm not sure about it, but it might allow it to hold the items after dying.

As for the items dissappearing when dropped on the ground, my guess it would be something like this. Although, I can't see why you might want to make it so that you can't drop items on the ground, but still have the items transferrable between heroes.

Trigger:
ItemRemoval
Collapse Events
Unit - A unit Loses an item
Collapse Conditions
((Item being manipulated) is Owned) Equal to False
Collapse Actions
Item - Remove (Item being manipulated)