Davidmarks wrote:Sorry to be a pain but although I am getting some results from the helpful suggestion I don't really understand why !
I just provided it as code so you could cut and paste, but everything I did there you can do in the editor. Here's how to do exactly the same thing in the editor:
-We're messing with a room description here, so go to the "Room" tab for that room. Change the big "Description" field to "Run a Script".
-Click "Add New Script", and select an "If" statement. After the word "if" you have a drop down of options. Select "object is visible". The next dropdown defaults to "object", meaning it wants the name of an object in dropdown #3. Select the name of your object from the third dropdown (in my example, it was called "thing").
-This creates two conditions, one for the object being visible and one for it being absent. The problem is, if we're carrying it, it's technically visible despite not being a part of the room proper, so we need to account for that. Under "then" for our "if" statement above, click "add new script" and select "if" again, to create a second "if" statement inside the first. This one will differentiate between visible in the room and visible in inventory.
-For our new "if" statement, select "player is carrying object" from the dropdown. Again, leave the second dropdown on "object" and select the object name ("thing") in the third. Under that "if" statement's "then", add two new scripts. The first is "Print a message", where you'll input the message you want (in this instance, the one where the thing is absent). The second is "Show a Picture". Click the browse button, find your picture, and it will pop up in the right place.
-Under "else", do the same thing, with the other message and picture.
-Under the "else" for the first "if" statement, do the same thing again, with the absent version of the message and picture.
That's it. Now, when you switch to code view, it shows you the behind-the-scenes functions that do all that stuff (ListContains, ScopeVisible, etc.). The best way to learn the basic code function, I think, is to do something in the editor, then switch to code view and see what it says. That should help you decipher some of the code stuff.
Davidmarks wrote:Also when I want to delete items I don't know how.
If you are referring to rooms or objects in the game, just click on them in the editor tree (on the left) and push the delete key. It's that simple, but be aware that deleting a parent deletes all its children, too (so deleting a room will delete all the objects in the room too, unless you move them somewhere else first).
If there's something else you're trying to delete, let me know and I'll help if I can.
P.S.- It's no bother, BTW. I'm still learning, and have come on here plenty to ask for help. People here are really helpful about that kind of thing.