ID:2952900
 
Not a bug
BYOND Version:515
Operating System:Windows 8
Web Browser:latex
Applies to:Dream Maker
Status: Not a bug

This is not a bug. It may be an incorrect use of syntax or a limitation in the software. For further discussion on the matter, please consult the BYOND forums.
Descriptive Problem Summary:
setting colour to white (or hex white) sets the color to null, which makes checks against it kinda whack-a-doodle

Numbered Steps to Reproduce Problem:
1) run the code

Code Snippet (if applicable) to Reproduce Problem:
mob/verb/colour_white()
color = "white"
world << color // null
world << isnull(color) // null af
if(color == "white") // it's not
world << "it's white" // it is

mob/verb/colour_ffffff()
color = "#ffffff"
world << color // its null again
world << isnull(color) // guess what. it's null
if(color == "#ffffff") // it's not
world << "it's #ffffff" // it is


Expected Results:
if(color == "white") should evaluate to true if the color is in fact white.

Actual Results:
it evaluates to false, because white is null

Does the problem occur:
Every time? Or how often?
when will
In other games?
we learn
In other user accounts?
our lesson
On other computers?
with this

When does the problem NOT occur?
lol

Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)
rofl

Workarounds:
y'know, maybe this is a hidden message with political undertones, hidden within the engine as a commentary on our perception of colour and race, and how that's impacted society over the course of history.
or maybe it's just a bug
Lummox JR resolved issue (Not a bug)
This is intended behavior.

The color var also doesn't store the exact value you put into it, so if it did return a color for white it'd be expected to return "#ffffff" if anything.

If you set color to a matrix, reading it back will read back in long form even if the matrix you used was short-form.
It's even right there in the documentation. am so sorry lummy. This is what I get for stumbling around at 3 AM.
Happens to all of us.
As somebody who is quite white, I can assure you that I am also null.

Thank you for coming to my TED talk.

Login to reply.