View Single Post
  #10  
Old 11-15-2010, 11:36 PM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,498
Default

However, you can set the value before hand like this:
Code:
sub EVENT_SAY {
  if ($text=~/set/i) {
    $test_value = 5;
    $test_global = "glob_test$test_value";
    quest::setglobal($test_global,1,5,"M1");
    quest::say("Global set.");
  }
  if ($text=~/get/i) {
    $glob_value = $qglobals{$test_global};
    quest::say("The global $test_global has a value of $glob_value");
  }
}
Reply With Quote