getMaxRAM

getMaxRAM() → integer ram

Returns the maximum RAM your AI can use, in bytes. RAM is used up by creating lists, maps and objects; the AI's compiled code also takes a share (see getUsedRAM).

In a fight, the limit depends on your entity's RAM: 16 MB (16,000,000 bytes, i.e. 2,000,000 values) per RAM point, 50 points at most, the same in every language. Beyond it, the AI stops with a memory error. Outside a fight, it is 100 MB.

Return