Untitled
public text v1 · immutableon *:TEXT:!hiscore:#:{
write -c pointsunsorted.txt
hsave -n triviapoints pointsunsorted.txt
filter -ffctuen 1 32 pointsunsorted.txt pointssorted.txt
var %this = 0, %total = 5
while (%this < %total) {
inc %this
var %output = %output $hget(triviapoints,$gettok($read(pointssorted.txt,%this),1,32)).item $+ : $gettok($read(pointssorted.txt,%this),2,32)
}
msg $chan %output
remove pointsunsorted.txt
remove pointssorted.txt
}