Yes, the value of $showHint is used relative to the $numOfAttempts value. So setting $showHint equal to $numOfAttempts will not work.
To really make this work you would have to modify scaffold.pl. Although, even with that, I am not entirely certain this is possible. It may take further modifications to webwork to make this work.