Skip to content

Develop Initialization Script #14

Description

@z3d6380

Initialization script will set up:

  • Directory agnostic using $PWD to determine the working directory of the game so stats (HP, XP), inventory, and notes can be saved into corresponding files.
  • Initialize HP and XP
    • Both HP and XP files start with -1 to indicate 'New Game'
    • HP set to 100 and decrements with hit points or increments with heal function (+33). Heal can be used 3 times
    • XP set to 0 and increments with the auto-notes from plot advancing objects or manual user notes (based on wc -l of notes)
  • Initialize certain global functions such as save, notes, inventory, heal, and stylize (if possible) so that they can be accessed regardless of working directory
  • Initialize PS1 prompt to show character name, HP, and XP

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

devFeatures that need to be developed

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions