Solved long reload time

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

loadka95

Active Member
Feb 24, 2017
78
6
8
Why does it take 20 seconds or more to reload this skript?

code_language.skript:
on shoot:
    if projectile is egg:
        if {particle.%shooter%} is 1:
            loop 10 times:
                loop {sping::*}:
                    wait 1 tick
                    show 1 "lava" particles at the projectile for loop-value-2 offset by 0, 0, 0
        if {particle.%shooter%} is 2:
            loop 10 times:
                loop {sping::*}:
                    wait 1 tick
                    show 1 "spell_witch" particles at the projectile for loop-value-2 offset by 0, 0, 0
        if {particle.%shooter%} is 3:
            loop 10 times:
                loop {sping::*}:
                    wait 1 tick
                    show 1 "note" particles at the projectile for loop-value-2 offset by 0, 0, 0
        if {particle.%shooter%} is 4:
            loop 10 times:
                loop {sping::*}:
                    wait 1 tick
                    show 1 "snowball" particles at the projectile for loop-value-2 offset by 0, 0, 0
        if {particle.%shooter%} is 5:
            loop 10 times:
                loop {sping::*}:
                    wait 1 tick
                    show 1 "flame" particles at the projectile for loop-value-2 offset by 0, 0, 0
        if {particle.%shooter%} is 6:
            loop 10 times:
                loop {sping::*}:
                    wait 1 tick
                    show 1 "heart" particles at the projectile for loop-value-2 offset by 0, 0, 0
 
It's because the particles syntax, try using another addon for it or try using the evaluate from skQuery.
 
It's because the particles syntax, try using another addon for it or try using the evaluate from skQuery.
What the evaluate does? I looked up on it, but i have no idea what it does. Can you make me an example? :emoji_slight_smile:
and i tried this from skQuery, but it doesnt worked.
code_language.skript:
particle %particletype%[:%-number%] [offset (at|by) %-number%, %-number%, %-number%]
 
Try this:
code_language.skript:
evaluate "show 1 ""lava"" particles at the projectile for loop-value-2 offset by 0, 0, 0"
instead of
code_language.skript:
show 1 "lava" particles at the projectile for loop-value-2 offset by 0, 0, 0
 
  • Like
Reactions: loadka95
Status
Not open for further replies.