This action causes the active creature to walk randomly, staying within the current area. The example script is blbear.bcs; it instructs bears to walk rather than fight if the nearest enemy is a druid.
IF
Delay(5)
See(NearestEnemyOf(Myself))
Class(NearestEnemyOf(Myself),DRUID)
NumCreatureGT([ENEMY],1)
THEN
RESPONSE #100
RandomWalk()
END
{% capture note %} This action will never stop, (unless interrupted in specific situations), and thus never leave the action list. Executes Wait() for a random amount of time, (1–40 seconds), if the creature goes off-screen. Has a 50/50 chance to MoveToPoint(), or do a pass of RandomTurn(), (including RandomTurn()'s wait time).
{% endcapture %} {% include note.html %}
BG2 barrel re-exports.
Generated by ts-update. Do not edit manually.
Uses named re-exports (not export *) so esbuild can statically resolve each binding without falling back to runtime __reExport helpers for externalized .d.ts modules.