Re: DG script help

From: Mark A. Heilpern (
Date: 04/09/99

>Without looking at source too hard, I think the problem is
>    %arg.contains(%teach_spells%)%
>contains a variable within a variable. That is, %teach_spells%, which is the
>argument to your contains-call; I'm not certain subfields (the data with
>()'s of
>a variable) get processed as variables. You MAY be able to correct this by
>swapping the order of "if (text_processed...." and "else if
>(!str_cmp(field, "global"....."
>in find_replacement(). Then again, that might not work, I just don't have
>the time
>to test it out. Sorry.

Ok, I tested it, and it didn't work.
If you're interested in seeing if their argument is in the list of spells, you
could check for:
    if (large-list /= search-item)


   if (%teach_spells% /= %arg%)
      say I can teach you %arg%

     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  |

This archive was generated by hypermail 2b30 : 12/15/00 PST