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