Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

llToLower guidance - Linden AIML

Ennui Nitschke
Registered User
Join date: 28 Jun 2006
Posts: 2
01-07-2009 05:44
Hello! I'm trying to modify the Linden AIML script (a LSL port of the Artificial Intelligent Markup Language) and I'm having a bit of trouble figuring out just where & how to properly use the llToLower function so that the script will behave properly.

The script itself listens for chat input & then looks to see if that input matches the text in a notecard. Out of the box, the code will only find a match if the case of the typed text exactly matches what's on the card (ie, AFK must equal AFK and not AFk or aFk). I'm trying to make the entire script case insensitive (ie, AFK will match to afk, AfK, aFk, etc).

I've had some success with this in one area of the script (the <override> area). I have the script set to convert the input into lower case & then try to match it against the notecard. It works like a charm. Now, if I can just figure out how to do the same thing with the <pattern> section of this thing, I'll be able to move on to other hairpulling areas hehe ;)

I'm sure it's something really simple, but I've tried it 20 ways on my own and I'm never quite sure of what I'm doing so I thought I'd ask for some help.

You'll find the script here:
http://pastebin.com/m54bdfee7
and the "filename" notecard here:
http://pastebin.com/m3cd7fa05

Any help would be most appreciated!
Thanks!!
- Ennui Nitschke
Ennui Nitschke
Registered User
Join date: 28 Jun 2006
Posts: 2
01-07-2009 07:57
Nevermind, finally ferreted it out ;) It was embarassingly simple, of course... All fixed!