I've an NPC in a room, and none of the interactions I've set are working.
I've got this in the global script:
function cReceptionist_Interact()
{
cSalvComp.Think ("I don't he'd help me if I beat him.");
}
function cReceptionist_Look()
{
Wait (80);
cSalvComp.Think ("That's the receptionist.");
}
function cReceptionist_Talk()
{
cSalvComp.Walk (326, 319);
dSR1.Start ();
}
And none of them are working. I don't know why. I set them through the action menu (the one with the light bolt).
I even copied and pasted a copy of these functions into the room in which cReceptionist resides.
I looked through the manual, I searched the forums and I've looked through the wiki and found nothing. I assume I've made some sort of fatal error that nobody else makes.
Does anyone know how to fix this?
You may have made a mistake in the actions menu. You don't need to get these functions in your room script. Just delete the functions, delete the called function line from the action menu and have the action menu create a new one all over again, then place your code back in your script...
If beomoud's advice doesn't work (and I don't see why not) then you may want to check whether or not you changed the Clickable property for cReceptionist.
~Trent
Thanks guys.
It all working now.