GithubHelp home page GithubHelp logo

wolfram74 / combat_commander Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 35 KB

command line tool to offload some of the book keeping efforts for table top rpg GMs

License: MIT License

Python 100.00%

combat_commander's Introduction

combat_commander

command line tool to offload some of the book keeping efforts for table top rpg GMs

instructions: while in the "src" directory, run the command

python3 runner.py SCENARIO_ADDRESS

an example scenario can be run with python3 runner.py ./data/demo.json

This will start a session populated with agents featuring at least unique IDs and show the summary of the beginning.

valid commands are

  • next to advance to the next agents turn.
  • summary or ls will display the current scenario status >> indicates agents whose turn it currently is.
  • clear or cls clears the screen of content
  • help lists valid commands
  • ID damaged AMOUNT to deal some amount of damage to a given agent
  • ID healed AMOUNT to heal some amount of damage to a given agent
  • ID add_condition NAME DURATION to apply a condition to a given agent with an optional duration, conditions with durations will be automatically removed from agents when the duration reaches 0 and an alert will flash.
  • ID remove_condition NAME to remove a condition from a given agent.
  • set_order LIST_OF_IDS the list of ids will interpert space separated IDs as having their own turn, while comma separated IDs will have a shared turn. Unspecified IDs will be placed last.
  • exit ends current session
  • exit or end_session ends current session

The scenarios are stored as JSON files for ease of editability and loading. If needed, a variety of JSON editors online exist that will check syntax. To build a scenario from other scenario files, list them in the files field, giving their address relative to the file it's being loaded from. For example:

data/
    main_scenario.json
    sub_scenario.json

to load sub_scenario.json from main_scenario.json you would have the field "files":["./sub_scenario.json"] in main_scenario.json

combat_commander's People

Contributors

wolfram74 avatar

Watchers

 avatar

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.