Giter Site home page Giter Site logo

speak-the-spire-talon's Introduction

Speak the Spire

So you've walked your way to the top, but have you talked your way to the top?

This mod lets you do just that: play the game Slay the Spire with only voice commands.

Installation

Note: if you are having any issues, make sure that your speak-the-spire-talon Talon files are up to date! They will not auto update, so periodically you will have to update them manually to get the latest functionality.

There are five different elements that you will need to install to get Speak the Spire up and running. What could go wrong?

  1. Talon Voice software: free, amazing speech engine and Python-based framework
  2. talonhub/community: set of voice command scripts written by the community
  3. brollin/speak-the-spire-talon: (this repo) Speak the Spire Talon voice commands
  4. Slay the Spire, installed via Steam
  5. Speak the Spire Mod, and the mods it depends on

The first two will be familiar to prior Talon users. There isn't anything special about step (3) besides putting this repository inside your Talon user directory, so feel free to skip the next section if doing that is familiar to you.

Installing the Talon side

We will be installing Talon Voice, which is a very powerful voice command framework. If you would like more information about Talon, its installation, and basic usage, refer to the Talon wiki.

  1. Install Talon Voice.
  2. Install talonhub/community one of two ways:
  1. Install speak-the-spire-talon, this repository, the same way that you installed talonhub/community above.
  • with git, inside your Talon user directory: git clone https://github.com/brollin/speak-the-spire-talon speak-the-spire-talon
  • via zip file, by extracting the contents of this zip file into your Talon user directory

You should now have a very powerful set of voice commands available to you to control your computer. You can learn some basic commands on the wiki.

Installing Slay the Spire + mods

  1. Install Slay the Spire with Steam.
  2. Install Speak the Spire and its required mods in the Steam workshop.

Note: You install mods by "subscribing" to them. The required mods are listed on the Speak the Spire mod page, and they are: ModTheSpire, BaseMod, Keyboard Shortcuts, and StSLib.

How to use

TODO: I will expand this section in the future, so for now when in doubt take a look at all of the voice commands in speak_the_spire.talon.

General menu navigation

Generally, whenever you see a menu item or button in the game, you should be able to just speak what you see. For example:

  • On the main menu screen, "play" to begin a game
  • On the main menu screen, "continue" to continue a game
  • On the character select screen, "ironclad", "silent", "defect", "watcher" to select that character
  • On the character select screen, "embark" to begin the run
  • And more, but note that all menu navigation is implemented quite yet!

Event navigation

At the moment, this mod relies heavily on the excellent Keyboard Shortcuts mod. This mod adds numbers for different options, and allows you to press a number to choose that option. So to make choices during Neow's Gift (how every run starts), events, campfires, and more, you can simply say the number of the choice.

If you see a button like "return", "cancel", "confirm", or "proceed", remember that you can just say that word to click that button.

Scrolling

When viewing cards or the map, you can scroll up and down with:

  • "upper"
  • "downer"

General gameplay commands

  • "map" to toggle the map
  • "deck" to toggle viewing your deck
  • "draw"/"draw pile" to toggle viewing your draw pile
  • "disc"/"discard"/"discard pile" to toggle viewing your discard pile
  • "exhaust"/"exhaust pile" to toggle viewing your exhaust pile
  • "end turn" to end your turn
  • "menu" to toggle the in-game menu

Potions

  • "potion" clicks your first potion
  • "potion 1"/"potion 2"/etc clicks that potion
  • "drink"/"throw"/"discard" to use the potion in that way

Note that you first must essentially select a potion by saying one of the first two commands, like "potion". When you do, a potion UI will pop up with different options which you can just say.

Want to close the popup? Just move your mouse somewhere else and click, such as with the "center" command.

Relics

  • "relic" mouses over your first relic
  • "relic 1"/"relic 2"/etc mouses over that relic

Combat commands

  • "player" mouses over your character
  • "enemy" mouses over the first enemy
  • "enemy 1"/"enemy 2"/etc mouses over that enemy
  • "orb"/"orb 1"/etc masses over that orb
  • "one"/"two"/etc selects that card from your hand
  • "use 1"/"use 2"/etc uses that card from your hand on the currently hovered enemy

Combat rewards / boss relic rewards

  • "reward 1"/"reward 2"/etc mouses over that reward

The above command works for combat rewards (gold, potion, card reward) as well as boss relic rewards (the three boss relic options after a boss fight). To actually make the selection, you can click or say the number.

Merchant / shop

  • "shop relic 1"/etc mouses over that shop relic option
  • "shop potion 1"/etc mouses over that shop potion option
  • "remove card"/(and lots of variations) mouses over the "Card Removal Service"

To purchase a relic or potion, use a command from above and then click.

To purchase a card, simply say its number.

Known limitations

Some actions don't have voice commands yet, so you will need to use a mouse or the talonhub/community voice commands. Here are the list of things that aren't supported quite yet:

  • The main game menus have decent coverage, but not yet complete coverage.
  • No way to deselect cards in a multicard selection situation, such as when you use the gambler's brew potion.
  • The shop has some card numbering bugs sometimes, in particular when the Courier relic is in play.
  • In some fights with respawning enemies (slimes, Collector, Reptomancer, etc), the enemy numbering is tricky, so it behaves a little differently.

See something else? It would be great if you could file an issue here on GitHub.

Contributing

This is the Talon portion of the Slay the Spire voice command mod "Speak the Spire". See SpeakTheSpireMod for the mod portion, but note that the majority of the documentation is in this repo.

Please help me make this better by filing issues or submitting pull requests!

Thanks

Special thanks to Mjonkey for the help working out some early issues on Windows!

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.