Upon reflection, shouldn't this be rewritten to something like this?
Code:
sub event_say
{
if ($text =~/hail/i)
{
if (defined($qglobals{var_name}))
{
if ($qglobals{var_name} >= 1)
{
quest::say("blah blah blah");
}
}
else
{
quest::say("blah2 blah2 blah2");
}
}
}