library UnitDeathInRegion001 initializer init
private function main takes nothing returns boolean
local unit u = GetTriggerUnit()
//now run your check here
//if u is in region 001 then:
//your code here
//endif
return false
endfunction
private function init takes nothing returns nothing
local trigger t = CreateTrigger()
call TriggerRegisterPlayerEvent(t, Player(0), EVENT_UNIT_DEATH)
call TriggerAddCondition(t, Condition(function main))
endfunction
endlibrary