Changing a room description.

Blinkis
25 Mar 2013, 23:19Hello, sorry to bother you guys but I need help. I need to find out how to change a room's description if something disappears or is looked at. Thanks for helping, your friend Blinkis.
Example:
"look"
On one of the room's walls, there is a strange symbol.
"look at symbol"
By further examination the symbol appears to be a Zodiac symbol.
"look"
On one of the room's walls, there is a Zodiac symbol.

Example:
"look"
On one of the room's walls, there is a strange symbol.
"look at symbol"
By further examination the symbol appears to be a Zodiac symbol.
"look"
On one of the room's walls, there is a Zodiac symbol.
Asyranok
25 Mar 2013, 23:34This one is mercifully simple.
All you need to do is add a script to the "look at" instead of a description. Create an "if" script.
Wall Object
Look At
IF Wall.lookedat = True (**For the if statement, choose an expression and write out what I just wrote, while changing the parts that apply to your specific story**)
----Then msg "On one of the room's walls, there is a Zodiac symbol."
Else
---- Then msg "On one of the room's walls, there is a strange symbol."
Make sure to create an attribute for the wall. It doesn't matter what you call it, but I called it "lookedat" in this example since it immediately reminds you of its purpose. Set that attribute to boolean, and keep it false by default. This also assumes that you called the wall object "Wall". You will need to put whatever the actual object's name is where I wrote "Wall".
Now, go to the symbol object, and add a script to this object's "look at" field.
Symbol Object
Look At
msg "By further examination the symbol appears to be a Zodiac symbol."
Set Variable attribute Wall.lookedat = True
That should be all you need to do.
All you need to do is add a script to the "look at" instead of a description. Create an "if" script.
Wall Object
Look At
IF Wall.lookedat = True (**For the if statement, choose an expression and write out what I just wrote, while changing the parts that apply to your specific story**)
----Then msg "On one of the room's walls, there is a Zodiac symbol."
Else
---- Then msg "On one of the room's walls, there is a strange symbol."
Make sure to create an attribute for the wall. It doesn't matter what you call it, but I called it "lookedat" in this example since it immediately reminds you of its purpose. Set that attribute to boolean, and keep it false by default. This also assumes that you called the wall object "Wall". You will need to put whatever the actual object's name is where I wrote "Wall".
Now, go to the symbol object, and add a script to this object's "look at" field.
Symbol Object
Look At
msg "By further examination the symbol appears to be a Zodiac symbol."
Set Variable attribute Wall.lookedat = True
That should be all you need to do.

Blinkis
25 Mar 2013, 23:38Thanks, I couldn't find any help in the wiki! I really appreciate your help.
Asyranok
25 Mar 2013, 23:42No problem. Let me know if that works for you.

Blinkis
26 Mar 2013, 00:05Asyranok wrote: Symbol Object Look At msg "By further examination the symbol appears to be a Zodiac symbol." Set Variable attribute Wall.lookedat = True
I have gotten everything down, but this, I am sort of confused by the way it looks, can you help? Thanks.
Asyranok
26 Mar 2013, 00:15For this, go to...
AddScript > Variables > Set variable or attribute >
You will be left with a script that looks like this...
Set Variable BLANK SPACE = "expression" BLANK SPACE
For the first blank, you will type "Wall.lookedat" without the quotations. The second blank space will need "True" without the quotations. Make sure you do not use quotations in the blanks spaces for these or they won't work. I put the quotations there just to separate the phrases from the rest of my sentence.
AddScript > Variables > Set variable or attribute >
You will be left with a script that looks like this...
Set Variable BLANK SPACE = "expression" BLANK SPACE
For the first blank, you will type "Wall.lookedat" without the quotations. The second blank space will need "True" without the quotations. Make sure you do not use quotations in the blanks spaces for these or they won't work. I put the quotations there just to separate the phrases from the rest of my sentence.

Blinkis
26 Mar 2013, 00:24Thanks a ton, I cannot show how much I appreciate your help
. (It works now.)
