ID:138334
 
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
On 10/26/00 11:53 am Zilal wrote:
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)

Try this:

#define SR "\color(102,0,0)"

In response to Deadron
On 10/26/00 12:08 pm Deadron wrote:
Try this:

#define SR "\color(102,0,0)"

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