nataliapc / msx2daad

DAAD interpreter created from scratch for MSX2/MSX2+ systems using the graphical capabilities of this machines.
Other
35 stars 3 forks source link

Container Objects - AUTOT command issue #22

Open rogeriobiondi opened 4 years ago

rogeriobiondi commented 4 years ago

Hello, Natalia. I have in my DSF file two objects:

define locGaveta 50 - The place 50 is the same number as object

/33 locGaveta 1 Y AGENDA /50 NOTCREATED 20 Y Y GAVETA _

Agenda (notebook) is a regular object Gaveta (drawer) is a container object

The agenda object is inside gaveta.

I implemented the command EXAMINE GAVETA:

EXAMINE GAVETA PRESENT objGaveta LISTAT locGaveta DONE

It lists the objects inside the container object.

In the beginning of the game, the agenda object is inside the gaveta object. I've implemented the GET and PUT inside the gaveta object.

; GET FROM

PEGUE TIRE
NOUN2 GAVETA AUTOT locGaveta DONE

; PUT INTO

PONHA _
NOUN2 GAVETA AUTOP locGaveta DONE

When running the command: "TIRE AGENDA GAVETA" and it executes the AUTOT command. we receive the system message #52.

Thanks

image

I'm developing the game with the ZX Spectrum Next interpreter and seems to be fine.

The PUT function AUTOP seems to be working fine. I could put an object inside the container but cannot remove it after the first action.