ok, I can't figure this one out. I tried several different things to determine the problem or work around it. I am trying to start a conversation with my Doctor entity where you can choose what you want to say, but I keep running into this strange bug. This is my second "game test" the first one, I had no problem, but when I go and talk to the doctor now, in this new test, the game freezes, the choices don't show and I can't click or do anything else in the game once it reaches this point.
I tried using the code from WME Help:
Game.AddResponse(0, "Hello.");
Game.AddResponse(1, "How are you?");
Game.AddResponse(2, "I'll be going.");
var Res = Game.GetResponse();
and
function MyTestDialogue()
{
var EndBranch = false;
while(!EndBranch) // loop until the player ends this dialogue
{
// fill in the responses
Game.AddResponse(0, "Hello.");
Game.AddResponse(1, "How are you?");
Game.AddResponse(2, "I'll be going.");
// let the player choose one
var Res = Game.GetResponse();
// let the actor say the selected response
actor.Talk(Game.LastResponse);
// and now handle the selected one
switch(Res)
{
case 0:
// some code to handle response #0
this.Talk("Hi mister.");
break;
case 1:
// some code to handle response #1
this.Talk("I'm fine, thank you.");
break;
case 2:
this.Talk("Bye bye.");
EndBranch = true; // response #2 exits the dialogue
break;
}
}
}
But have the same problem. I tried copying and pasting from my previous project as it's close to the same scene, but still have the same problem.
I can make my Doctor entity and my actor talk with out any problems, so it must have something to do with Game.AddResponse or Game.GetResponse.
I've tried using the Molly actor as I thought it could be something wrong with my actor that I created. Same problem.
WME doesn't generate any errors or logs for it, I've even checked the log files, nothing. I even started a NEW project from scratch, and tested with a region entity. Same Problem. But when I load my previous game, the old version, it works fine, it works fine in the WME Demo.
I thought maybe I was typing something wrong, so I downloaded UltraEdit and set it up, no errors were found. What in the world can it me?!
Has anyone had this same problem? What am I doing wrong?
Thanks
-McCloud