function round(x)
y=0;
while y<=x
if y+1>x then
return y;
y=y+1;
end;
end;
This should be inserted into MapScript.lua.
For the wandering knight set to work properly, use similar code:
function ceil(x)
y=-1;
while y<x
if y+1>=x then
return y+1;
y=y+1;
end;
end;
In Botan-Matan.(Script).lua.
It should work on version 3.0, but I haven't checked.