Summary[]
The "Buff Limiter" script allows users to set upper and lower limits on their buffs and run automatic checks every few minutes. If their buffs fall outside the limit parameters, the script automatically adjusts them back to the limits.
Code[]
You can find the code here: Google Apps Script
Things to Know[]
- Once you install the script, it will run automatically at the intervals you've set in the
LIMITER_FREQUENCY
variable - Each time it checks and finds your buffs are outside the limits, the script will set your buffs to be within the limits
- If you have a
BUFFER_PERCENT
, the script will set your buffs below your upper limit by that amount - Any stat buffs that are within the limits when the script checks will not be changed
Installation[]
Click this link for the code and follow the instructions in Setting Up Streamlined Scripts, or follow the step-by-step setup instructions below.
Create the script[]
- Click here to go to the Buff Limiter script.
- If you're not already logged in to your Google account, you'll be asked to sign in.
- Go to the "Overview," the top tab on the left side (a circle with an “i” inside)
- Click the "Copy" icon on the far right (two papers)
- Rename your new script, removing “Copy of”
- Save the script (disk icon)
Personalize the script[]
- Open your API Settings. Highlight and copy your User ID (it looks something like this:
377a4d3d-c55c-48b8-9bf8-59b97480daf8
). In the Reschedule Tasks script, paste your User ID between the quotations where it saysconst USER_ID = ""
.- It should now look something like this:
const USER_ID = "377a4d3d-c55c-48b8-9bf8-59b97480daf8"
.
- It should now look something like this:
- On the same page where you copied your User ID, click the "Show API Token" button, and copy your API Token. In the Google script, paste your API Token between the quotations where it says
const API_TOKEN = ""
.- It should now look something like this:
const API_Token = "377a4d3d-c55c-48b8-9bf8-59b97480daf8"
.
- It should now look something like this:
- Enter your buff limits
- Enter your desired
FREQUENCY
(the number of minutes between checks, e.g., "check my buffs every 10 minutes"). - Enter your desired
BUFFER
(the % below your limit to which you'd like to lower your buffs, e.g., "lower to 10% below my buff limit") - Save the script (disk icon)
Run the Install function[]
- Ensure that the
install
function is listed in the drop-down menu to the right of “debug” - Click “run,” to the left of “debug”
- You should see "Execution completed" in the Execution Log.
Gratitude[]
To @Mike_the_Monk and @bumbleshoot, for helping me level up my coding, and for creating fantastic scripts for me to pilfer good code.
Contact[]
Please message @benniefolyfe for questions, suggestions, or troubleshooting. I'm happy to help!