Skip to content

JamesOwers/habitica_hacks

Repository files navigation

habitica_hacks

Scripts for habitica based fun

Scripts

Habitica info

party_status.py output

This takes a few command-line options and prints out (optionally) the party status, quest status and achievements.

Example usage:

Your API key needs to be accessible to dl_habitica_info.

echo "my api key" > api_key
echo "my user id" > user_id

Now you can run

./habitica_info -paq

to view the party info, quest status and achievements. Command line options are -p (show party status), -q (show quest status) and -a (show achievements). -h gives the full list.

You can generate reports for previous quests by specifying -q 1 to look at the previous quest, -q 2 to look at the one before, and so on.

[Archived] Battle Summary

Now contained within party status. This script runs against a text file copy of the chat, not the habitica API. battle_summary.py output

Instructions:
  1. Go to Habitica Social > Party, and copy the contents of the party chat into a text file. I've called mine habitica_battle.txt and put it in the Downloads folder; if you choose somewhere different, replace ~/Downloads/habitica_battle.txt in the usage below
  2. Download the python file battle_summary.py
  3. Open your terminal, navigate to where you downloaded it, and run the example usage
  4. The output is in markdown format, you can paste it back into the party chat to get a formatted table
Example usage:
cat ~/Downloads/habitica_battle.txt | python battle_summary.py
Example outputs:
Battle Summary
==============

User               | Damage given | Damage taken | K/D Ratio
-------------------|--------------|--------------|----------
Sooty              | 38.5         | 1.5          | 25.7     
BodgerNBadger      | 4.9          | 3.0          | 1.6      
Sweep              | 102.4        | 2.6          | 39.4     
l00zr              | 11.9         | 0.0          | 11.9     
Mr Blobby          | 29.2         | 3.0          | 9.7      
TRekd              | 64.8         | 2.2          | 29.5     
OakieDoke          | 21.3         | 5.9          | 3.6      

Achievements
-------------
*Best player*:  	Sweep (39.4 K/D Ratio)  
*Bravery*:      	Sweep (3 attacks)  
*Coward*:       	Sooty (only 2 attacks)  
*Damp squib*:   	BodgerNBadger (1.6 K/D Ratio)  
*The Warrior*:  	Sweep (79.8 HP in one attack)  
*The Weakling*: 	BodgerNBadger (3.8 HP in one attack)  
*Useless*:      	BodgerNBadger (4.9 HP total attack)  
*Friendly Fire*:	OakieDoke (-3.1 HP taken from group in one day)  
*Liability*:    	OakieDoke (-5.9 HP total taken from group)  
*Safe bet*:     	l00zr (-0.0 only HP total taken from group) 
Example input:

Input file

About

Scripts for habitica based fun

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published