pete286/state.jor

20 lines
506 B
Plaintext
Executable file

0 const JEANNE-ANGRY
1 const CHUCK-GONE
2 const CHUCK-FOLLOW
3 const CHUCK-HOME
3 const LAST-STATE
array flags LAST-STATE 8 / 1 + allot
: flagstof ( f -- v f ) dup 8 % 1 swap << swap 8 / flags + swap ;
: flagsf! ( b f -- ) flagstof f! ;
: state@ ( b f -- ) flagstof f@ ;
: setstate 1 swap flagsf! ;
: clearstate 0 swap flagsf! ;
16 18 W ' {horse} defentity p_chuck
:noname
:| player yield
CHUCK-FOLLOW state@ if p_chuck yield then
done |; ' party redefine
; ' onload redefine