Coder Social home page Coder Social logo

rpg-text's Introduction

Run on Repl.it

rpg-text

An object-oriented text RPG based loosely on the rules of Original Dungeons and Dragons.

This project has garnered some attention, and as per the license is completely open-source. Parts of this project are licensed under the OGL (Open Game License), for material that is the property of Wizards of the Coast, LLC.

License

See Licence

Changelog

See CHANGELOG.md

How to use

See HOW-TO-USE.md

Components and Data

Components are defined in the rpglib package. Each component is a part of the game's "engine"

Components may load extra data, from the JSON files in the data folder.

The entry point is the main.py file, in the root directory of the project.

Specifications

See SPECIFICATIONS.md

Maintainers

rpg-text's People

Contributors

ahota avatar peritract avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rpg-text's Issues

Save loading not working.

JSON file resulting from saving seems to be unreadable. Linters didn't pick up syntax errors, so I assume that it must be due to poor use of json's api. Will investigate.

Add support for submaps

Support for submaps is required.

  • Submaps are just like regular maps that are children to specific root map locations.
  • They can be used to display dungeons, indoor houses, etc. Generally, indoors areas, or areas only accessible through another area.

They should have the same format as a regular map, and may have submaps of their own (useful to specify different levels in a dungeon, or floors in a house)

Command to enter a submap : enter <submap-name>

Serializing Items

Items from OD&D, equippable or not should be serialized in items.json, including magic items defined in loot_tables.json

no issue...

can someone here pls transform a game for mobile could ''simplest rpg gametext adventure on pc version'' ple.

serialize the treasures

In treasures.json, need to serialize treasures G-V according to page 46 of the DM's handbook in OD&D

No documentation or usage examples

Hi,

there is no documentation or usage examples (here I mean there isn't any instruction how to use). Can you provide some?

Greetings,
Michał.

Error during character creation

My Python version:

$ python3 -V
Python 3.7.3

I ran python3 main.py from the root of the repo. I entered New Game.

Then:

Please enter your character's name.
> Bob
Please enter your desired job (thief, wizard, warrior, cleric).
> warrior
HP : 1 ; MP : 3 ; STR: 16 ; INT: 11 ; DEX: 9 ; CHR: 13 ; CON: 11 ; WIS: 12
Sum : 72
Are you satisfied with these stats?
Please enter 'yes', 'no', 'reroll', 'save', 'recall' or 'info'
> yes
> 
Traceback (most recent call last):
  File "main.py", line 12, in <module>
    main()
  File "main.py", line 8, in main
    game.next_turn()
  File "/Users/kenny/@code/rpg-text/rpglib/game.py", line 34, in next_turn
    while not self.command_system.parse(command):
  File "/Users/kenny/@code/rpg-text/rpglib/command_system.py", line 53, in parse
    cmd, *cmd_args = command.split()
ValueError: not enough values to unpack (expected at least 1, got 0)

For the last prompt I just hit Enter.

Serializing monsters

Monsters available in the Basic and Expert rulesets of OD&D should be serialized into computer-parsable JSON format. (monsters.json)

Build a dataset of descriptions of fights, locations and NPC interactions to use with natural language processing.

The goal is to use Markov Chains to generate natural language in specific scenarii, whether it's about combat, locations, npc interactions (like greetings, and buying / selling items, not specific story-required dialogue) and so on.

This is totally a side feature, something neet to have, but will require a lot of work to be able to make a large enough dataset to be able to generate natural sounding sentences.

Trying to make a campaign

not much of an issue with the code itself I would just like some more documentation on how to use it

Implement Monster parties

  • Implement MonsterGroup class which should be an iterable of Monster instances
  • Implement AoE attacks (like fireball)
  • Implement Treasure per monster and Treasure per group generation.

Building a Dialogue system

Dialogue system should include :

  • A way to make and save choices
  • Dialogue tree for each dialogue
  • Quest related dialogues

Serialize Spells

  • Implement all OD&D spells
  • Implement Status Effects accordingly.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.