Page 1 of 1

Vet macro

Posted: Sun Dec 29, 2013 2:00 am
by Groucho
Problem:
trying to minimize the time between each use of a bandage on 2 polar bear fighting together, i tried to put the interval at 5.5 seconds. what happen is that i fall often on a "That being is not damaged", what cause the macro to use the pause of 5.5 seconds, this even i could probably go to the next step, so healing the next damaged bear without to have to wait on the first not damaged.

Macro is set that way:
double clic bandages
wait for target (set to 1 second)
target first bear
pause of 5.5 seconds

double clic bandages
wait for target (set to 1 second)
target second bear
pause of 5.5 seconds
what i loop, of course.

question:
How do i add a pause of, for example 0.1 second, to make the macro not to wait the indicated pause of 5.5 seconds in my macro, and to go heal the next bear who is damaged, instead of stupidly waiting like it was vet'ing as it is not?

is there a way to ask razor to go immediatly to the next pet to vet it instead of waiting? i tried the sysmessage to make it use a smaller pause, but it keep waiting instead of using something else (in this case, a pause of 0.1 second).

What i tried to have a pause of 0.1 seconds if being is not damage looks like this, but it seems not to really work, i do not know why, tell me waht could be wrong in it:
double clic bandage
wait for target (set to 1 second)
target first bear
if sysmessage not damaged
pause 0.1 seconds
else
pause of 5.5 seconds
endif

double clic bandage
wait for target (set to 1 second)
target second bear
if sysmessage not damaged
pause 0.1 seconds
else
pause of 5.5 seconds
endif
it is with that one that i do not understand. when the message that the being is not damaged appear, it goes to the pause of 5.5 seconds instead of making the one of 0.1 seconds, like if the IF was not here, the macro to check. I must be missing some knowledge.

vet is already hyper slow to raise. ^^

Re: Vet macro

Posted: Sun Dec 29, 2013 2:37 am
by UsualSuspect
you could do if conditional sys message that is not being damaged

Re: Vet macro

Posted: Sun Dec 29, 2013 2:51 am
by Groucho
UsualSuspect wrote:you could do if conditional sys message that is not being damaged
the if message i was talking above is a if conditional message. :) i tried.... the macro seems just not to consider it and make only the else part... :/

Re: Vet macro

Posted: Sun Dec 29, 2013 6:30 am
by Aeris
You could try adding 100 or 500 pause after the target... there is a chance that the sysmessage hasn't registered with razor before the check.

Also, I've always used single worded sysmessage checks. I don't remember why, could have just been a bad dream I had, or that it actually once wasn't working for me with multiple words. Perhaps just try "if sysmessage damaged" but I'm sure someone will come and confirm that a string of words works in sysmessage as well.

Re: Vet macro

Posted: Sun Dec 29, 2013 1:49 pm
by Groucho
Seems to work better, at least for the firsts conditions it works ^^. tnx :mrgreen: !

Re: Vet macro

Posted: Sun Dec 29, 2013 4:27 pm
by Missy B
ok, ive thought about this a little and i think if you set up 2 macros and have them loop around, it would fix this problem. one macro will be for the first animal and the second macro for the second animal.

macro 1

double click bandages
target animal 1
if system message "not damaged"
play macro 2
else
wait (whatever amount of seconds)
play macro 2
end if


macro2

double click bandages
target animal 2
if system message "not damaged"
play macro 1
else
wait (whatever amount of seconds)
play macro 1
end if