Hello! In my previous thread, i talked about my skript for registration numbers. Allthough it works, i wanted to try and put some letters in it, before the numbers. Here's what i tried to do:
on script load:
set {L} to "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V" and "Z"
on script load:
set {L2} to "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V" and "Z"
command /matricola:
trigger:
set {IDN} to a random integer between 1 and 99
set {IDL} to random object out of {L}
set {IDL2} to random object out of {L2}
make player execute command "/setlore &7Matricola: &aMT.%{IDL}%%{IDL2}%.%{IDN}%"
For the most part, it works, allthough the letters don't seem to: i get the error code: {L1} {L2} Can only be set to one object, not more. How can i fix this, and how do i get my variables to work?
on script load:
set {L} to "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V" and "Z"
on script load:
set {L2} to "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V" and "Z"
command /matricola:
trigger:
set {IDN} to a random integer between 1 and 99
set {IDL} to random object out of {L}
set {IDL2} to random object out of {L2}
make player execute command "/setlore &7Matricola: &aMT.%{IDL}%%{IDL2}%.%{IDN}%"
For the most part, it works, allthough the letters don't seem to: i get the error code: {L1} {L2} Can only be set to one object, not more. How can i fix this, and how do i get my variables to work?