For reasons I do not understand, the following piece of code crashes Oblivion. It's very similar to other code that I have written, and I can't find any documentation that would explain why. It's not a big deal if this code is included or not as it is a bell & whistle feature, but if anyone could shed some light on this, it would be much appreciated.
; target is talking modifier if tActor != PlayerRef if tActor.isTalking == 1 let vSoundBonus := vSoundBonus + SDRIniQ.vTalkPenalty endif endif
note that all variables are accounted for and the script compiles with no errors or warnings with this code in it using CSE.