I am having difficulty in getting any quest to use the quest global values that I enter. I used an example script from the site to set the value to ensure I was doing it right, however I can not under an circumstances write a line of code that will display the value, or even use it to trigger an event.
If I get mysql quest global file though, it is infact in there.... So how do I get it out so I can use it?
Quote:
sub EVENT_SAY {
if ($text=~/hail/i) {
quest::say("Hail to you, lesser being!");
} elsif ($text=~/Set/i) {
quest::say("Setting your stupid var human !");
quest::delglobal("AVAR");
quest::setglobal("AVAR", 1, 7, "Y50");
} elsif ($text=~/Get/i) {
quest::say("Here is your results $qglobals{AVAR} " );
}
}
|
Every time I do get, it just reads the line and omits the value.
I have tried linking it to conditions like
Quote:
if($qglobals{AVAR}) == 1)
or
if(defined($qglobals{AVAR}))
|
I am not sure what I am doing wrong at this point.
Kayen