Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Gaming > Development Programming Algorithms > Re: How do I tr...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 5 Topic 621 of 679
Post > Topic >>

Re: How do I track tasks completed in a non-linear time line?

by nathan@[EMAIL PROTECTED] (Nathan Mates) Mar 3, 2007 at 01:49 AM

In article <1172884811.592475.141260@[EMAIL PROTECTED]
>,
Ultrus <owntheweb@[EMAIL PROTECTED]
> wrote:
>In my quest to understand the dreaded RPG better (only because it's
>big), I'm curious about how data or sequence of events is stored/
>tracked in a non-linear storyline. How does the game know that I
>need to get a special blend from the half baked baker, before I
>present a big feast at the annual farm festival?

   Off the top of my head, I'd say that there's a big list of quest
scripts, each of which has an internal state machine. (If you don't
recognize that term, go read
http://en.wikipedia.org/wiki/Finite_state_machine
or
http://ai-depot.com/FiniteStateMachines/
). At the start of the game,
all quest scripts are reset to their startup state, and maybe one
script is activated (for a singleplayer game).

   The script keeps track of what has happened, and when condition X
is satisfied, it goes into state Y. Talking to someone may set a
script from 'startup' to 'get item X' state. When you have it, it goes
to 'deliver it to Y' state. The game doesn't care what each of the
individual scripts does, as long as they all get notifications so they
can update their state. Multiple scripts can be in various states at
once just fine.

Nathan Mates
--
<*> Nathan Mates - personal webpage http://www.visi.com/~nathan/
 
# Programmer at Pandemic Studios -- http://www.pandemicstudios.com/
# NOT speaking for Pandemic Studios. "Care not what the neighbors
# think. What are the facts, and to how many decimal places?" -R.A.
Heinlein
 




 5 Posts in Topic:
How do I track tasks completed in a non-linear time line?
"Ultrus" <ow  2007-03-02 17:20:11 
Re: How do I track tasks completed in a non-linear time line?
nathan@[EMAIL PROTECTED]   2007-03-03 01:49:59 
Re: How do I track tasks completed in a non-linear time line?
Miss Elaine Eos <Misc@  2007-03-03 15:55:58 
Re: How do I track tasks completed in a non-linear time line?
"Ultrus" <ow  2007-03-03 08:20:50 
Re: How do I track tasks completed in a non-linear time line?
"Jim Langston"   2007-03-03 11:20:02 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 18 19:40:32 CDT 2008.