Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>EryScript LanguageNew to Visual Studio Code? Get it now.
EryScript Language

EryScript Language

XunKal1

| (0) | Free
Syntax highlighting, IntelliSense, diagnostics, snippets and file icons for EryScript - the scripting language of Erythros Lite.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

EryScript Language

MIT License · v2.0.0 · VS Code ≥ 1.80

Full language support for EryScript, the scripting language used to mod Erythros Lite. Syntax highlighting, IntelliSense, diagnostics, snippets and custom file icons — all in one lightweight extension.


Install

Install directly from the VS Code extension view (Ctrl+Shift+X) by searching for EryScript published by xunkal1, or visit the Marketplace page.


Features

Feature Details
Syntax highlighting Keywords, callbacks, engine classes, dot-methods, dot-properties, strings, numbers and comments (//, /* */)
IntelliSense Completion for 23 keywords, 8 game callbacks, 32 engine classes, 40+ dot-methods and 30+ properties
Diagnostics Missing mend / end, duplicate methods, wrong keyword casing, deprecated print()
Snippets 13 templates: emethod, eif, eife, eelseif, efor, etry, ecallback, eusing, evar, elog, enew, ecal, emode
File icons Custom icon theme for .ery and .eryscript files
Documentation shortcut Open the official Erythros wiki directly from the Command Palette

The extension is written in plain JavaScript, has no runtime dependencies and starts instantly.


Quick start

  1. Install the extension from the Marketplace.
  2. Create a file named MyMod.ery.
  3. Paste the template below and press Ctrl+Space anywhere to explore the API.
using Keyneed
using UnityEngine
using EryScriptUtils
using EryScript
using System

method OnModLoadedCallback(script, mod)
    call Debug.Log("My mod loaded")
mend

method OnPlayerConnectedServerCallback(player)
    var name = call player.name
    call Debug.Log("Player connected: " + name)
mend

EryScript is case-sensitive: keywords are always lowercase (var, call, method, mend, end), while engine classes and callbacks use PascalCase.


Language overview

// A method is opened with `method` and closed with `mend`
method GiveCoins(ply, amount)
    var coins = call ply.inventory.count("Coin")
    if coins >= amount
        call ply.inventory.remove("Coin", amount)
        return true
    else
        return false
    end
mend

// for loops count from .. to
for i = 0 to 3
    call Debug.Log("index " + i)
end

// try / catch is closed with end
try
    var data = call GlobalVars.Get("save")
catch
    call Debug.Log("failed to load save")
end

Supported keywords: using, method, mend, var, call, if, elseif, else, end, for, to, return, break, continue, try, catch, new, and, or, not, true, false, null.

Supported callbacks: OnModLoadedCallback, OnPlayerConnectedServerCallback, OnPlayerDisconnectedServerCallback, OnPlayerDieServerCallback, OnChatMessageServerCallback, OnPlayerCreatedCallback, OnPlayerRespawnedServerCallback, OnPlayerDamagedServerCallback.


Commands

Open the Command Palette (Ctrl+Shift+P) and type EryScript:

Command Description
EryScript: Validate EryScript Document Runs the linter and shows a summary of errors and warnings
EryScript: Open EryScript Documentation Opens the official Erythros wiki

Snippets

Type the prefix and press Tab:

Prefix Inserts
emethod method Name(params) … mend
eif if condition … end
eife if / else … end
eelseif elseif condition
efor for i = 0 to count - 1 … end
etry try / catch … end
ecallback Game callback method
eusing All five standard using directives
evar var name = null
elog call Debug.Log("message")
enew var name = new ObjectArrayWrapper()
ecal call object.Method(args)
emode Complete mod template

Settings

Setting Default Description
eryscript.enableDiagnostics true Enable the linter
eryscript.autoApplyIconTheme true Apply the EryScript icon theme when no icon theme is selected yet

To switch the icon theme manually run File → Preferences → File Icon Theme (Ctrl+K Ctrl+T) and pick EryScript Icon Theme.


Diagnostics

The linter reports:

  • Missing mend — a method block is not closed.
  • Missing end — an if, for, try or while block is not closed.
  • Duplicate method — the same method name is declared twice.
  • Wrong keyword casing — for example VAR, CALL, METHOD, MEND.
  • Deprecated print() — use call Debug.Log("message") instead.

Diagnostics update as you type and can be disabled with eryscript.enableDiagnostics.


Requirements

  • VS Code 1.80 or newer.
  • No other extensions or runtimes are required.

Troubleshooting

Syntax highlighting is missing Open the file and check the language mode in the bottom-right corner. It should say EryScript. If not, click it and select EryScript.

File icon is not shown Run Ctrl+K Ctrl+T and select EryScript Icon Theme. Some VS Code setups reset the icon theme after updates.

Completion does not appear Press Ctrl+Space manually. Completion is triggered by typing, . or (.


Contributing

Issues and feature requests are welcome at https://github.com/Hinderchik/EryScript-Language-Support/issues. Please include your VS Code version, a minimal .ery sample that reproduces the problem and the exact message from the Problems panel.


License

MIT © 2026 XunKal1

Erythros Lite and EryScript are created by Keyneed. This extension is an unofficial community tool and is not affiliated with the game developers.


Поддержка EryScript для VS Code

Полная поддержка языка EryScript — языка скриптов для модификации Erythros Lite от Keyneed.

Подсветка синтаксиса, автодополнение, линтер, сниппеты и иконки файлов в одном расширении.

Установка

Установите расширение из внутреннего магазина VS Code (Ctrl+Shift+X) по запросу EryScript (издатель xunkal1) или откройте страницу на Marketplace.

Возможности

Функция Описание
Подсветка синтаксиса Ключевые слова, callbacks, классы движка, dot-методы, свойства, строки, числа, комментарии // и /* */
Автодополнение 23 ключевых слова, 8 callbacks, 32 класса движка, 40+ методов и 30+ свойств
Линтер Пропущенный mend / end, дубликаты методов, неверный регистр ключевых слов, устаревший print()
Сниппеты 13 шаблонов: emethod, eif, eife, eelseif, efor, etry, ecallback, eusing, evar, elog, enew, ecal, emode
Иконки файлов Своя тема иконок для .ery и .eryscript
Быстрый доступ к вики Команда открытия официальной документации Erythros

Быстрый старт

  1. Установите расширение из Marketplace.
  2. Создайте файл MyMod.ery.
  3. Вставьте шаблон выше и нажмите Ctrl+Space.

Команды

Откройте Палитру команд (Ctrl+Shift+P) и введите EryScript:

Команда Действие
EryScript: Validate EryScript Document Проверить документ и показать число ошибок и предупреждений
EryScript: Open EryScript Documentation Открыть вики Erythros

Настройки

Настройка По умолчанию Описание
eryscript.enableDiagnostics true Включить линтер
eryscript.autoApplyIconTheme true Автоматически включать тему иконок, если тема ещё не выбрана

Лицензия

MIT © 2026 XunKal1

Erythros Lite и EryScript созданы Keyneed. Расширение является неофициальным сообщественным инструментом.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft