Donut Team is a labor of love, built and maintained by a small group of passionate developers. We invest our own time and resources to offer our tools, mods, and web services completely free of charge.

We don't run ads, and we will never sell your data - period.

If you've enjoyed anything we've created, please consider supporting our work with a one-time or monthly donation via our Ko-fi page . Every contribution helps us continue building great experiences for the community.

Dismiss
Icon image for Game.lua

Game.lua

ID 331
Published
Downloaded 155 times
  • Added sanity checks:
    • Checks if the provided argument count is within the command's min/max arguments.
    • Checks if the required hack is loaded if non-vanilla command.
    • Checks if the command is within the required scope (I.E. AddStage within SelectMission, AddCondition within AddStage, etc).
    • Checks if there are scopes left open from the previous file when starting a new file.
    • Checks if the command has been ran more than the game limits.
      • This additionally checks for your mod's CustomLimits.ini to update the limits.
  • Updated how conditionals are supported:
    • Game.Not() still exists to just output !, but now conditional commands also get a Not_ version added. Example:
-- OLD VERSION
Game.Not()
Game.IfCurrentCheckpoint()
    -- Stuff
Game.EndIf()

-- NEW VERSION
Game.Not_IfCurrentCheckpoint()
    -- Stuff
Game.EndIf()