Code: Select all
| | Cell A | NPC | -------------------- <-Cell line | me | | | Cell B
It might be better to keep a list of crimes with the player. When the crime is payed off we iterate the list and reset the actors actors.
There is a lot going on when you go to jail. It is a perfect chance to barrow the CPU since the player is serving his term.
EDIT: But we may still need to tip off guards when the player gets close to them. That seems like a function call we need to make every draw. Which seems like overkill and resource intensive.
Any better ideas?
I've made some major progress when it comes to the basic flow of alarm: http://pastebin.com/ap7K40aV
I'm not sure if this is how it should work.
EDIT: The NPC shouts Thief even if he doesn't attack or report your crime. You can test this in vanilla morrowind by going to Foryn Gilnith's Shack, location 6 on this map, http://www.uesp.net/wiki/File:MW_Map_SeydaNeen.jpg. When you get there proceed to steal his things and hear his cries and yelps. You also won't get a bounty. This means his alarm is 0, because iAlarmStealing = 1. This also means you can kill him without receiving a bounty because he won't alarm anyone.