This is a utility mod for Baba Is You that simplifies the process of adding BASED baserules into your levelpack. This is useful if you don't want to lag the game with a lot of text blocks on the screen.
Ideally, this mod should be compatable with other mods since it doesn't override any existing functions from the game.
Just copy the contents of the Lua
into the Lua
folder in your levelpack (Or just copy the Lua
folder directly into the levelpack) Make sure mods=1
is enabled for your levelpack as well.
All of the configuration is defined in Lua/basedconfig/baserules.lua
. This lua file is reloaded whenever you start or restart a level in your levelpack. So you don't have to close the game every time you want to edit baserules. Just edit the lua file and restart the level! It's that BASED easy!
Documentation of baserules.lua
is provided in the file itself. At a high level, you can define the baserules that will be applied if you form level is <X>
, where <X>
is a custom property name that you define yourself in baserules.lua
. You can even define baserule sets that only happen per level. (Again, more details in baserules.lua
itself)
It's pretty simple:
- In the level editor, add a text object that you won't plan to use.
- Open the palette and right-click on the text object
- Click
Change Name...
and rename it totext_<X>
, where<X>
is your custom property name (Ex: "text_hello", "text_based", "text_thisisreallylongtodemonstratelongnames") - Make sure
Text Type
is either "Baba" or "You" - Make sure clicking
Change Type...
has "text" as the value - And that's it! Feel free to customize the other options as well, but they're not needed for this mod.
- v1.7 (9/20/22)
- Fixed baserules with conditions + not verb causing an error
- v1.6 (8/15/22)
- Fixed baserules stacking twice from one baserule
- v1.5 (7/1/22)
- Fixed BASED mod not working with metatext mod
- v1.4 (4/13/22)
- Fixed baserules not updating after level restart
- v1.3 (4/6/22)
- Fixed custom power/powered and group baserules not working (Ex: baba is power123)
- v1.2 (2/24/22)
- Added "disable_normal_baserules" option
- Added a message to display the current version
- v1.1 (2/6/22)
- Fixed "X make Y" as a baserule not working after level restart
- Updated error message shown if
baserules.lua
has a syntax error - Updated presentation/documentation of
baserules.lua