View Single Post
  #3  
Old 01-26-2005, 01:15 PM
Cisyouc
Demi-God
 
Join Date: Jun 2004
Location: Heaven.
Posts: 1,260
Default

Quote:
Originally Posted by cavedude
I am working on creating all the starting quests in Rivervale and I have run into a small problem. Many of the NPCs give out multiple quests and will remember your progress. Meaning, you get a quest from a NPC, complete it, go back to him, and he gives you a new one. Somebody else who had never been to this NPC before would of course get the first quest. How could I do this using our Perl system? Would it be done with globals? Thanks for any help.
This can be done using the commands setglobal(); and delglobal();. Search for a post called 'coming soon' in the Quest Q&A forums, probably in the archives by now. Yes, the content of that post has been added to CVS since.
__________________
namespace retval { template <class T> class ReturnValueGen { private: T x; public: ReturnValueGen() { x = 0; }; T& Generator() { return x; }; }; } int main() { retval::ReturnValueGen<int> retvalue; return retvalue.Generator(); }
C++ is wonderful.
Reply With Quote