At 13.00 20/03/98 -0700, you wrote: >Similar, but not the same. My color code works like this "&+g" does >green. Let's say the MSP code works like this, "&M(xxxxx)" is sent to >the parser (probably can even have a patch within the parse_color to >branch off if sees that the code is MSP) and then it sends !!MUSIC(xxxxx) >to the player, IF they have the appropriate flags. This may sound like a >lot of work, but it's a heck of a lot less work than the method of >extracting, and a lot less prone to crashing. uhm.. i still have problem understanding... if i have "&M(xxxxx)" in a description of a room, if ha player have the flag, they will hear the sound "!!MUSIC(xxxxx)" if they don't have the flag, i have to remove the entire "&M(xxxxx) " or the player will see the (xxxxx). so i still need a procedure to remove a substring. the parse_color is a nidification of if/case that use the & + 2 char... in this case, the (xxxxx) may be different every time. i know, i can use &10 -> &ZZ to convert into a string i have in an array... but i'll have all the problems i explained last time. +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST