There's Also This
In another vital part of my code, I'm checking to see if button count text is white. (Spell Reagent Count turns numbers yellow or red to show that it is working.)
if ( string.format( "%.0f", r*10000 + g*10000 + b*10000 ) ~= "30000" ) then return end
I'm using "format" because I liked the way it rounds numbers - I could find no round math function in the language otherwise. This statement could mess up in French versions if the 30,000 returned with a space in it ... or maybe the count text is off-white, or something?
*returns to thinking*
|