Uh.
The buttons still weren’t working before Christmas, so I decided to leave it until the New Year. Now I need help.
Basically, when I press the button, Inform says “Nothing obvious happens”. Every time. I even changed the code to a slightly different version of Eleas’ code, and it still didn’t work. Here’s the code:
A button is a kind of thing. It can be depressed or undepressed. A button is seldom depressed.
Pressing is an action applying to one thing.
Understand "press [something]" as pressing.
Check pressing:
if the noun is not a button:
say "[The noun] isn[']t a button." instead.
The RMG is part of the Sub walls. Understand "Random Memory Grab" as the RMG. It is a device. The printed name of the RMG is "Random Memory Grab". The RMG is powerful.
The Get Memory button is a button. The Get Memory button is part of the RMG.
Instead of pressing the Get Memory button:
if the RMG is powerful:
if the RMG is connected:
now Childhood_memory_4 is in the memory stick;
say "Random memory (childhood_memory_4) successfully transferred to Memory Containment Device.";
otherwise:
say "A message appears on the screen: 'Not enough power to perform memory grab.'";
otherwise:
say "You press the button, but nothing happens."
The Testing Ground is a room.
The Sub walls are in the Testing Ground.
If you want to know about the memory stick code, check this topic: [url]https://intfiction.org/t/help-with-defining-new-actions/736/1] ,and refer to Endosphere’s code for the end result.
Hope you guys can help me with my coding again,
Pe-ads