Anti-Potions[]
Summary[]
Gain gold at the expense of HP, XP, or MP! Useful for players who wish to gain more gold or they wish to make Habitica more challenging by having less HP, leveling up slower (less XP), or can use skills less often (less MP).
Gamified understanding of it: a crowd of onlookers is willing to pay you 25 GP to drink a foul concoction and somewhat weaken you. Will you choose the orange-brown Draining Potion and lose 30 MP? The teal Fatiguing Potion and lose 15 HP? Or the indigo Stupefying Potion and lose 150 XP?
Draining Potions are a Reward that give you 25 gold at the cost of 30 MP upon purchase (though you may have to sync Habitica before the gold appears). You can only use this potion 4 times per day. They unlock at level 11, trying to use them before this results in an error message as a private message.
Fatiguing Potions are a Reward that give you 25 gold at the cost of 15 HP upon purchase (though you may have to sync Habitica before the gold appears). You can only use this potion 4 times per day.
Stupefying Potions are a Reward that give you 25 gold at the cost of 150 XP upon purchase (though you may have to sync Habitica before the gold appears). You can only use this potion 4 times per day. They unlock at level 21, trying to use them before this results in an error message as a private message.
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 anti-potions do you want to create? You can create all three or pick which one or two you want.
CREATE_DRAINING_POTION
will create the Draining Potion custom reward (anti-MP) if the value is set to 1 (which is the default). If you don't want the Draining Potion, change the value to a 0.CREATE_FATIGUING_POTION
will create the Fatiguing Potion custom reward (anti-HP) if the value is set to 1 (which is the default). If you don't want the Fatiguing Potion, change the value to a 0.CREATE_STUPEFYING_POTION
will create the Stupefying Potion custom reward (anti-XP) if the value is set to 1 (which is the default). If you don't want the Stupefying Potion, 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 potion 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 potions.
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.