Skip to content

A command-line app that helps organize data in an RPG called Sharnon.

Notifications You must be signed in to change notification settings

JaryJay/jaryjay-sharnon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jaryjay-sharnon

A command-line app 💻 that helps game masters organize data in a role playing game 🎲 called Sharnon.

My brother and I invented this game years ago — it's essentially D&D, except simpler and less random.

Features:

  • Detailed character info stored in JSON
    • Name🙂, class🧙‍♂️, equipment⚔️, known spells📜
  • Name generator
    • Randomly chooses a bunch of syllables and puts them together
  • Dice roller 🎲
Input a command ('help' to show commands): roll 8d5

Rolls: [4, 3, 5, 3, 5, 1, 5, 3]
Total: 29
  • Easily define new commands 📌
    • Format:
addCommand(new GameCommand( [command name], [argument labels], [command description], [command length], [action] ));

Command definition example:

 addCommand(new GameCommand("start", "<name>", "Start a session with a given player name", 2, args -> {
		Human player = ActorLoader.loadHuman(args[1]);
		if (player == null) {
			System.out.println("No player found with name " + args[1] + ".");
		} else {
			System.out.println("Starting session with " + player.getName() + ".");
			transitionState(new PlayState(app, player));
		}
}));

Some cool screenshots

Starting a session Describing an actor Names and equipment Adding another actor


What a neat little program, eh?

How to set up

This tutorial assumes that you have Java 1.8 or above, and Maven.

  1. Clone the repository.
  2. Navigate to the directory in your terminal.
  3. Run c.bat
  4. Run r.bat
  5. Voila! You can now use the app. Use command start <name> to begin a session. e.g. start Zey'nar

About

A command-line app that helps organize data in an RPG called Sharnon.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published