ES2 MUD LIB :: 東方故事二(ES2) 天朝帝國 mudlib 瀏覽展示
/doc/lfuns/start_busy
start_busy(5) ES2 Mudlib Functions start_busy(5)
NNAAMMEE
start_busy() - set the character into busy state by wait-
ing or calling specific function in its heart_bear, ignor-
ing original tasks done by heart_beat (combat...etc.).
SSYYNNOOPPSSIISS
varargs void start_busy( int hb_count | function
busy_func, int min_count | function intr_func );
DDEESSCCRRIIPPTTIIOONN
If the first argument is an integer, the character will be
busy for hb_count heart beats. If the first argument is a
function, the function is called every heart beat until it
returns zero. Some commands and/or actions check for a
characrter's busy state before they take further process
of command, and prevent players from doing something when
busy. For the busy-state system to work correctly, any
actions yielding a busy state must check for busy state
before they set player into busy state.
The second argument is optional, which specifies the mini-
mum heart beats before the busy state can be interrupted.
If it is an integer, interrupt will be accepted after
min_count'th heart beats of this busy. If it is a func-
tion, interrupt will be accepted only if the evaluation of
intr_func returns non-zero.
Note that some interrupt are non-ignorable: all interrupt
reasons started with '*' are always accepted.
AAPPPPLLIIEEDD
F_ACTION
ES2 9 Sep 1997 1