Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Re: Re: Daft text adventure project

by swiftone (Curate)
on May 31, 2001 at 00:10 UTC ( #84362=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $characters{'Bob the Fighter'}->{'Feats'}= [ 'Strong Spit', 'Perl Guru
    +'];
    # or
    @feats = ('Strong Spit', 'Perl Guru');
    $characters{'Bob the Fighter'}->{'Feats'} = \@feats;
    
  2. or download this
    $characters{'Bob the Fighter'}->{'Feats'}->[1];
    #is equal to 'Perl Guru'
    
  3. or download this
    $characters[3]->{'Attributes'}->{'Str'};
    
  4. or download this
    $characters->{'Bob the Fighter'}->{'Attributes'}->{'Str'};
    
  5. or download this
    if($char{Bob}->{Feats}->{'Good With Pointy Objects'}){
        Kill_Bad_Guy();
    } else {
        Die_Hideous_Death();
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2021-01-22 05:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?