I would think it would be something like that, but ANY word other than 'ON'
works fine, doesn't matter which position its in. I can set it to on1, on2,
on3. I've tried changing on1 and on2 to other words like "unusued" but I
still can never set it to on. I will look into it further, thanks for the
help.
Jeff
-----Original Message-----
From: Circle Discussion List [mailto:CIRCLE@post.queensu.ca]On Behalf Of
Glover, Rick I.
Sent: Saturday, May 13, 2000 12:23 PM
To: CIRCLE@post.queensu.ca
Subject: Re: [CIRCLE] Color
-----Original Message-----
From: Jeff Boschee
To: CIRCLE@post.queensu.ca
Sent: 5/12/00 10:40 AM
Subject: [CIRCLE] Color
I am trying to get rid of the sparse, normal and complete color schemes
and
basically just have it on or off.
if I change ctypes as follows
const char *ctypes[] = {
"off", "on1", "on2", "on", "\n"
};
changing color to on1 and on2 work fine, but if you try and set it to
on, it
reverts to off. I tried changing the on to a different position in the
array and it always reverts to off.
Zarius
-----Reply-----
ACMD(do_color) uses search_block() to loop through ctypes to find a matching
string. It finds the "on1" or "on2" before the "on" because it has "exact"
match set to FALSE. You may want to just change the search_block() call in
to search_block(arg, ctypes, TRUE).
Rick
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
+------------------------------------------------------------+
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
+------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 04/10/01 PDT