
08-03-2004, 10:43 AM
|
Developer
|
|
Join Date: Feb 2004
Location: UK
Posts: 1,540
|
|
Quote:
Originally Posted by jimbox114
Example 1 (this one works except when I say god):
sub EVENT_SAY
{
if ($text=~ /Hail/i){quest::say("What do you want from me mortal? Are you here to [test] your strength against me, or do you think your a [God] now? Well speak up, I do not have the time for the likes of you $race now speak up!");}
if ($text=~ /test/i){quest::say("Well if you wish to fight me, draw your blade and strike me. I have slain many adventures who have wandered into my domain, do you honestly think you are any different? Go on, Strike me if that is what you want to do.");}
if ($test=~ /god/i){quest::say("Ha, you have got to be jokeing? Well if you were I guess I could permit you passage to the sacred grounds, but I hardly see any reason for me to do that. Now begone, I don't wish to deal with the likes of you anymore!");}
}
|
You have test instead of text in that one which would explain why when you say 'god' it doesn't work.
|