So I had an idea that would extend what we can do in metas
I was talking about it in /vcg and Magnus wanted me to post it here
I decided to flesh the idea out a little bit
I moved this topic from the VTank forum since it pertains primarily to magtools
If we had a simple plugin that could write a line to file and delete, we could have permanent variables
Maybe limit the file operations to a single folder if safety is a concern (or make enabling the command an option in mag tools (my preference)
Code: Select all
/mt delete C:\permvars.txt
/mt write C:\permvars.txt /vt mexec setvar[permvar, Value]
Code: Select all
/loadfile permvars.txt
Code: Select all
/mt writereplace C:\permvars.txt "/vt mexec setvar[permvar," "/vt mexec setvar[permvar, NewValue]"
In the meta you could write values like... (If I'm escaping characters that I don't need to, I apologize.)
Code: Select all
ExprChat: \/mt write C\:\\permvars.txt \/vt mexec setvar\[permvar\,+getvar[permvar]+\]
Personally. I think it would be great if we could get this and other basic file operations so we can do things like copying over mag-tools auto trade profiles with meta triggers (maybe a file extension whitelist? user configurable). I realize with public metas there are potential security implications, but think that making it opt in (along with a very visible warning when the person/meta tries to use it when not enabled) along with warning when it is enabled should be enough. and if someone does it anyway... you can't say they weren't warned. It would take 5 seconds for an experienced user (who has enabled the option) to open a suspect met file and do a search for the offending commands
Code: Select all
regex: \\?\/\\?m\\?t\\?.\\?((d\\?e\\?l\\?e\\?t\\?e)|(c\\?o\\?p\\?y))