View Single Post
  #1  
Old 01-11-2009, 09:50 PM
Daecor
Fire Beetle
 
Join Date: Feb 2004
Posts: 4
Default qglobals not working for me

hive searched the froums a few time and been playing with the code for around 5 hours and still cant figure out whats wrong i even went into the database and made sure the npc was able to use quest globals

basic idea im trying to do is this
i have a mob that sets the variable
(and indeed it makes it i checked database)
and another to check it and say one thing if its set and another if its not

E.G.
Code:
sub event_say 
 {
   if ($qglobals{var_name} >= 1)
    {
      if ($text =~/hail/i)
        {
          quest::say("blah blah blah");
        }
    }
   else
    {
      if ($text =~/hail/i)
        {
          quest::say("blah2 blah2 blah2");
        }
    }
 }
the prob is nomatter it the variable is set or not the NPC still says the "blah2 blah2 blah2 part anyone have anyidea what im dooing wrong
thank you in advance for any help
Reply With Quote