restored write-trigtext
fixed ability to edit negative unit id