Skip to content

#WaitRes

VariableResultRead-onlyBooleanNew in Reforged
Set by
WaitFor

Also searchable as: #WaitRes · WaitRes · waitfor result · timed out

#WaitRes says how the last waitfor ended:

Value Meaning
-1 (#true) The condition was met.
0 (#false) The time ran out.
N/A No waitfor has finished yet in this run.

Pressing Stop during a waitfor leaves it as it was.

#WaitRes has its own variable so that a waitfor doesn’t overwrite #Result, which holds what a sub returned.

event macro 8 7
waitfor #ContName = container_gump 3s
if #WaitRes
event sysmessage The backpack is open.
if ! #WaitRes
event sysmessage The backpack did not open.
halt

See also