VastopiaDocs
DocsUpdatesBlogAssets
Dashboard
Documentation home
    • Scripting Overview
    • Script Editor
    • Commands
    • Events and Systems
    • NPC, Object and Interaction Scripts
    • Script API Reference
    • IDE Setup and Compile Checking
  1. Docs
  2. Scripting

Scripting

Server-side C# commands, events, modules, and the script API.

  1. 1Scripting OverviewHow server-side C# scripting works in Vastopia - scripts, modules, schemas, the per-file compile rule, and what the client cannot do.
  2. 2Script EditorThe built-in C# editor: file tree, tabs, undockable windows, autocomplete from the server API, schema table editing, and managing script files.
  3. 3CommandsWrite ::commands with ICommandScript - names and aliases, parsing arguments, replying to the player, staff ranks, built-in commands and module bridges.
  4. 4Events and SystemsSubscribe to server events (login, chat, deaths, ticks) from a module, build long-lived game systems, and understand the 4 Hz tick loop.
  5. 5NPC, Object and Interaction ScriptsAttach C# scripts to NPC and object options, handle clicks and item-on-object use, and choose between scripts and data-driven actions.
  6. 6Script API ReferenceEvery class, method and property server scripts can call - ScriptPlayer, ScriptWorld, ScriptNpc, skills, loot, stores, data tables, modules, events, enums.
  7. 7IDE Setup and Compile CheckingGet IntelliSense for server scripts in VS Code, Rider or Visual Studio with the generated companion project, compile-check before launch, and read server logs.

© 2026 Vastopia. All rights reserved.

VastopiaUpdatesBlogTermsPrivacyDiscord