The all around modchart helper that contains functions and utilities created by the community.
These scripts are designed to be used with Remapper.
Checkout examples of all the visible effects in EXAMPLES.md
In your map project folder, run the following
$ npm install nootils
# or if you use yarn
$ yarn add nootils
Nootils should be used after a map is opened by Remapper, an example can be seen down below:
import * as Remapper from 'swifter_remapper'
import * as Nootils from 'nootils'
const map = new Remapper.Difficulty("INPUT.dat", "OUTPUT.dat");
// Start of script, insert your script below this line.
Nootils.Rain(0, 20, 300) // This will add the rain effect to the opened map using magic (Remapper.activeDiff)
// End of script, insert your script above this line.
map.save();
You can import all functions Nootils provides by using the following import statement:
import * as Nootils from 'nootils'
Nootils.Rain(0, 20, 300)
If you want to use individual functions instead, you can import each function as you need like so:
import {Rain} from 'nootils'
Rain(0, 20, 300)
As this package is community ran, we appreciate whoever commits to it.
To commit, you need the following:
- A new function, not already in the package (just update it if it already exists)
- A description of what the function does
- All variables explained one by one and what they do
- Formatted the way other functions are
All Nootils functions are documented using JSDoc allowing you to view documentation in an IDE using intellisense: