Hey, i'm having problems using the unhandled_event function... Where am i supposed to write it? I try'd in the Room Script, the global and the interaction script!!!
It goes into the global script. You can just copy and paste this code into it for convenience:
function unhandled_event (int what, int type) {
if (what ==1) {if (type ==1) {DisplaySpeech(GetPlayerCharacter(),"That's not really interesting.");}}
if (what ==1) {if (type ==2) {DisplaySpeech(GetPlayerCharacter(),"I'm not going to touch that.");}}
if (what ==1) {if (type ==3) {DisplaySpeech(GetPlayerCharacter(),"Yikes!");}}
}