NPC not interacting [SOLVED]

Started by Dudeman Thingface, Sun 16/11/2008 00:34:33

Previous topic - Next topic

Dudeman Thingface

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?

beomoud

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

Trent R

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
To give back to the AGS community, I can get you free, full versions of commercial software. Recently, Paint Shop Pro X, and eXPert PDF Pro 6. Please PM me for details.


Current Project: The Wanderer
On Hold: Hero of the Rune

Dudeman Thingface

Thanks guys.

It all working now.

SMF spam blocked by CleanTalk