Problem starting dialog (Talk to character does nothing)

Started by MVP7, Sun 30/08/2009 00:48:09

Previous topic - Next topic

MVP7

I'm going through AGS tutorial but I got stuck at the end of getting started part 8. I have no idea what is wrong but when I try to "talk to" character absolutely nothing happens. I have double-triple checked all dialogs, character and dialog names and room script but can't find anything wrong

Here is  entire room script:

// room script file

function hHotspot2_Look()
{
Display("Se on tavallinen ikkunaton ja oveton tiilitalo");
}

function oKey_Interact()
{
player.Walk(159, 206,  eBlock);
oKey.Visible = false;
player.AddInventory(iKey);
Display("Ilmainen avain!");
}

function cMercantti_Talk()
{
dMer.Start();
}

These last four lines are supposed to start dialog named dMer after talking to character Mercantti (Real name: MERCANTTI, Script name cMercantti) , but using Talk to, on Mercantti does nothing. There is no error messages when starting game. I'm rather sure I have folloved the tutorial conscientiously.

Here are also the first lines of that dMer dialog:

// Dialog script file
@S  // Dialog startup entry point
EGO: "Terve!"
MERCANTTI: "..."
return
@1

Tijne

There are a number of small things that could go wrong;  these are just merely a few suggestions to look out for:

Is the character's "clickable" value set to true?  Can you do other things to the character, such as looking at them?

Are you sure you're using the TalkTo mouse mode on the character; that your cursor isn't set to something else?

Are you sure that the cMercantti_Talk() function is linked to the actual "Talk to" function in the character editor?

Are you able to tell if the cMercantti_Talk() function runs, or if the dialog is the portion that isn't running? (Try putting in like a "player.SayBackground("Thispartworks");" portion in the script right before dMer.Start();)



Vince Twelve

Quote from: Tijne on Sun 30/08/2009 02:46:19
Are you sure that the cMercantti_Talk() function is linked to the actual "Talk to" function in the character editor?

I almost guarantee it's this one.  Especially if the function is in the room's script.  Character interaction functions must be in the global script.  Open up the character's screen, switch to the interactions, and make sure that the function listed next to "Talk to" matches a function in the global script.  :)

MVP7

Quote from: Tijne on Sun 30/08/2009 02:46:19
Is the character's "clickable" value set to true?  Can you do other things to the character, such as looking at them?
Are you sure you're using the TalkTo mouse mode on the character; that your cursor isn't set to something else?
Are you sure that the cMercantti_Talk() function is linked to the actual "Talk to" function in the character editor?
Are you able to tell if the cMercantti_Talk() function runs, or if the dialog is the portion that isn't running? (Try putting in like a "player.SayBackground("Thispartworks");" portion in the script right before dMer.Start();)

Character is cliclable. I have tried talk to cursor (and every other cursor too) propably hundreds of times now on every single pixel of Mercantti.

But that function linkin thing sounds like something that could be wrong (never even heard of it ::)) I put that "thispartworks" line to script:

function cMercantti_Talk()
{
player.SayBackground("Thispartworks");
dMer.Start();
}

But nothing happens. How do I do that linking stuff?

MVP7

OK problem solved. I hadn't linked talking to character to talk to cursor click as you both thought (and I also moved the script to global script), now it works. Thanks for help!

SMF spam blocked by CleanTalk