Welcome to the Creatures Wiki! Log in and join the community.

Talk:FILE OOPE

From Creatures Wiki
Jump to: navigation, search

Output stream behaviour was tested with the following agent (an adaptation from the AERO test agent). I later also added a STOP instruction into script 1 to test if self-terminated scripts retain direction (they do). As the CAOS docs suggest the file was written to even after the second activation.

inst
new: simp 1 1 10643 "hoverdoc" 13 0 2000
attr 198
clik 0 1 -1
pose 0
mvsf mopx mopy

scrp 1 1 10643 1
  setv va00 post
  subv va00 83
  mvsf posl va00
  pose 12
  file oope 0 "ab" 1
  loop
    outs "a"
  ever
endm

scrp 1 1 10643 2
  pose 0
  loop
    outs "b"
  ever
endm

scrp 1 1 10643 4
  file oclo
endm

rscr
enum 1 1 10643 kill targ next
scrx 1 1 10643 1
scrx 1 1 10643 2
scrx 1 1 10643 4

--Alexwatson 12:30, 19 February 2006 (UTC)