ID:169477
![]() Jun 12 2005, 8:10 pm
|
|
Unfortunatly...there are no bools in DM, how can I assign a decimal to a variable? x.x I was hoping to have to so ore would weigh .05 and it slows you down as you walk but unfortunatly byond doesn't like mass=.05 and if I turn that into text I know i'm going to be having some mis match errors. Is there some secret ops way of sneaking behind byond and adding decimals to a variable?
|
![]() Jun 12 2005, 8:12 pm
|
|
Umm... what? I'm fairly sure you can set a variable to a non-integer number. Just make sure there's a leading zero. So 0.05 instead of .05
|
Anything can be converted to a boolean.
0, 'null', "", and I think empty lists and icons evaluate as false. EVERYTHING else is true. |
InuTracy wrote:
Opps, that was a dumb post. Sorry, I can't delete it. It's a good thing that you can't delete it! Now, if others have the same question, they can see your post, and they'll have it answered. Now i'm going to look newbish and stupid. =( You don't look newbish or stupid at all! Asking a question is smart -- not stupid. =) |