Ok got a cool little program call TextCrawler so I could load up all the quest files at once and see all thier globals instead of picking through each one indavidualy. Now after seeing the paterns and reading over and over the different posts and tutorials I think I'm starting to understand them. They aren't actualy attached to an NPC or what ever..
They are like a book mark. You create one with it's own unique name and give it a value. You can change that value like from 1 to 0 or what ever you want it to be set for.
Example you write a quest that has to be done before you start another quest. If that quest is complete you can have a global set to 5.
The next quest in the line you can have check that global and if it is 5. If it is, then that npc will allow you to do the quest. If it isn't 5 then he won't let you do it.
Same with the spawns. One NPC can change a global to 1 and in another zone the global can be checked and if it matches up then it will allow you to do his quest or will spawn a mob or what ever you want it to do.
And it is a global so it doesn't matter if it is in the same zone or not.
That is VERY cool. I was reading more into then what there actualy was (making it to complicated)
Thank you, I wish I could have more of an explination about them but it finaly clicked.
One question....
I see when you use something like this:
Code:
quest::setglobal("muadalet",5,5,"F");
I see the identifier "muadalet"
Tha value is next - 5
This one I can't find any information on which is the option... what is that?
I see some show 0 and some show 5 what do those do? Option for what?
Duration - the amount of time this variable will be available.
The global will be available? So, If I have something set the global to a duration of like S3 (3 sec) then that global would only be available for 3 sec? or the value I set it to for 3 sec then it would change?
Sorry have just a few questions.. again thank you.