Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Re: Daft text adventure project

by Tiefling (Monk)
on May 29, 2001 at 18:46 UTC ( #83956=note: print w/replies, xml ) Need Help??


in reply to Re: Daft text adventure project
in thread Daft text adventure project

Tell me about the data dumper, please, brother. The aforementioned hacker friend said that there was a capacity for hash-dumping, and if the first draft of the program is to retain the current way of handling the data, such a facility would be ideal. I've tried to find out about this before, and failed. (Don't say 'use Super Search', because I'm wasting office time on this thread already, and I don't have a home connection ... yet. I'll do a proper search for all these things later - I greatly appreciate the input of my fellow monks right now. Bless you all.)

1) Ok, I believe you all about use strict. :-)
2) This is clearly what I have to learn next.

3) Absolutely. It struck me that I'm going to have to recode the room data by hand, because I'm going to want the olfactory, visual, auditory and tactile/environmental data of each room to be accessible in bits, to allow for the spells blindness and deafness, not to mention darkness and other environmental effects. Clearly, using a format that will enable me to add other such elements later without another re-write is essential.

Thanks!

Tiefling

Replies are listed 'Best First'.
Re: Re: Re: Daft text adventure project
by mbond (Beadle) on May 29, 2001 at 19:35 UTC
    this is a real simple breakdown of the code ...

    its quite simple to do, and not very difficult to figure out :)

    to read a file:
    $filename = "$player_dir/$temp";
    do($filename);

    to save a file:
    print FILE Dumper \%myhash;

    Mbond.

Log In?
Username:
Password:

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

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





    Results (63 votes). Check out past polls.

    Notices?