» Fri Aug 21, 2009 4:48 am
I can't think of any way to properly alarm them through a script, unfortunately. I'm not very experienced with the commands but I don't see any way of doing it. All I can think of is forcing an item of their property to be taken by the player, but I don't think that's possible.
You might have to instead simulate the effect, such as using the Say command to make them yell, lower disposition, raise bounty as Nicholiathan described, then check GetFight and conditionally decide whether to call StartCombat, or whatever effect you're after.
I was curious and tried raising my crime level in the console, while standing in front of an NPC, but it didn't alarm them. They do of course react to the crime level when you speak to them, but won't really be in the alarmed state.
To control dialogue with it, maybe the dialogue can test for some variable which you set in the "simulated alarm" script. I don't know if dialogue can test for arbitrary variables or not.