Hey!, I tried to correct my scripting, but I still have problems with it... when I write all the cool_thing command, I want to give multiple actions to a hotspot, but what happens is that only the first message appears when I click on it.
Again, this is what I wrote....
// script for hotspot4: Look at hotspot
int cool_thing;
if (cool_thing == 0) {
Ã, Display("The TV is off.");
}
if (cool_thing == 1) {
Ã, Display("You can see your reflection.");
}
if (cool_thing == 2) {
Ã, Display("Your reflection is sexy!");
}
if (cool_thing == 3) {
Ã, Display("You can't see anything else.");
}
if (cool_thing < 3) {
Ã, cool_thing += 1;
}
I think that the wrong part is the last one:Ã,Â
if (cool_thingÃ, < 3) {
Ã, cool_thing += 1;
}
Can somebody tell me what's wrong please??? ??? thanks!
What if you put 'int cool_thing;' in the top of your room script, right after the line that reads '// room script file' ? So then your room script would be following...
// room script file
int cool_thing;
// script for hotspot4: Look at hotspot
if (cool_thing == 0) {
Display("The TV is off.");
}
if (cool_thing == 1) {
Display("You can see your reflection.");
}
if (cool_thing == 2) {
Display("Your reflection is sexy!");
}
if (cool_thing == 3) {
Display("You can't see anything else.");
}
if (cool_thing < 3) {
cool_thing += 1;
}
I think that the wrong part is the last one:
if (cool_thing < 3) {
cool_thing += 1;
}