#i want to apply multiple potion effects to a player, is this how it works? (idk how to make a lists)

1 messages · Page 1 of 1 (latest)

floral pagoda
#

ye its in da title i dont know how to make lists and you can teach me but is there another way? i mean im fine with lists i just cant seem to find the right tutorial

trim hollow
#

lists are just set {your-list::*} to thing1, thing2, and thing3

floral pagoda
#

oh

trim hollow
#

you also have a lot of other issues going on

floral pagoda
#

like?

trim hollow
#

too many to name rn

#

i suggest taking a look at some beginner tutorials, i'll send a few links

floral pagoda
#

i did ;-;

#

okay just name one

floral pagoda
#

okay i don't know what i did wrong in the code at all

#

can you explain it to me?

trim hollow
#

Well for one, the if statement has a randomly placed :, that should be at the end of the line

#

Also skript doesn't know what The RealCrabex is

#

You gotta make it a string and parse as a player

floral pagoda
#

like this?
if command sender is "TheRealCrabex":

trim hollow
#

Finally, the variables section isn't what you should be using there
It only sets the variable if it isn't set, meaning it won't overwrite any values if you decide to change the string
Instead, use an on load event

trim hollow
floral pagoda
#

wut

#

what does it mean to parse something?

trim hollow
#

"something" parsed as player
For example

floral pagoda
#

if command sender is parsed as "TheRealCrabex":
like that? bro i cant this im so dumb please forgive me

trim hollow
floral pagoda
#

i still dont understand

trim hollow
#

You just replace something with whatever you're parsing

#

In this case, the username

floral pagoda
#

oh so "TheRealCrabex" parsed as player?

trim hollow
#

Mhm

floral pagoda
#

ohhh i get it now

#

okay

trim hollow
#

In general you should never be hardcoding names into your code tho

floral pagoda
#

yeah ik its just a test

#

i will replace it later

#

so is this all?

#

like all the issues are solved?

trim hollow
#

Well does your code work?

floral pagoda
#

and the final code should look like this

trim hollow
#

But overall it's a lot better

floral pagoda
#

oh so where should i put it?

floral pagoda
#

like that?

trim hollow
#

Yup!

floral pagoda
#

omg finally i did something rigt

#

alr ima test it

#

oh and btw what host do you recomend for quick tests like this?

#

i cant use home cuz my internet sucs

#

sucks*

trim hollow
#

you don't need internet to host your own server

#

your computer can always connect to itself

floral pagoda
#

oh aslr

#

alr