I'm trying to set a variable to a list of spells, like
set teach_spells fireball curse blindness
ok, I print that out it works fine, now I setup a command script on a mob
which fires on the command practice, which also works, the problem is, I'm
trying to use a new feature that isn't that well documented in the pl6 version
of DG scripts. here's what I have.
if %teach_spells.contains(%arg%)%
say I can teach you %arg%
end
The mob never says that line, I thought maybe the spaces on teach_spells was
throwing it off, I changed set teach_spells to fireballcurseblindness, still
didn't work, I tried changing the if statement to if
%teach_spells%.contains(%arg%), doesn't work, %teach_spells.contains(arg)%
doesn't work either, tried %arg.contains(%teach_spells%)%. Any ideas on how
to make this work ?
Sorren
____________________________________________________________________
Get free e-mail and a permanent address at http://www.netaddress.com/?N=1
+------------------------------------------------------------+
| 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 : 12/15/00 PST