It’s similar, but JavaScript would use :
and ,
for separators rather than =
and ;
.
This is valid Lua table syntax, however. A program creates an embedded Lua environment with an item
callback function and runs this file inside it. Something similar could be done to convert it to another format; just define item
to output the data as JSON, or whatever other format you prefer.
The Prosody XMPP server, written in Lua, generates files of this type when serializing lists with the “internal” storage manager. See functions list_store
and list_load
in util/datamanager.lua.
The fact that you’ve made it impossible to roll an 8 by replacing 2d4 with 1d6+1 might impact the game just a bit. Also with 2d4 a 5 is 4x as likely (1+4, 2+3, 3+2, 4+1) as a 2 (1+1) or 8 (4+4); with 1d6+1 all outcomes from 2 to 7 are equally likely, so you’re far more likely to get a critical hit or critical miss (if the game has that sort of thing, and you adjust it for the reduced range).