Something went wrong. Try again.
A collection of stuff I need (scripts, maps, etc) for my Advanced 5th Edition games
Something went wrong. Try again.
foundry-a5e script.js
377 B · 17 lines
JavaScript
at main
1234567891011121314151617let socket;
Hooks.once("socketlib.ready", () => { socket = socketlib.registerModule("cass-a5e"); // Register funcs});
Hooks.once("init", () => { game.modules.get("cass-a5e").api = {}; game.modules.get("cass-a5e").api.socket = null;});
Hooks.once("ready", () => { if (game.user.isGM) { game.modules.get("cass-a5e").api.socket = socket; }});