You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
You can't do anything in parse section. Variables isn't saved to use it in check section, you cant get literals and e.t.c
To reproduce
event "custom_event":
pattern: custom_event [<(.+)>]
event-values: string
parse:
set {_regex} to first element of regex-1
set {_a} to 1
continue
check:
broadcast "%{_a}%"
broadcast "%{_regex}%"
continue
on custom_event regex:
broadcast "Event called"
on load:
set {_evt} to custom event "custom_event"
call event {_evt}
Expected behavior
{_a} variable is 1 at start of check section
{_regex} will = "regex"
Server information
skript-reflect 2.4 (last actions)
Skript 2.8
PaperSpigot 1.20.4
The text was updated successfully, but these errors were encountered:
Analysing this problem further, a new problem emerged, I believe that now Skript is trying to parse events before structures (or custom event parsed before custom event creation section for no reason).
Because of this, when parsing a custom event (not the custom event creation section), on this line:
always be null if we has custom event structure and handler in same script file.
It turns out that regardless of the presence of a parse section, the event can be used before loading parse section.
Describe the bug
You can't do anything in parse section. Variables isn't saved to use it in check section, you cant get literals and e.t.c
To reproduce
Expected behavior
{_a} variable is 1 at start of check section
{_regex} will = "regex"
Server information
The text was updated successfully, but these errors were encountered: