unhandled event function

Started by The-Hellfish, Wed 01/09/2004 13:56:02

Previous topic - Next topic

The-Hellfish

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!!!

Bernie

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!");}}

}

SMF spam blocked by CleanTalk