I don’t get it. I define a Class myobject(10); and obj=myobject.create(); move obj to player; results in a “Store out of dynamic memory” error when I do “inv”. What am I doing wrong?
What you’ve posted does not look wrong. You’ll have to supply more information.
This compiles and runs without errors:
Include "Parser";
Include "VerbLib";
Class myobject(10);
[ Initialise obj;
location = Kitchen;
obj=myobject.create();
move obj to player;
];
Object Kitchen "Kitchen"
with
description "This is a room.",
has light;
Include "Grammar";
Ah… Short_name was too long. Sorry for bothering.