Yeah so it drinks at 20 prayer left every time without fail (level 52 prayer). I've never coded for scape before but when I attempted to it was hard af so didn't bother but wouldn't this be better randomized? Is it not as simple as making a random function to drink between 1 and 32 prayer points remaining?
You misunderstood the post I linked.
It's based on playersense, where you're at in the dream (and what it prioritizes at the time), and prayer level. You, for instance, can have a player profile that drinks at 'x' amount left that is based on your prayer level without any variation (unless something happens in the dream that is prioritized over it, which may not occur that often if at all). Hence why you see it drink at 20 or whatever i does.
On the other hand, my playersense profile may have me drink at a variation that is also based on my prayer level, with slight preference for a certain remaining amount within that variation. So if I'm 52 prayer as well, I may drink at anywhere from 20-30 or whatever my variance is set to.
Yes it would be easy to code between 1 and 32, but that's bad practice.
@Daddybonker I've changed something within the playersense to make it a bit more apparent. In the next update, it'll be more visible for you (may even change a bit, added new keys).