Habitica Wiki
Habitica Wiki
Advertisement
Habitica Wiki



Anti-Potions[]

by @mike_the_monk

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 potion cropped transparent

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 potion cropped transparent

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 potion cropped transparent

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[]

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:



Update Instructions[]


Credits and Acknowledgments[]


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

Custom skills – at the click of a button, do something it's not possible to manually do using Fix Character Values

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.
Advertisement