Triggers changing upper/lower cases

Posted by Simon on Sat 30 Jun 2001 12:39 AM — 2 posts, 15,017 views.

Sweden #0
Hi

I am trying to do a trigger that does this:
trigger on: [Court] *: !aura
do:
change %1 into lowercase
aura %1

Anybody got some clues on how I should do? I've been trying and trying but all have failed :\

/Simon
Australia Forum Administrator #1
A small script will do the trick.

Give the trigger a name (eg "aura") and tell it to run script "OnAura". Add the script below to your script file. This example is in VBscript. You will need to enable scripting.


sub OnAura (strTriggerName, strLine, arrWildCards)
dim person

  person = arrWildcards (1)  ' get first wildcard
  person = lcase (person)    ' make lower case
  world.send "aura " + person  ' send message

end sub