Swap HP or XP for MP[]
Summary[]
As detailed in this wiki page on custom rules for Habitica, a player who finds that they need more motivation to avoid bad Habits might want to swap Health for Mana; having less Health could motivate them more to avoid bad Habits, and additional Mana allows them to use skills more. Similarly, a player could find it motivating to delay leveling up by losing experience in order to heal themselves, especially if using skills more (with more mana) is a greater motivator to a player than leveling up.
This script creates custom Reward buttons that create these custom skills, and you can create one or both.
- Swap Health for Mana allows you to pay 5 HP to gain 10 MP, up to a maximum of 12 times per day. This skill unlocks at level 11, when players unlock Mana.
- Swap Experience for Mana allows you to pay 50 XP to gain 10 MP, up to a maximum XP spent of 1/3 of what's needed to level up. This skill unlocks at level 11, when players unlock Mana.
Note:[]
Please wait 30 seconds between clicking any of the buttons in this script or other scripts. We don’t want to overload the Habitica servers, which can affect everyone, even if they’re not using any of the scripts. If you accidentally click it faster, no worries, I’ve built the code such that if you don’t wait 30 seconds, no code will be executed. So, if you click the button and it seemed like nothing happened, that could possibly be the reason why.
First-Time Setup Instructions[]
- Follow the easy step by step setup guide with pictures
Code[]
Required Customizations[]
Which of these custom skills do you want to create? You can create one or both.
CREATE_HP_FOR_MP
will create this custom skill if the value is set to 1 (which is the default), which lets you pay HP to gain MP. If you don't want the it, change the value to a 0.CREATE_MANA_POTION
will create this custom skill if the value is set to 1 (which is the default), which lets you pay XP to gain MP. If you don't want the it, change the value to a 0.
Optional Customizations[]
NOTIFICATIONS_ON
can be changed to a 0 so you don't get any private message notifications; if you keep it as a 1, you'll get all the usual messages (examples include if you're already at max Mana or exceeded the limit for daily skill usage)
Troubleshooting[]
If you're experiencing issues with the script, please go through the steps listed on this page: Scripts Troubleshooting. Section 3 (Event-Driven (Webhook) Scripts) is especially useful.
If you're not able to resolve the issue, you can contact the author of the script at any of the following places:
- Open an issue on GitHub
- Send a private message in Habitica
Update Instructions[]
- If you already had an earlier version of the script set up previously and want to update to a newer version, do all three parts under Applying Updates to Streamlined Scripts
Credits and Acknowledgments[]
- This wiki page, especially the section on custom rules, for giving the idea of how to use Fix Character Values to create custom skills.
Scripts by the same author[]
Below are scripts that let you customize Habitica. If you plan on using more than one of them, I recommend installing the superscript, which combines all of my scripts into one.
Automated FCV scripts – these do things you can manually do using Fixed Character Values, all at the click of a button
- Experience Potion and Mana Potion - pay 25 GP for 150 XP or 30 MP.
- Anti-Potions - a crowd of onlookers will pay you 25 GP to drink a concoction that somewhat weakens you (-30 MP, -15 HP, or -150 XP).
- Swap HP or XP for MP - pay 5 HP or 50 XP to gain 10 MP.
- Editable Fix Character Values Buttons - an expansion on the first three scripts, creating custom reward buttons whose text you can edit to change what the reward does.
Custom skills – at the click of a button, do something it's not possible to manually do using Fix Character Values
- Cross-Class Stat Buffs - use stat buffs from other classes to buff yourself (but not your Party).
- Cross-Class Skills - use skills from other classes at a slightly higher mana cost.
Game Modes – these activate a game mode which alters Habitica in a larger, ongoing way for you
- Bad Day Mode - some days, it's better to rest than to do all of your tasks. Pressing the button fully heals you, buffs your CON to 9999, and Stealths all your Dailies so you take no damage if you miss them.
- Partial Healing Mode - normally, you fully heal upon leveling up. Players who want an added challenge can instead only partially heal upon level up.
- Dueling Mode - challenge another player to a duel and the script keeps track of your score. Whoever wins gets the GP that both of you wagered.
Just for Fun – customizations more on the silly side
- Transform Yourself Year-Round - why wait until the next Grand Gala to turn yourself into a snowman, flower, starfish, or ghost? Creates buttons that transform you for 15 GP (5 GP to turn back), including a never-before-seen Random Transformation item that randomly turns you into one of the four options.