Players meeting in North Haven, online. What This Module Does
Off unless the project set it up on Database > System 2 > Steam (data/ReactorSteam.json): its own Steam App ID. Achievements are made in Steamworks > Stats & Achievements and unlocked by the event command Steam Achievement, by API name. Nothing here is RPG Reactor's own Steam app.
Classes & Namespaces
Design Notes from the Source Code
Off unless the project set it up on Database > System 2 > Steam (data/ReactorSteam.json): its own Steam App ID. Achievements are made in Steamworks > Stats & Achievements and unlocked by the event command Steam Achievement, by API name. Nothing here is RPG Reactor's own Steam app.
ReactorSteam.available() Steam is running for this game ReactorSteam.unlock(apiName) unlock an achievement ReactorSteam.clear(apiName) lock it again (for testing) ReactorSteam.isUnlocked(apiName) ReactorSteam.stat(name) / setStat(name, value) integer stats
Plugin command (plugin "RPGReactor"): SteamAchievement { api, action: "unlock" | "clear" } - the event editor offers it under Reactor > Game Flow.
Steam is reached through steamworks.js (node_modules/steamworks.js, put in a desktop build by the editor when the project uses Steam). A browser game, a game started without Steam running, or a playtest (unless "Use Steam in playtests" is on) carries on without it: every call does nothing, and an achievement only notes itself in the console.
View reactor_steam.js on GitHub · Hide internal (_) functions