inconsistant dialogue

Discussion in 'Modding and Scripting Support' started by Ruelz, Jul 8, 2002.

Remove all ads!
Support Terra-Arcanum:

GOG.com

PayPal - The safer, easier way to pay online!
  1. Ruelz

    Ruelz New Member

    Messages:
    75
    Likes Received:
    0
    Joined:
    Jun 25, 2002
    Here's a good one. i have two characters created with extensive dialogue trees. I won't post the whole thing, but here's one:
    {1}{G:}{G:}{}{}{2}{}
    {2}{Stay awhile, and Listen}{Stay while, and listen}{}{}{}{}
    {3}{Who might you be?}{}{1}{me 0}{15}{}
    {4}{Hello, Checkard Lain.}{}{1}{me 1}{20}{}

    And here's the other:
    {1}{G:}{G:}{}{}{2}{}
    {2}{Hello there! Good to see you back!}{Hello there! Glad to see you back!}{}{}{}{}
    {3}{I must say, it is good to be home.}{}{1}{me 0}{10}{}
    {4}{Hello, Errol. How are things?}{}{1}{me 1}{50}{}

    the greeting line on the first line of each one leads to the custom greeting on line two. I couldn't get them to talk any other way. Here's the problem. The first one works just fine. The second one, however, has the character Errol saying line 3, and the only option I have is line 4. No idea what happened to lines 1, 2, or on up past 4. The top one did this for awhile, and I eventually tinkered with it enough that all of the dialogue works fine with him. But this second guy is adamantly refusing to be fixed. i have gone so far as to copy-paste the dialogue setup from Checkard into Errol's dialogue file, and I still cannot get him to talk to me using his own words. (In frustration once I tried to kill the plaguristic bastard. That's when I learned that Merwin Tumblebrook sucks as a fighter)

    Any advice?
     
  2. DarkUnderlord

    DarkUnderlord Administrator Staff Member

    Messages:
    4,315
    Likes Received:
    5
    Joined:
    Nov 10, 2001
    For starters, it's wrong. It's all horribly wrong! (Well, maybe not horribly wrong.... But anyway)

    Try this:
    {1}{Stay awhile, and Listen}{Stay while, and listen}{}{}{}{}
    {2}{Who might you be?}{}{1}{me 0}{15}{}
    {3}{Hello, Checkard Lain.}{}{1}{me 1}{20}{}

    And this:
    {1}{Hello there! Good to see you back!}{Hello there! Glad to see you back!}{}{}{}{}{}
    {2}{I must say, it is good to be home.}{}{1}{me 0}{10}{}
    {3}{Hello, Errol. How are things?}{}{1}{me 1}{50}{}

    If you want to replace the standard greeting, get rid of the "G:" all together and replace them with your own greeting (presuming that's what you want). However, it does mean that the NPC will say that everytime you meet him. The other way is to create what I call a "buffer" (explained below).

    Anyway, basically, there shouldn't be the number "2" in the first NPC line. NPC lines should only have the two greetings (male and female) and maybe something in the result field but that's it. Anything else in there doesn't work and may cause problems.

    The "me 0" and "me 1" mean that if the player hasn't met this NPC before., then "me" (short for: has PC met NPC before?) will be "0" meaning the Player hasn't met thois NPC before. Otherwise, it will be "1". In which case the "me 1" line will show and the "me 0" line won't.

    // Buffer
    {1}{G:}{G:}{}{}{}{}
    {2}{Pardon me for asking, but pray tell, who are you?}{}{1}{me 0}{40}{}
    {3}{Hello Errol, may I ask you something?}{}{1}{me 1}{30}{}
    {4}{E:}{}{1}{}{0}{}

    // Ask a question
    {30}{What can I do for you?}{What can I do for you?}{}{}{}{}
    {31}{Tell me about the birds and the bees.}{}{1}{}{50}{}
    {32}{Wat! ur l!k3 a d09! \/\/00f!}{}{1}{}{0}{}

    // Who are you
    {40}{I am Errol.}{I am Errol.}{}{}{}{}
    {41}{That's good to know.}{}{1}{}{30}{}


    What the "buffer" lets you do, is gives you a place to "catch" PCs with dialogue, rather than scripting. IE: if you don't want Errol to speak to this guy, you can do it with a script, or you can do it in dialogue. The "Buffer" can be a place where you check for tihngs like race (maybe Errol doesn't like elves?) and you can "catch" them here with a few dialogue lines. However, it does become a little old when every NPC in the game has this same format. It becomes predictable. Also, the standard "G:" greeting can cause problems at times, particularly when say an Orc meets a Human. Humans standard "G:" is usually bad to Orcs. You can get around that by ticking a flag in there. Something like "aloof" I think it is in the NPC. Or you can go the extravagant way and make your own script.
     
  3. Ruelz

    Ruelz New Member

    Messages:
    75
    Likes Received:
    0
    Joined:
    Jun 25, 2002
    D'ya think anyone would play...

    D'ya think anyone would play...

    A mod where everyone was mute and just handed you books to talk?

    I tried that, and for some reason two new problems occurred: Checkard has begun stealing my lines now, too, so i swtiched him back. And errol, when I give him a direct greeting dialogue, gives me a blank screen, which locks me out. Given that the script ID's and dialogue ID's correspond exactly (first thing I checked) and the brackets are filled per the world-ed manual + AMTUT (second thing), I really am baffled at why Checkard works when done the one way, and Errol does not. When I do them the way you suggest (Which makes logical sense) they refuse to speak to me at all.

    But...I can make books!

    I dont suppose theres like an AMTUT supplementary out there, you know, like "Dialogue for the Typing impaired?" :razz:
     
Our Host!