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,