Hi,
I needed a script that would trigger a security guard if the player killed certain types of NPCs, but I also wanted the corpses to stay in the level. I looked at some "die and trigger" scripts, and the leave corpse script.. and appended a line of code. I tested it out a few times and it seems to work. I figured someone else might be looking for a similar "punishment" script. I suppose it could also be used to trigger a ghost NPC of the one you just killed (using a small delay for added effect).
You should change the "Secguard" to the name of the NPC you want to appear
;Artificial Intelligence Script
;Header
desc = Leave corpse and activate "Secguard"
;Triggers
:state=0:state=1,plrsound=$0,settargetname=Secguard
:state=1:state=2,activatetarget=1,suspend,coloff
;End of Script
My goal was to use this as a death script for 6 NPCs, each one triggering a security guard to go after the player, should they decide to kill one. I did have a problem getting more then the first guard to spawn, but as a work around, I wrote the script six times to trigger Secguard1, Secguard2 /etc.