Games-Axmud

 view release on metacpan or  search on metacpan

share/help/axbasic/keyword/waitalive  view on Meta::CPAN

WAITALIVE [ expression ]

   Synopsis:
      Pauses execution until the character's life status is 'alive'

   Notes:
      The Status task recognises four states of being for the character:
         "alive", "sleep", "pass_out" and "dead". Whenever the character is not
         asleep, passed out or dead, they're considered alive.
      The expression is a timeout measured in seconds. If specified, the script
         gives up waiting after that period and resumes execution.

      WAITALIVE relies on the Status task to supply the character's current life
         status. If the Status task is not running, the Axbasic script pauses
         briefly and resumes execution on the next task loop.
      If the Status task doesn't know about the character's status, it assumes
         that the character is alive.
      See also the help for WAITSLEEP, WAITDEAD and WAITPASSOUT.

   Requires:
      If the script is not being run as a task, the WAITALIVE statement is
         ignored (and no error message is generated). Execution continues with
         the next statement.

   Examples:
      WAITALIVE
      WAITALIVE 100



( run in 3.420 seconds using v1.01-cache-2.11-cpan-39bf76dae61 )