I'd recomend that you use Lua object for this... When a trigger is set, add that trigger to an array... On a unit dies evetn that could look like this (lines beginning with -- are comments)
Then when a unit dies, send a function call with its id as an argument
--To add a unit
TriggerArray_UnitDies[id] = true
--To remove a value
TriggerArray_UnitDies[id] = nil
the function would look like this...
This is only really basic but hopefully it will give you some ideas...
If (TriggerArray_UnitDies[ID] ~= nil) then
--Do your action here...
If this sounds interesting feel free to contact me via msn if you need more help...