Habitica Wiki
Habitica Wiki
Advertisement
Habitica Wiki



Experience Potion and Mana Potion[]

by @mike_the_monk

Summary[]

Health Potions are already built into Habitica. What about Experience and Mana Potions? Sure, you could use Fix Character Values to mimic the effect of these potions, but it's easier to use this script below to add either of them (or both) to your Custom Rewards.

When you click each custom reward, it will grant you either +150 XP in the case of the Experience Potion or +30 MP in the case of the Mana Potion, though you may have to sync Habitica before the results appear.


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.


Experience Potion details[]


As you gulp down this golden liquid, you feel a rush of insight. Your recent experiences seem so clear and obvious now, and you're that much closer to your next level.

Experience Potions are a Reward that cost 25 gold. An experience potion will instantly give you 150 experience points (XP) upon purchase (though you may have to sync Habitica before the XP appears).

These potions unlock at level 21, trying to use them before that level will refund your gold and give you an error message (as a private message). You are limited in the number you can buy per day and cannot gain more than 1/3 of the XP needed to get to the next level to ensure you can't gain too much XP just from these potions. The table below shows how many Experience Potions you can buy each day at a given level.

Max XP Potions you can buy per day 1 2 3 4 5 6 7 +
Levels 21-38 39-52 53-63 64-73 74-83 84-91 92-99 And so on

Trying to buy more potions than these limits will refund your gold and give you an error message (as a private message).


Mana Potion details[]


You feel a surge of energy as you swallow this sapphire liquid. Your Mana is restored and you can use your class skills sooner.

Mana Potions are a Reward that cost 25 gold. A mana potion will instantly give you 30 mana points (MP) upon purchase (though you may have to sync Habitica before the MP appears). If you are close to your maximum Mana, the potion will fill you to the maximum but not beyond it and send you a private message letting you know. If you are already at the maximum, the potion will have no effect to your MP, instead refunding your gold and sending you a message.

These unlock at level 11 because Mana unlocks at that level, trying to use them before that level will refund your gold and give you an error message (as a private message). You are limited to purchasing four per day. Trying to buy more than four will also refund your gold and give you an error message.


First-Time Setup Instructions[]

Code[]

Required Customizations[]

Which of these custom potions do you want to create? You can create one or both.

  • CREATE_EXPERIENCE_POTION will create the Experience Potion custom reward if the value is set to 1 (which is the default). If you don't want the Experience Potion, change the value to a 0.
  • CREATE_MANA_POTION will create the Mana Potion custom reward if the value is set to 1 (which is the default). If you don't want the Mana 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

  • 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

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