Hello, I'm working on the siren song ability for the http://www.gamesas.com/index.php?/topic/1146996-wip-wasteland-succubus/ trait and perk mod that I am working on and I am trying to create a base effect to use on a perk that only works on those that are hostile to you. I cant for the life of me get it to save. It shows with no errors in Cipsis's Script validator so I thought it would allow me to save, but alas I cant figure out what is wrong. Any help would be greatly appreciated. I will credit you!

Also I'm really new to this scripting thing. Will the functions that I used work for what I am trying to do? It took me a while to come up with this.
scn WSSirenSongBASEScriptref EnemyBegin ScriptEffectStartif {getplayerteammate == 0} && {getfactionrelation Player == 1} scaonactor setplayerteammate 1 set Enemy to selfendifEndBegin ScriptEffectFinishEnemy.setplayerteammate 0if {getplayerteammate == 0} && {getfactionrelation Player == 1} startcombat PlayerendifEnd