Lua

Since version 3.1, Verge has supported two languages: VC, the custom C-like scripting language written for Verge, and as a new addition, Lua (http://lua.org/). Lua is a light-weight, simple-to-use scripting language which has gained widespread use in games and mods. This language addition was made possible through the hard work of zeromus and Overkill.

To enable Lua scripting in Verge, you must add one setting to your verge.cfg file:

lua 1

For those coming from a VC background, you will be happy to know there have been great pains to reproduce the built-in functionality of VC in Lua. And for the most part, it's very similar. The library did change around a fair deal between versions Verge 3.1, 3.14 and 3.2. It's recommended that everyone use Verge 3.2. For more info, read about the differences between Lua and VC here.

There is one drawback: Users may write their game systems in either language, but they can't use code from both languages in the same game. Porting to code from VC to Lua is relatively painless, but backporting Lua to VC will probably be a challenge, since VC lacks many of the dynamic features and flexible data structure capabilities that Lua has available to it.

Talkback

Post a new comment?

Talkback #1 written by verge-rpg.com on 2014-04-17.

This is the talkback thread for the documentation page: Lua

Post a new comment?

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.