
07-29-2011, 02:19 PM
|
Hill Giant
|
|
Join Date: Sep 2006
Posts: 112
|
|
Quote:
Originally Posted by lerxst2112
Well, there's a couple things...
You may have taken the help page a bit too literally. Generally having something in [] in an example is just to show you what that parameter is for. An actual setglobal line should look something like this:
quest::setglobal("bic",1,5,"F");
Also, once you've set it, it won't do anything unless you actually check if it is set somewhere to change how the script operates.
Check out the #Fezbin_Fizzles.pl script in the abysmal directory for a pretty good example of using a qglobal to change how the NPC acts depending on things you've done in the past. There are some other examples of how you might use them to track handins and such in some other scripts there. Just grep for "qglobal" and you should see them.
One last thing, make sure you read and understand the last paragraph on the quest tutorial page. If you don't set the options right or set the NPC up to allow for qglobals you'll have problems.
If you think you have it all setup and it still isn't working, check the quest_globals table in your database. You can verify if it is being set and what the data is there. You can also delete it if you mess up and want to go back to the start.
|
Thanks lerx =)
|