-------------------------------- -- Generic test script -------------------------------- -- So, Vatten. The issue is that you were (probably) calling ParseCommand in onNewTurn -- Unfortunately, actions cannot be issue there since it is after "nextturn" is invoked, but before the end of the tick -- this is something the engine does not like... -- The following is a workaround. Ideally, the engine would invoke onNewTurn before 'nextturn' is called, but I believe it is a bit messy to do so. -- For anyone looking at this, this issue was prevented in the engine. local parseMe = -1 function onNewTurn() parseMe = GameTime end function onGameTick20() if parseMe ~= -1 then if GameTime > parseMe then ParseCommand("setweap " .. string.char(amSkip)) parseMe = -1 end end end