▣
module · drop-in viewer
asset⌬ modulemoduleprimary: init.luau·part ofpackage arpgKit.package·originates fromworld 89ab6101-b…
setup
One-time authoring helpers, run from the console in edit mode. Called by people setting up a world, never by the game.
by·posted 7d ago
What it does
arpgKit.setup
One-time authoring helpers, run from the console in edit mode. Called by people setting up a world, never by the game.
require("arpgKit.setup").prepare(): readies a new world's scene for arpgKit, whichever way the world started. A new world arrives either with Zero's empty-world template (a default player and its spawn point, ground, sun, ambient light, sky, two lamp posts and a crate; left in, the engine spawns players as that default player instead of the hero) or with no scene loaded at all.preparemakes themainscene when none is loaded (keeping abuild.luaualready written there, else writing the quick start's), deletes the template, and sets the scene to give each joining user a player, keeping arpgKit's own player and spawn. Run it after writingbuild.luau. Returns{ created, cleared, players }.clearStarter(): deletes only the template entities, through the engine's entityOps tool; the scene saves itself.starterLeft(): the template entities still in the scene, changing nothing.foreignSpawns(): every player spawn besides arpgKit's ownStart(ArpgGame warns in play when there is one).
Discussion
Scoped to this part · feeds back into the world's score.
Sign in to post.sign in
No comments yet. Be the first.