View Single Post
  #1  
Old 12-01-2015, 10:13 PM
provocating's Avatar
provocating
Demi-God
 
Join Date: Nov 2007
Posts: 2,175
Default Globals in Globals

So this would work in a normal zone folder....

Code:
my $var = 1;

sub EVENT_SAY {
     quest::say("Var value: " . $var);
}
If I throw this same script in the global folder the script runs fine but the variable value is gone unless of course put it in the same routine. I am sure this has something to do with it actually being a global variable. But in many instances I need that global variable. Ideas?
Reply With Quote