[Docs] Errors in Direction expression syntax #4011
Labels
completed
The issue has been fully resolved and the change will be in the next Skript update.
documentation
Related to Skript's official documentation.
enhancement
Feature request, an issue about something that could be improved, or a PR improving something.
priority: low
Issues that are not harmful to the experience but are related to useful changes or additions.
Read this:
[%number% [[(block|met(er|re))[s]] [to the]] (north[(-| )][(east|west)][(ward(s|ly)]|er[(n|ly)])] [of]|south[[(-| )][(east|west)][(ward(s|ly)]|er[(n|ly)])] [of]|[(east|west)[(ward(s|ly)]|er[(n|ly)])] [of]|above|over|[(up|down)[ward(s|ly)]]|below|under[neath]|beneath) [%direction%]
In particular:
north[(-| )][(east|west)][(ward(s|ly)]|er[(n|ly)])] [of]
north . [(-| )] . [(east|west)] . [ ( ward(s|ly)] | er[(n|ly)] ) ] . [of]
ward(s|ly)]
- missing[
, should beward[(s|ly)]
This is total chaos:
south[[(-| )][(east|west)][(ward(s|ly)]|er[(n|ly)])] [of]
south[ . [(-| )] . [(east|west)] . [( ward(s|ly)] | er[(n|ly)] ) . ] . [of]
- let's remove the first left bracket:south . [(-| )] . [(east|west)] . [( ward(s|ly)] | er[(n|ly)] )] . [of]
- now it's like north expression above, let's fix "wardsly" part:ward(s|ly)]
should beward[(s|ly)]
, so:south . [(-| )] . [(east|west)] . [( ward[(s|ly)] | er[(n|ly)] )] . [of]
south[(-| )][(east|west)][(ward[(s|ly)]|er[(n|ly)])] [of]
And:
[(east|west)[(ward(s|ly)]|er[(n|ly)])] [of]
[ . (east|west) . [( ward(s|ly)] | er[(n|ly)] )] . [of]
- what's with that first left bracket? let's fix it:(east|west) . [( ward(s|ly)] | er[(n|ly)] )] . [of]
- fix "wardsly" again:(east|west) . [( ward[(s|ly)] | er[(n|ly)] )] . [of]
And:
[(up|down)[ward(s|ly)]]
(up|down) [ ward[(s|ly)] ]
I've read that the docs are generated automatically, so I think something broke. By the way, that syntax is completely incomprehensible and it would be good to break it into smaller pieces, if that's possible:
[%number% [[(block|met(er|re))[s]] [to the]] north[(-| )][(east|west)][(ward[(s|ly)]|er[(n|ly)])] [of] [%direction%]
[%number% [[(block|met(er|re))[s]] [to the]] south[(-| )][(east|west)][(ward[(s|ly)]|er[(n|ly)])] [of] [%direction%]
[%number% [[(block|met(er|re))[s]] [to the]] (east|west)[(ward[(s|ly)]|er[(n|ly)])] [of] [%direction%]
[%number% [[(block|met(er|re))[s]] [to the]] (above|over|[(up|down)[ward(s|ly)]]|below|under[neath]|beneath) [%direction%]
That's more readable, doesn't it?
The text was updated successfully, but these errors were encountered: