View Single Post
  #6  
Old 01-11-2009, 11:28 PM
Neiv
Hill Giant
 
Join Date: May 2008
Location: Colorado
Posts: 238
Default

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");
        		}
    		}
	}
Reply With Quote