r/skyrimmods • u/Intrepid-Mud9836 • Jul 23 '26
Development Vellum v0.2.0 — VS Code support, string interpolation, pattern matching and more
Hey guys, a few months ago I announced the first release of Vellum — a scripting language for Skyrim that compiles to PEX and can be used alongside (or instead of) Papyrus.
v0.2.0 is out. Biggest additions: a VS Code extension, string interpolation, pattern matching, better for loops, array initializer lists, the is operator, and batch compilation.
VS Code support
There's now a VS Code extension with syntax highlighting, diagnostics, completion, go-to-definition, and Vellum: Compile command from the editor.
Download the .vsix from GitHub Releases (vscode-v* tags) and install via Extensions: Install from VSIX…. Windows x64 for now.
String interpolation
Papyrus:
Debug.Notification("Hello, " + actor.GetName() + "! Your level is " + actor.GetLevel() as String)Vellum:
Debug.Notification($"Hello {actor.GetName()}! Your level is {actor.GetLevel()}")Prefix with $ and put expressions in {...}. Non-strings are cast automatically.
Pattern matching
Papyrus:
If (puzzleStage == 1 || puzzleStage == 2)
doA()
ElseIf (puzzleStage == 3 )
doB()
Else
doOther()
EndIfVellum:
match puzzleStage {
1 | 2 => doA()
3 => doB()
else => doOther()
}Enhanced for loops
Iterate arrays, FormLists, and Int ranges. Bind index optionally.
Papyrus:
Int i = 0
While i < items.GetSize()
Form item = items.GetAt(i)
; ...
i += 1
EndWhileVellum:
for item, i in items {
// item is Form, i is Int
}
for i in 0..n {
// 0, 1, ..., n-1
}Array initializer lists
Papyrus:
Int[] nums = new Int[4]
nums[0] = 1
nums[1] = 2
nums[2] = 3
nums[3] = 4Vellum:
var nums = [1, 2, 3, 4]is operator
Type test that returns Bool.
Papyrus:
If (source as Weapon) != None
; source is a Weapon
EndIfVellum:
if source is Weapon {
// source is a Weapon
}Batch compilation
Now you can pass a directory to -f and the compiler builds every .vel under it (recursive by default).
Download
- Nexus (compiler): https://www.nexusmods.com/skyrimspecialedition/mods/176581
- GitHub (compiler + VS Code VSIX): https://github.com/Naratzul/vellum/releases
- Docs: https://naratzul.github.io/vellum/
Future plans
- Support other Creation Kit games (Fallout, Starfield)
- Linux/MacOS support
- Debugger for VSCode
If you're a mod author and curious, try dropping a new Vellum script into an existing Papyrus mod. Same PEX runtime, so they interop in-game. Vellum can extend Papyrus scripts and call Papyrus APIs.
Happy to answer questions here and see your feedback and ideas.
View all comments
Show parent comment
2
u/TheBrownMamba1972 Jul 24 '26
I have no problem with your first paragraph whatsoever. However, you’re assuming that because someone uses an LLM to write their scripts, it instantly means they’re vibe coding and generating AI slop, instead of something akin to what you yourself described in your first paragraph.
The fact that the original commenter even engaged in a scripting language discussion in the first place would suggest that they have some degree of understanding in programming. At the very least, it’s wild that you and/or others immediately engage with the original commenter with immediate hostility without any other indication other than they use AI generated code. I know this sub is heavily anti-AI slop, and I generally agree with anti-AI slop, but this is just ridiculous anti-AI witch hunt.