View Single Post
  #1  
Old 12-10-2006, 08:42 AM
Dymerius
Sarnak
 
Join Date: Oct 2004
Posts: 74
Default Quest Globals broken

Since I began using the latest build I've been having a problem with quest globals.

Here is a quick example:

Code:
sub EVENT_SAY{

if($text=~/hail/i && $aflag == ""){
quest::setglobal("aflag", 1, 5, "F");
quest::say("Now Flagged.");}

if($text=~/hail/i && $aflag == 1){
quest::say("You are already flagged.");}

}
In this case, "aflag" will be put into the quest_globals table like it should, but the second If will never execute - the first If executes every time.

Again, these are quest globals that all work with previous builds.

Does anyone know what might be causing this?

Thanks in advance,
Reply With Quote