Skript: do something 20 times.

Created on 15 Jun 2019  路  4Comments  路  Source: SkriptLang/Skript

Hey. I have a suggestion. Could you might add please something like "20 times" e.g play sound"" with volume 10 at player 20 times. this 20 times in this same second or like send "" to player 20 times. Isn't it easier than loop or something what doing this?

Most helpful comment

I agree with Shane. Also you can add multiple effects under the loop without having to write 20 times at the end all the time.

All 4 comments

I vote no on this, since:

send "blah" to player 20 times

is exactly the same as

loop 20 times:
    send "blah" to player

All you are really saving is a line and "loop"
In my opinion this would not make things any easier really!

I agree with Shane. Also you can add multiple effects under the loop without having to write 20 times at the end all the time.

Well. Good idea next time I will use something like this... Thanks

No, see the Ternary and Default Value expressions and the Do If effect? They are and this is for easier and shorter codes. This can also have an 'interval' feature. But yeah, you wouldn't have ability to run multiple effects because long parse time.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Eryk1983S picture Eryk1983S  路  3Comments

Coolfire02 picture Coolfire02  路  3Comments

ghost picture ghost  路  3Comments

MrScopes picture MrScopes  路  3Comments

TheClassic36 picture TheClassic36  路  3Comments