#Particles

1 messages · Page 1 of 1 (latest)

mellow raptor
#

why does skript not accept half the particles?

if {_class} is 1:
            draw 500 of flame at {_p} with extra 0.1 to all players
        else if {_class} is 2:
            draw 500 of dust using dustOption(blue,1) at {_p} with extra 1 to all players
        else if {_class} is 3:
            draw 500 of dirt at {_p} with extra 0.1 to all players
        else if {_class} is 4:
            draw 500 of smoke normal at {_p} with extra 0.1 to all players
        else if {_class} is 5:
            draw 500 of redstone at {_p} with extra 0.1 to all players
        else if {_class} is 6:
            draw 500 of totem at {_p} with extra 0.1 to all players```
quick parcel
#

why are you using a number for class?

#

just set class to a particle then lerp {_class} at ....

mellow raptor
#

I'm using a coloured particle for each one

#

the class isn't the particle

quick parcel
#

i'm saying it could be though

#

cause thats a lot of very similar lines

mellow raptor
#

true but I've set class is set to a random integer from 1 to 6

mellow raptor
quick parcel
mellow raptor
#

I'll still need ifs to set another variable to it anyway

quick parcel
#

for redstone (dust) and totem (of undying)

#

try using skbee's particles or parse it as visual effect type

mellow raptor
#

thanks

#

Wait can I do a specific colour of firework?

quick parcel
#

yes

mellow raptor
#

how would I do that?

#

draw 500 of firework at {_p} with extra 0.1 to all players

quick parcel
#

i've personally never done it, but you could always check for a particle list or something ¯_(ツ)_/¯

#

or just try green firework (spark) or soemthing

mellow raptor
#

wdym (spark)

quick parcel
#

you may need to use "spark" when refering to the particle

mellow raptor