I should probably mention that I'm working from the web GUI. I'm not on a Windows system (and don't have access to one) which may limit my debugging ability.
For the first example, the 'this' pointer is the container object 'bin' instead of the target object:
msg ("You hear it rattle down the chute to somewhere else.")
IncreaseScore (10)
MoveObject (this, r28u)
This winds up moving the container instead of the object I am depositing in it.
Does the target object go into the container
after the action callback? If so, is there a pointer to the acted on object?
The new output is...
> give stick to bin
You hear it rattle down the chute to somewhere else.
> goto r28u
This is a gray room with a yellow floor.
There is a hole in the ceiling. It is too small to fit through. It looks like a chute comes down from somewhere above.
The is a large open bin here.In the case of the second example (a container close action), the new results aren't still an error:
foreach (thing, this.GetAllChildObjects()) {
RemoveObject (thing)
}
produces this output...
The chest closes with a thump. Your skin prickles slightly with magic.
Error running script: Error compiling expression 'this.GetAllChildObjects()': FunctionCallElement: Could find not function 'this___DOT___GetAllChildObjects()'This must be very close to working... I sense that I am just slightly off on syntax.