#link gen

1 messages · Page 1 of 1 (latest)

languid bridge
#

You could make a string that looks like, say, "abcdef...0123456789", then assign a variable to the length of the string, then get a random integer between 1 and the length of the string, then substring the character at that index. Repeat 5 times.

Not sure if there is a better way to do this, there might be

crude horizon
#

got it already but still thx

#
    loop shuffled (characters between "a" and "z"):
        add "%random integer from 0 to 9%" or loop-value to {_list::*}
        exit loop if loop-iteration is 5
    set {_result} to join {_list::*} by ""
    send "%{_result}%" to {_p}```
crude horizon
#

how do i make a linking command ??

languid bridge
crude horizon
#

wait 1 sec

crude horizon
# languid bridge What do you mean linking command?

I made a linking command to link ur mc user with dc for rewqards. I made it so when u type /link in game it will generate a code and when u type the code in discord it will give u a role called linked and will say in game that u linked and will say in dc that u linked too. (Thats all made with diskys) now how do i get the minecraft name of the person who linked in discord so the message could be like like "u linked with the mc user: flam3ed"

silver dune
#

i suppose you could have a variable which stores all players who used /link and codes they got and compare it with the code someone uses on discord

tribal pine
#

^ this or yaml/json

languid bridge
#

there is also plugins that can accomplish mc/discord linking easily without any skript, not sure if that's an option you'd want though

languid bridge