game.round_limit

Type: Number

This value indicates the maximum number of rounds. If there is no round limit, then this value will be 0.

This value is read-only.

Example

global.number[0]  = game.round_limit
global.number[0] -= 1
if game.current_round == global.number[0] then
   --
   -- This is the final round!
   --
end

See also