Open philpax opened 3 years ago
If this is something people are interested in, I might have a go at it at some point.
Just making a note here for posterity: I ended up implementing this by loading C# scripts - similar to Goatscript Classic:tm: - and it works, but I haven't submitted to testing/release because it needs significant sandboxing. It can be found here.
These are the rough notes I made about what needs to be done next:
Description
There are a fair few suggestions in this very repo that don't really require a full Dalamud plugin, but would still be nice to have around. I propose a sandboxed Lua environment where users can write and edit scripts that have access to a subset of Dalamud's functionality; these scripts can then be gzip-b64'd and shared on the Discord, or included by default in the Lua scripting plugin itself.
More info
Some general thoughts:
System
.xlua
is the best Lua interface for C#, but it appears you can't really use it outside of Unity. Would have to usenlua
instead, which means no generics (as far as I can tell)Here are some suggestions that I think could be handled by this:
462 / #493
7
562
540 (with a sound playing API)
532
502
This could be used as a potential replacement for the Scratchpad, but the Scratchpad would not be as sandboxed, so it'd still be worth keeping around for its current users.