After quite a while spent getting list-accessing to work (suffice it to say that either the online reference is misleading, or I'm more clueless than I think), I have stumbled onto my next problem.
I want to color some of the text output to the user. However, I'm not sure which rgb arrangement I want to use in the final game. I would like to #define something so I can just change it in that one spot rather than through the whole .dm file if I change my mind. But this is proving tricky.
#define SR \color(102,0,0)
and
src << "[SR] Welcome, [src]!\nPlease be patient while the board loads."
produce:
error:/color:bad path
for the #define line, while:
#define SR
#define END
and
src << "[SR] Welcome, [src]!\nPlease be patient while the board loads. [END]"
produce, oddly:
loading Backgammon.dme
Backgammon 1.dm:46:error: missing left-hand argument to <.
Backgammon 1.dm:46:error: bad embedded expression [S]
Backgammon 1.dm:46:error: missing left-hand argument to <.
Backgammon 1.dm:46:error: bad embedded expression [E]
Backgammon.dmb - 5 errors, 0 warnings
(Yes, one of the odd things is that it says there are 5 errors when only 4 are listed.)
Tell me, doctor... what should I do?
Z
ID:138334
Oct 26 2000, 7:53 am
|
|
In response to Deadron
|
|
On 10/26/00 12:08 pm Deadron wrote:
Try this: Oh... thank you! I thought I had tried that already, but I apparently hadn't, because of course it works just fine. Muddled Z. Z |
Try this:
#define SR "\color(102,0,0)"