Allows you to graph a one line graph thing, this is very similar to the one used on hypixel to show your progress for minigames.
Usage: lineGraph(length, percent)
Code:
options:
line plotter: ■
color scheme: &e
function lineGraph(length: integer = 10, percent: number) :: text:
set {_graph} to "&8["
set {_values} to rounded ({_length}/100)*(rounded {_percent})
loop {_length} times:
loop-number <= {_values}:
set {_graph} to "%{_graph}%&e{@line plotter}"
else:
set {_graph} to "%{_graph}%&7{@line plotter}"
set {_graph} to "%{_graph}%&8]"
return {_graph}