what i was trying to do with the $level = $level thing was i wanted the person to just say a number, then use quest::level($level) to level them up to there desired level.
edit---
maybe this would work?
Code:
{
int $level;
if($text=~/$level/i)
{
quest::level($level);
}
}