Allow expressions as section headers #4472
Unanswered
Moderocky
asked this question in
Suggestions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This is a little proposal for a quality-of-life change, mainly for addons that provide section syntax.
Current behaviour
Currently, section headers need to be an effect.
This means addons have to create syntaxes like:
and
The "store it in" part is necessary since the section header cannot be an expression, so
set {x} to a new embed:
is currently not possible.Proposed behaviour
I think an expression should be allowed to be a section header as well.
This would allow addons (and Skript itself) to use sensible, regular
set...
effect rather than needing to create a new effect to store something in a variable.This would mean that syntax like:
could be converted to
Naturally, there would be occasions where somebody tried to put two section header expressions on the same line, which wouldn't be manageable. This should throw a parse error.
Beta Was this translation helpful? Give feedback.
All reactions