Quantcast
Viewing all articles
Browse latest Browse all 1540

Lua Scripting • Re: Talking with Lua...

Hey teacher I got a question.

What if the arg is a dynamic variable used on a SetOption bang and you want it to stay dynamic?

Something like [!SetOption meter fontcolor "[*&Script:function('[*#Color*]')*]"]

What's the correct syntax for that?
I think the correct way to write it would be [!SetOption meter fontcolor "[&*Script:function('[#*Color*]')*]"] (notice the order of &, #, and *). Also, in case you need this one day, you can "multiescape" things, like, for example, [#**Color**] and such (useful if you nest escaped stuff in variables)...

Statistics: Posted by Yincognito — 5 minutes ago



Viewing all articles
Browse latest Browse all 1540

Trending Articles