So, I have 2 characters (one player and one NPC), and I made a short Dialog for them.
I go to the non-player character, and click on "Events", and then click on "Talk to character", hoping to ".Start" the dialog when the character is spoken to.
AGS takes me to the GlobalScript, but instead of taking me to the bottom of the script and adding "function cCharacter_Talk", it puts my text cursor at the top, where it says "function initialize_control_panel".
Sooo...I tried adding "function cCharacter_Talk" manually at the bottom of the GlobalScript and tell it to "start" the dialog when the character is spoken to.
So the script is there now, but when I run the game and try it out, nothing at all happens....
There is no sound yet in the game and I'm not trying to put sound in the game right now, I just want the text to show up. But it will not show up.
I am using the Monkey Island style of dialog.
Also, I tried using the other character events, like "look at" and "interact", and they work just fine. Just "talk to" doesn't work. ???
This is mostly a guess because I don't know exactly how your game is set up.
I think maybe the event binding got messed up at some point. It's supposed to just add a binding when you click on the "..." for the first time, but if there's something in the text field, it'll try to take you to that function instead. If the function doesn't exist, that could explain why it's taking you to the top of the module.
You've added a cCharacter_Talk function. Now you just need fix up the second step that AGS would normally do implicitly. Go to the events pane and make sure that cCharacter_Talk is listed next to the "Talk to character" event, e.g.:
(http://i.imgur.com/Sl9b0gt.png)
If the function name is not correct, you can actually click in that text field to change it manually to the correct function. Just type the correct cCharacter_Talk in there. It might be best to copy and paste it from your code so you know it's exactly the same. If it's hooked up correctly, the "..." button should take you to the right function again.
Hope this helps.
OMG thanks that worked!!! what a simple solution. I thought I might have to reinstall AGS or something. Nobody else seems to have gotten this problem.
I really don't know how it got messed up like that....
Anyway whew thanks, very grateful for your help :-D (laugh)