Hash table could be used here, And you could use regex and $regml to make this all 1 command and work the same :).
on $*:TEXT:/^[.!@](Gold|Bronze|Silver)-Star/si:#: {
hinc -m $regml(1) $nick
describe $chan gives $2 a $regml(1) Star 0,2 ✩ for effort. $nick has given out $hget($regml(1), $nick) $regml(1) Star awards.
}