Changes to the Global Environment

print(...)

print() has been overriden to act similarly to the normal Lua print, but redirect its output to the client chat window via BWAPI.print().

It will take all arguments, call tostring on them, concatenate them together using \t as the separator, append a newline to the end of the string, and then pass that to BWAPI.print().

package.path

The directory of the loaded LuaAIModule .dll gets appended to the front of package.path (using both the /?.lua and /?/init.lua variants).

package.cpath

The directory of the loaded LuaAIModule .dll gets appended to the front of package.cpath (using the /?.dll variant)

BWAPI

See BWAPI