looking through your log (.rpt) file I found the following error logged. If you check the log file and code it indicates that there is minus sign after true at line 231.
Error in expression <[SAR_marker_castle,3,5,15,"fortify",true] call SAR_AI;
[SAR_marker_other,3,5>
Error position: <]...