I always have the same problem when i actually play a mage or other spellcaster! it is quite irritating! the problem is that it doesn't matter what kind of script i choose!!

he/she always would walk up to the enemy and say hi!(And getting beaten the shit out of her/him :S )
I solved the problem by giving the wizard/mage a sling so it doesn't have the urge to be in close combat.
I think it really helps.