Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: {5} Daft text adventure project

by jeroenes (Priest)
on May 29, 2001 at 18:41 UTC ( #83952=note: print w/replies, xml ) Need Help??


in reply to Re: Re:{3} Daft text adventure project
in thread Daft text adventure project

Now I see. I think. Indeed you don't need fancy undo stuff for that. Just save all choices in a temp. variable, and let the user play around with it. Make sure to reset depending properties when certain choices are changed. Than only after a "Are you sure?" and "Are you really really sure?" you save those temps in the character and let the play begin.

Hope this helps,

Jeroen
"We are not alone"(FZ)

Replies are listed 'Best First'.
Re: Re: {5} Daft text adventure project
by Tiefling (Monk) on May 29, 2001 at 18:53 UTC
    Exactly. What I'm looking for is a Way to Do the core program loop, so that completing a given character aspect goes down a step, and selecting 'back' takes you up a step, producing a new temporary flavour of the previous option which will ultimately replace the previous choice. (Note that while most computer RPGs use this kind of structure, the 3e character generator on the CD with the Player's Handbook doesn't, and I dislike it the more as a consequence. (Names are locked in first, believe it or not. Doh!))

    Tiefling

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://83952]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2020-12-05 05:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you use taint mode?





    Results (63 votes). Check out past polls.

    Notices?