Skip to content
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

feature: additional SecLoop, ExprElement and EffWait syntax #80

Merged
merged 7 commits into from
Oct 25, 2020

Conversation

Mwexim
Copy link
Owner

@Mwexim Mwexim commented Oct 14, 2020

This pull request adds three simple syntaxes to some existing ones:

  • SecLoop: added loop N times syntax. I made it so that the actual code doesn't get looped N amount of times, but rather a range from 1 to N. This way, users can use loop-number in their code to refer to the current iteration, something Skript has been missing for an eternity.
  • EffWait: added wait while X (for Y time). Some small addition that Skript actually doesn't support. I had to revamp the ThreadUtils a bit for this.
  • ExprElement: added N random elements syntax.

Furthermore, I fixed one error in the SimpleLiteral class and fixed some error message in the ExprRange syntax class.

These syntaxes all came from the #40 issue.

Copy link
Contributor

@Olyno Olyno left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I checked fast the pull request, but it something little more complicated for me, I let @Syst3ms review last things, but good job anyway 😄

Olyno
Olyno previously approved these changes Oct 19, 2020
@Mwexim Mwexim merged commit f938843 into master Oct 25, 2020
@Mwexim Mwexim deleted the feature/general-syntaxes branch October 25, 2020 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants