REDNODE / DOCS

Game API mod

Example apps / api-mod / v0.1.0

Node mod

V's health, level and money read through the generic game API, eddies given with TransactionSystem, and what happens to old references after a load.

Simulated game starting
Mod log

    How it works

    api calls any game function by name, typed from the game's own type data. The calls are the ones redscript makes, written in JavaScript, and each one is async.

    Game objects come back as references. A save load drops them all: a reference from before the load fails cleanly, with a message, rather than crashing the game.

    Wrong argument types are refused by REDnode before they reach the game.

    What it uses

    api.GetPlayer api.GameInstance api.$call api.MarketSystem game.instance references

    Try this

    Use it

    Copy the files into red4ext/plugins/REDnode/apps/api-mod/ in the game folder, or start your own package from them: change id and name in the manifest first. The whole folder is on GitHub.