Page 2 of 3

Re: Brief Guide to Training Stealth (w/Razor Macro)

Posted: Wed Feb 23, 2011 9:08 am
by Althathwe
training stealth with high (90+) hiding.

Code: Select all

Exec: Stealth
Pause 10,20sec
If ( SysMessage "quietly" )
Else
Exec: Hiding
Pause 10,00sec
End If

Code: Select all

!Loop
Assistant.Macros.HotKeyAction|1044107|
Assistant.Macros.PauseAction|00:00:10.2000000
Assistant.Macros.IfAction|4|0|quietly
Assistant.Macros.ElseAction
Assistant.Macros.HotKeyAction|1044081|
Assistant.Macros.PauseAction|00:00:10
Assistant.Macros.EndIfAction

Re: Brief Guide to Training Stealth (w/Razor Macro)

Posted: Wed Feb 23, 2011 9:36 am
by Malaikat
You have an unnecessary "else" statement in there.

Re: Brief Guide to Training Stealth (w/Razor Macro)

Posted: Wed Feb 23, 2011 10:24 am
by Althathwe
Malaikat wrote:You have an unnecessary "else" statement in there.
Nope.

Re: Brief Guide to Training Stealth (w/Razor Macro)

Posted: Wed Feb 23, 2011 12:07 pm
by Malaikat
Uh. Yep.

Else is a conditional statement. You have no condition...just read it in a literal, English translation of the logic you've established:

Code: Select all

IF the system message includes "quietly" or ELSE hide. 
It makes no sense. Proper usage would sound more like so:

Code: Select all

IF the system message includes "quietly" THAN hide or ELSE do something other than hide...
Remove it and let me know if the world implodes.

Re: Brief Guide to Training Stealth (w/Razor Macro)

Posted: Wed Feb 23, 2011 12:54 pm
by Althathwe
If system message include "quietly" than nothing (start from the beginning). Else hide.
Difficult to understand?

Re: Brief Guide to Training Stealth (w/Razor Macro)

Posted: Wed Feb 23, 2011 1:02 pm
by Malaikat
Bah...just have the If check on failure rather than success.

Re: Brief Guide to Training Stealth (w/Razor Macro)

Posted: Wed Feb 23, 2011 1:05 pm
by Althathwe
Malaikat wrote:Bah...just have the If check on failure rather than success.
Just making more difficult?

Code: Select all

If ( SysMessage "quietly" )
Else
it "If (sysmessage not "quietly"). Razor script engine scanty.

Re: Brief Guide to Training Stealth (w/Razor Macro)

Posted: Wed Feb 23, 2011 1:08 pm
by Malaikat
It removes a line of code and is therefore simpler. The else is implied...

Exec: Stealth
Pause 10,20sec
If ( SysMessage "fail" )
Exec: Hiding
Pause 10,00sec
End If

Re: Brief Guide to Training Stealth (w/Razor Macro)

Posted: Wed Feb 23, 2011 1:10 pm
by Althathwe
Malaikat wrote:It removes a line of code and is therefore simpler. The else is implied...

Exec: Stealth
Pause 10,20sec
If ( SysMessage "failed" )
Exec: Hiding
Pause 10,00sec
End If
failed, not hide and other.

Re: Brief Guide to Training Stealth (w/Razor Macro)

Posted: Wed Feb 23, 2011 1:18 pm
by Malaikat
Oops. You're right.

I just checked my macro and you've got to account for failing the hide or being detected, so I had a handful of If statements in mine that would have been unnecessary if I would have used yours. However, your macro wastes 10 seconds waiting for a failed stealth attempt, so mine has a bunch of added code but may be a bit more efficient after all.

Exec: Stealth
Pause 10,00 sec
If ( SysMessage "fail" )
Exec: Hiding
Pause 10,00sec
End If
If ( SysMessage "you can't" )
Exec: Hiding
Pause 10,00sec
End If
If ( SysMessage "you must hide" )
Exec: Hiding
Pause 10,00sec
End If

You could probably clean that up a bit with an else statement for the failed hiding attempt, but whatever.

Re: Brief Guide to Training Stealth (w/Razor Macro)

Posted: Wed Feb 23, 2011 1:20 pm
by Althathwe
Malaikat wrote:Oops. You're right.

I just checked my macro and you've got to account for failing the hide or being detected, so I had a handful of If statements in mine that would have been unnecessary if I would have used yours. However, your macro wastes 10 seconds waiting for a failed stealth attempt, so mine has a bunch of added code but may be a bit more efficient after all.

Exec: Stealth
Pause 10,00 sec
If ( SysMessage "fail" )
Exec: Hiding
Pause 10,00sec
End If
If ( SysMessage "you can't" )
Exec: Hiding
Pause 10,00sec
End If
If ( SysMessage "you must hide" )
Exec: Hiding
Pause 10,00sec
End If
Althathwe wrote:Just making more difficult?
Just making more difficult!

Re: Brief Guide to Training Stealth (w/Razor Macro)

Posted: Wed Feb 23, 2011 1:22 pm
by Malaikat
More difficult yes but also more efficient. It's a better use of time rather than burning 10 seconds on every fail. Probably doesn't matter once you get into the 90s, but at this point I'll grasp at whatever straws I can to save face.

My internet dignity shall be avenged!

Re: Brief Guide to Training Stealth (w/Razor Macro)

Posted: Wed Feb 23, 2011 1:25 pm
by Althathwe
Malaikat wrote:More difficult yes but also more efficient. It's a better use of time rather than burning 10 seconds on every fail. Probably doesn't matter once you get into the 90s, but at this point I'll grasp at whatever straws I can to save face.

My internet dignity shall be avenged!
Failed hiding not have sysmessage.

Re: Brief Guide to Training Stealth (w/Razor Macro)

Posted: Wed Feb 23, 2011 1:30 pm
by Malaikat
Yes it does. "You can't seem to hide here", which is the "you can't" in my macro. Works fantastic.

Re: Brief Guide to Training Stealth (w/Razor Macro)

Posted: Wed Feb 23, 2011 1:32 pm
by Althathwe
Malaikat wrote:Yes it does. "You can't seem to hide here", which is the "you can't" in my macro. Works fantastic.
Yep. I was wrong.

Code: Select all

Exec: Stealth
Pause 10,20 sec
If ( SysMessage "fail" )
Exec: Hiding
Pause 10,00sec
End If
If ( SysMessage "hide" )
Exec: Hiding
Pause 10,00sec
End If

Code: Select all

!Loop
Assistant.Macros.HotKeyAction|1044107|
Assistant.Macros.PauseAction|00:00:10.2000000
Assistant.Macros.IfAction|4|0|fail
Assistant.Macros.HotKeyAction|1044081|
Assistant.Macros.PauseAction|00:00:10
Assistant.Macros.EndIfAction
Assistant.Macros.IfAction|4|0|hide
Assistant.Macros.HotKeyAction|1044081|
Assistant.Macros.PauseAction|00:00:10
Assistant.Macros.EndIfAction
But use "if else" possible.