LUNY.CO.UK

Mikro-Gen:Pyjamarama

The Actions

Actions are continously tested and can be anything from picking up an object to leaving a room. This means any of the games puzzles are created with actions.
82C3TABLE OF PTRS: ACTIONS
 Each word makes up an address of the actions available for each room.
 
  
  Each action script is broken up into action tests. Each test is terminated by FE. The engine works like this:
 
1ST BYTEPARAMETERSMEANING
[00],X,YTEST(wally==(x,y))
TRUE - get next byte
FALSE - SCAN STRING UNTIL==FE
[01],X,YTEST(*(f169)==0 && wally==(x,y))
TRUE - get next byte
FALSE - SCAN STRING UNTIL==FE
[02],OBJTEST(carry==OBJ)
TRUE - next byte
FALSE - SCAN STRING UNTIL==FE
[03], TEST(*(F16A)!=0)
TRUE - get next byte
FALSE - SCAN STRING UNTIL==FE
[FD],nnJUMP TO VECTOR(nn)
[FE], END OF TEST - GO TO NEXT BYTE
[FF], END