Request: Tweak trigger so its not only when a unit drops "Meat" but
also when its created at position of the forest animals.
This is the trigger i'm using to remove the item "Meat" from the game
after its been on the ground for 30 seconds.
If someone could tell me how to change this to not be when a unit
drops the item "Meat" but also when a neutral passive animal in
my forest is killed because that's when the meat is created. Right
now the trigger is set only when the item is dropped.
also when its created at position of the forest animals.
This is the trigger i'm using to remove the item "Meat" from the game
after its been on the ground for 30 seconds.
If someone could tell me how to change this to not be when a unit
drops the item "Meat" but also when a neutral passive animal in
my forest is killed because that's when the meat is created. Right
now the trigger is set only when the item is dropped.
-
Melee Initialization
-
Events
-
Map initialization
-
-
Conditions
-
Actions
-
Hashtable - Create a hashtable
-
Set Hashtable = (Last created hashtable)
-
-
-
Way 1
-
Events
-
Unit - A unit Loses an item
-
-
Conditions
-
Actions
-
Set Point = (Position of (Item being manipulated))
-
Unit - Create 1 Dummy for Neutral Passive at Point facing Default building facing degrees
-
Unit - Add a 30.00 second Generic expiration timer to (Last created unit)
-
Hashtable - Save Handle Of(Item being manipulated) as (Key item) of (Key (Last created unit)) in Hashtable
-
Hashtable - Save Handle Of(Last created unit) as (Key unit) of (Key (Item being manipulated)) in Hashtable
-
Custom script: call RemoveLocation (udg_Point)
-
-
-
Way 1b
-
Events
-
Unit - A unit Dies
-
-
Conditions
-
(Unit-type of (Triggering unit)) Equal to Light
-
((Key item) is stored as a Handle of (Key (Triggering unit)) in Hashtable) Equal to True
-
-
Actions
-
Hashtable - Clear all child hashtables of child (Key (Load (Key item) of (Key (Triggering unit)) in Hashtable)) in Hashtable
-
Item - Remove (Load (Key item) of (Key (Triggering unit)) in Hashtable)
-
Hashtable - Clear all child hashtables of child (Key (Triggering unit)) in Hashtable
-
-