what are these numbered codes in the inspector and how do I refer to them in a action code (e.g. $Color=“7”; does not seem to work, but maybe it is because I’m having problems with the edict)
The circles contain a sample of the named colours. The first named colours happen to have numbers as their name. If you look at the table to which you linked you’ll see the numbered colours:
Be aware the above image was created using the Tinderbox built-in colour scheme ‘Tinderbox 7’ though your
But note your code example uses typographic (‘curly’) quotes. In action code ,straight quotes (single or duoble) are needed. Try:
$Color = "7";
as that will work.
Note that the way the colour scheme work is hat they retain the named colours but change the colour value stored for that colour. So, ‘blue’ in one scheme might look alike a rather different colour in another scheme even though the name is blue.
You can of course define your own named colours as set colour values you desire. User-defined colours are unaffected by changes in colour scheme.
Thank you Mark! It wasn’t the quotes. I figured out the mistake in my action code after you confirmed 7 should work: I had lower case color not Color. And yes, I should have noticed from the action code coloring but was focused on the color number. Amazing how one can be blind to the obvious.