This tutorial will teach you how to set up a tomb trigger that is activated when your Sim begins playing an instrument!
In the picture above, there is a Floor Switch hidden in that room. As soon as my Sim starts playing the piano, the hidden switch will appear!
To make this, you'll need:
•The World Adventures Expansion Pack.
•The [testingcheatsenabled true] cheat activated.
•The [buydebug on] cheat activated.
Read the second post to learn how to require your Sim to play an instrument for a certain amount of time to activate the trigger, and to add a maximum time limit to playing!
If you want to learn how to add multiple instruments to the same lot, or how to create a workaround for any instrument being able to be played on the lot and activate the trigger, read the third post!
First, you'll need to place down any instrument in the room, such as the piano shown in the picture!
Then, if you're building on a community lot, go into the Community Lot Objects section of Build Mode and place a Public Sounds Stereo.
If you're building on a residential lot, you may find the stereo in the [Miscellaneous] subsection of the [Debug] category. The [Debug] category can be found once the cheat has been activated, and you sort out items by function in Buy Mode.
Now, place down the object that you want playing the instrument to activate.
If you can see the stereo, then you can turn it off in Live Mode. So, we need to hide it! You can do this in several creative ways!
First, place the stereo in a place where you can see it and not inside the tomb.
You'll need to make sure that the stereo isn't placed on a community lot that closes down at any time during the day or night!
You'll also need to ensure that there are no stereos that you can see whether or not you're inside the tomb! If you can see it in Live Mode, you can turn them off, and that would ruin the musical trigger if you can do that!
If you don't want anybody to hear the music at all when playing through the tomb, go into Live Mode and set the volume of the stereo to [Low]. Then, go into Build/Buy Mode and Ctrl+Shift+Click the stereo, and change the channel to something quiet, like the [Classical] channel!
Now, place it somewhere that the player wouldn't be likely to hear the music, like in the farthest corner of the lot in a basement 4 stories deep! (Make sure you fog out the room!) You might not be able to completely hide the music, depending on how much tomb you have. However, you can still try and do your best to keep it as far away from the walls of the tombs without letting the player see the stereo!
If you want the player to hear a mysterious music in the tomb, go into Live Mode and set the volume to whatever you want! Make sure it's not too loud or too soft for where you want the music to be heard!
In the picture shown at the top, there is a dark hallway, and at front of the hallway, you can't even hear the music! However, as your Sim and the camera move closer and closer to the room where the music is coming from, the music will get louder and louder, but it's still muffled!
Now, go into Build/Buy Mode, Ctrl+Shift+Click the stereo, and change the channel to whatever channel you want! If you're using a piano, I recommend putting it to the [France] channel, since that channel has music that most resembles piano music!
Now, place the stereo in a small room (1x1 - 1x1.5 sized room) that is touching the walls of the room that you want the music to be coming from. Make sure that the room that the stereo is in will never
be "unfogged," or entered into, unless you can enter that room only after you've played the instrument. Also, make sure that there are no windows in the room that the stereo is placed in, too!
Ctrl+Shift+Click the stereo in Build/Buy Mode, and select [Add the ability to add triggers and activated behaviors].
Now, Ctrl+Shift+Click the stereo in Build/Buy Mode, and select:
[Link Triggers...]»[Turn Off]
Ctrl+Shift+Click the item that you want activated by playing the instrument:
[Link To Activated Behavior...]»(Whatever you want it to do)
Ctrl+Shift+Click the stereo, and select:
[Make unusable by NPCs]
Do the same for the object(s) that the instrument activates.
That way, just in case an NPC comes into the unfogged room and they start playing the piano, they can't activate the object!
And you're done!
Unfortunately, this only works for one instrument. Playing any other instrument on the lot will activate everything that playing the original instrument activates.
However, this could come in handy! If you have a portable instrument with you, you can start playing on say, an abandoned stage or an ancient campground, and you will reveal a secret door that wasn't there before!
If you want to learn how to require a Sim to play an instrument for a certain amount of time before the trigger is activated, read the next post!
If you want to learn how to add multiple instruments to the same lot, or how to create a workaround for any instrument being able to be played and activate the trigger, read the third post!
If you have any questions, please feel free to ask!