okay i made a hotspot on the wall and when i click talk to the wall it says you hear a sound on the other side then it plays a sound. then i want there to be a display box that says you hear no more sounds. all i need help with is how to make it so after all that stuff is done it will just say you hear no more sounds perminatly
The easiest way to do this is to use global ints, they are a collection of numbers you can set and read globally useful for working out if things have happened or not and making decisions. You need to use a different int for each even though
If you picked global int number 130 then the script would be like this:
// Talk to hotspot script
if(GetGlobalInt(130)!=1) {
Display("You speak into the hole you hear a noise coming from the other side.");
PlaySound(soundnumber);
SetGlobalInt(130,1);
}
Display("You hear no more sounds.");
So ya after he gets the score talks to the wall and hears the sound i want you hear no more sounds permintly and this should do it?
i meen i want you to see ''you hear no more sounds''
Yep that should do it unless you want something more advanced, but I think wasting a GlobalInt on this is pointless, as you could just have "int sounds;" or something at the top of the room script, and thus use
// Talk to hotspot script
if(sounds!=1) {
Display("You speak into the hole you hear a noise coming from the other side.");
PlaySound(soundnumber);
sounds = 1;
}
Display("You hear no more sounds.");
Of course this might not be ideal if you want to find out in other rooms if you've heard the sound or not. In that case scotch's script is better. :)