Thread: qglobals
View Single Post
  #1  
Old 01-21-2009, 02:45 PM
Richardo
Banned
 
Join Date: Oct 2003
Location: Mattmecks Basement
Posts: 546
Default qglobals

I am trying to understand Global Variables. Would this work? If not, why?

Code:
sub EVENT_SAY
my $conversation = $qglobals{remember_conv};
{
if($text=~/hail/i && $conversation = "0")
{
quest::setglobal("remember_conv", $conversation, 5, "F");
quest::say("I will remember you, next time you hail me!");
}
if($text=~/hail/i && $conversation = "1");
{
quest::say("We have talked before!");
}
}
Reply With Quote