#how can i check if a player has a certain uuid?

1 messages · Page 1 of 1 (latest)

thorny iris
#

aa

fringe pollenBOT
#

<@&1201956957406109788>

Someone will come and help soon!

💬 While you wait, take this time to provide more context and details.

✅ Once your question has been resolved (or you no longer need it), please click Resolve Question or run /resolve

thorny iris
#

the last 2 $ lines are the ones that im having trouble to get working

#

the program is running fully but just not working as intended

#

the screenshots is what my uuid actually is and what the variable temp_UUID is

subtle oxide
#

Seems like the temp_uuid is getting saved as a list of strings, not an integer array

thorny iris
#

execute if data entity @s[tag=random] Tags run data modify storage mg_variables names_of_assassins[0] append from entity @s UUID

#

this is how im storing the uuids

subtle oxide
#

I also don't know macros too well but I don't think you can actually have a macro be a whole int array, it has to be each individual entry

#

But that I'm less confident on. I know there are some people in here more well versed in macros and storage, so they'll probably be better here

thorny iris
subtle oxide
#

I think that's true of arrays in general

thorny iris
#

but it worked

#

im storing an array of array of string in a macro

#

and accessing it

#

im accessing the string array fine, shown thru the printing of it

#

juyst not sure how i can get it to be the exact UUID, since when im storing it idk why its becoming a string isntead of the ints

subtle oxide
#

I may be wrong then, I'll admit this isn't an area I'm very familiar with, so I was just repeating what I thought I remembered others saying

thorny iris
#

oke

#

is there a way to set the type of an array before I use it?

#

do u think that could be the issue with what i have

#

cause the default type of the array is string and its just converting int to string cauyse of it

#

Is there a way to specify the type of the array to int??

#

just like the uuid is

subtle oxide
thorny iris
#

:(

fringe pollenBOT
# fringe pollen <@&1201956957406109788>

<@&1166082198152159386> <@&1202694677766348840>

🙇 Helpers Arise!

Please note that you still might not immediately get a response since all helpers are human beings and volunteers (and also might be sleeping right now)

thorny iris
#

sry for this pinging u mr kanokarob

subtle oxide
#

You're good haha

nocturne shale
#

i store each of the player’s 4 uuid objects in separate scores

#

then compare them to the other 4 in score form

#

because then i only need to actually grab the uuid once

nocturne shale
thorny iris
#

Hmm I see what u mean

#

So I would have to convert the array containing the 4 uuids into 4 diff scores

#

Then do the same for the uuid I want to check it against

#

And do 4 ifs for each pair

nocturne shale
thorny iris
#

It feels a bit clunky but it’ll work

#

Thanks