Unflappable Drayk Reality Corp. Posted June 16, 2004 Share Posted June 16, 2004 Okay, so I was making a very basic scenario and I wanted to make a very basic dialog conversation. After some trial and error with coding the script, I got the it to work but when I load the town, it gives me this error: Dialog script error: Improper block definer in line 29. Yet the conversation runs normally and everything seems to be working fine...here's my town dialog text: Code: begintalkscript;begintalknode 1; state = -1;nextstate = 1; question = "Sunny Jim"; text1 = "You meet Sunny Jim. _What do you want, friend?_";begintalknode 2;state = 1;nextstate = -1;question = "YAY YOU WORK!!";text2 = "I WORK!!!11!";break; Here's my town script: Code: begintownscript;body;beginstate INIT_STATE;break;beginstate EXIT_STATE;break;beginstate START_STATE;break; The NPC has it's 3rd memory cell set to 1, all other attributes are set to 0 and it's script is pointing to the unchanged basicnpc. How might I go about removing this error? Thanks, Reality Corp. Link to comment Share on other sites More sharing options...
Magnificent Ornk Kelandon Posted June 16, 2004 Share Posted June 16, 2004 I have no idea what that error is or what it means, but I can think of some things that could be wrong. Try this: Code: begintalkscript;begintalknode 1; state = -1;nextstate = 1; condition = 1;question = "Sunny Jim"; text1 = "You meet Sunny Jim. _What do you want, friend?_";begintalknode 2;state = 1;nextstate = -1;condition = 1;question = "YAY YOU WORK!!";text1 = "I WORK!!!11!" Numbering on text starts over at each node, so each one will have a text1. No break call necessary at any point. Not sure that a condition definition is necessary for each of these, but Jeff uses them for every node, so you might as well, too. Link to comment Share on other sites More sharing options...
Unflappable Drayk Reality Corp. Posted June 16, 2004 Author Share Posted June 16, 2004 Well, it worked! And the problem was the break after all...the text numbering really didn't have an effect on it. Thanks Kel! Edit: 999 Link to comment Share on other sites More sharing options...
Recommended Posts