-
-
Notifications
You must be signed in to change notification settings - Fork 356
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enums / Enumerations #5921
Comments
Agreed, been wanting this for 6 months |
This is not English-friendly syntax but can you give a good usage for this? |
I don't see the use in this if going based off
you'd make the "name" the index |
You can already do this with aliases and only enum classinfos that have been registered.
This feature only exists so that you can explicitly tell Skript what enum classinfo to parse as. Example being a visual effect, a block and an itemtype can all be called You shouldn't ever need to do this with the active efforts we've done to ensure Skript parses correctly and won't get confused. Also addons must be using the .lang files to tell Skript exact values. Example being attempting to parse setting a block to fire but Skript reads fire as a particle and causes a "cannot understand" error. This will not happen in 2.7+. Variables can be changed instantaneously, so Skript would not know the enum classinfo type. This is very unsafe to be doing. We'd only be allowed to see the type of a local variable with this pull request #5457 which opens some interesting possibilities for variables. Gives it an approval to show your interest in the pull request. Either way it should be on track for v2.8. |
I'm going to close this because it is incredibly unclear what the suggestion is for, and the issue-maker has not commented to add any more information or to clarify this. If the issue-maker wants to have another go at explaining what they are suggesting we can re-open this issue, or they can make a new one. |
Suggestion
Skript currently doesnt have support for enums, which can be kinda useful at times.
Basically lets say you have a list of items, and you want them to be easy to access so something such as
{_enumName}.%itemName%
, it can possibly be defined usingset {_enumName} to (enumeration|enum) [(with|of)] %list%
Why?
This can improve ease-of-use for skripters.
Other
No response
Agreement
The text was updated successfully, but these errors were encountered: