PDA

View Full Version : conditional attacking based on current encumbrance



gilchristr
05-15-2018, 03:40 PM
I hunt manually, basically, pressing a macro for stanc o/r attack/r.

Occasionally due to forgetting about coins or whatnot I will end up in 40 seconds of round time. What I would like to do, if possible, is have lich check my encumbrance every time and make my attack conditional on one of the lesser encumbrance messages is returned (I would choose a list of the "all clear" encumbrance messages based on the round time that is acceptable).

Can someone point me in the right direction on how to set this up?

Zarston
05-15-2018, 05:39 PM
Uh ... well, it gets complicated real fast depending on what you wanna do, but I guess what you're looking for is something like

;e if percentencumbrance < 25 then fput "target random";multifput("stance offensive","kill");fput "stance defensive";end

Or you can make it a script like ;kill (type your target here) and take out the target random part and have it say

if percentencumbrance < 25 then multifput("stance offensive","kill #{script.vars1} #{script.vars2}");fput "stance defensive";end