SouthSaturnDelta 1 Posted July 21, 2007 Hi folks, Came up a bit stumped with what I thought would be straightforward. I define the combat mode of a unit to see if its idle,and then the rest of the script carries on.Problem is that I set a continual loop to detect whenever the units combat mode alters.Then need to 'goto' another point in the script or run a new one seperatly. <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">? ! behaviour _man == "careless": goto "Change" ? ! behaviour _man == "safe": goto "Change" ? behaviour _man == "careless": goto "Idle" ? behaviour _man == "safe": goto "Idle" The above brings up some error regarding the ?! probably because there are 2 variables I'm defining. Would using the correct syntax of - IF OR and THEN be a suitable remedy? I couldnt find a combination that works without errors. Also I tried this~ <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">? behaviour _man == "careless": goto "Idle" ? behaviour _man == "safe": goto "Idle" goto "Change" But that halted everything. I had a look around but couldnt find anything similar to investigate. Cheers, SSD Share this post Link to post Share on other sites