#how can i check if a player has a certain uuid?
1 messages · Page 1 of 1 (latest)
<@&1201956957406109788>
💬 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
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
Seems like the temp_uuid is getting saved as a list of strings, not an integer array
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
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
is it specifically just for int arrays ?
I think that's true of arrays in general
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
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
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
I don't know
:(
<@&1166082198152159386> <@&1202694677766348840>
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)
sry for this pinging u mr kanokarob
You're good haha
i like to just do it with 4 scores
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
if youd like to keep it as macros i believe kano is right and youd have to store each separately, though im also not sure.
either way i do believe scores would be easier and better optimized
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
essentially yeah