Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Dudeman Thingface on Sun 16/11/2008 00:34:33

Title: NPC not interacting [SOLVED]
Post by: Dudeman Thingface on Sun 16/11/2008 00:34:33
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?
Title: Re: NPC not interacting
Post by: beomoud on Sun 16/11/2008 00:45:52
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...
Title: Re: NPC not interacting
Post by: Trent R on Sun 16/11/2008 01:19:14
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
Title: Re: NPC not interacting
Post by: Dudeman Thingface on Sun 16/11/2008 03:38:43
Thanks guys.

It all working now.