Jump to content

Crusador

Member
  • Posts

    14
  • Joined

  • Last visited

    Never

Posts posted by Crusador

  1. I'm trying to use Crimson Editor now. It's handy for reading other scenarios' scripts and it's good to have the lines numbered, but I think all text editors (except for Notepad...) do it.

    I tried to drop a txt file into Alint but it doesn't work. I think the command line is fine, it's not hard to use as I thought it would be smile

  2. Hi people,

     

    that's a newbie question blush . One thing that bothers me is that every time I forget a ; I spend like an hour to find where's the problem. I know the game says "missing semicolon in line xx", but the missing semicolon is never exactly in line xx, but always a little up or down...

     

    Is there any way to easily find the missing semicolon?

     

    Thanks smile !

  3. Hi there,

     

    I'm working on a scenario which have three custom creatures Pretty simple creatures, I mean. I've just dowloaded some custom graphics and gave them a few interesting skills. My forth creature is even simplier: a priest (creature #11) with a diferent graphic sheet.

    The problem is that when that alternative priest dies, the game crashes with the "unhandled exception" error. Is there any way to fix that?

     

    By the way, the graphics for that priest come from Avernum 1. Is it okay to use these graphics, since they're from Spiderweb?

  4. Originally Posted By: Niemand
    The reason that this is happening is simple: The game sees no reason not to show that node any time dialogue reaches state 9.

    Probably the best way to solve this is to allocate another SDF to keep track of whether the party has been given the quest or not. Then, alter node 13 so that: 1) It has a condition that it should only be shown when the new flag is zero, and 2) At the same time as the toggle_quest call to start the quest it also sets the flag so that you have a record of the quest being started.

    Aaah, thank you very much!
    It's working now!
  5. Hello,

     

    I'm very noob in scenario making, so I have a very silly question. I'm not used to scripting, so I'm having some troubles in my scenario. So far, I've done a little boring conversation and a shop. Thanks to basicnpc, warriorgrove and all that noob stuff, by the way.

     

    Now I'm trying to make a quest. It's very simple: a wizard ask you to kill a ghast. When you're done, he gives you a few coins and... that's it.

     

    That's what I've done in order to make that simple quest:

     

    I've placed a ghast in a room and gave to it the basicnpc script. In its second memory cell I've put "2" and in its third cell I've put "3". So, when the ghast dies, he set the SDF(2,3) to 1. I guess, at least.

     

    Then, I wrote a dialogue for the wizard. It's something like that:

     

    Quote:
    begintalknode 13;

    state = 9;

    nextstate = 8;

    question = "Can I help you?";

    text1 = "_Yes, kill the ghast._";

    code =

    toggle_quest(1,1);

    break;

     

    begintalknode 14;

    state = 8;

    nextstate = 8;

    condition = get_flag(2,3) == 1;

    question = "I've done it!";

    text1 = "_Thanks._";

    code =

    toggle_quest(1,0);

    change_coins(30);

    play_sound(68);

    set_flag(2,3,0);

    break;

    action = END_TALK;

     

    I will improve that dialogue, for sure. But now I want to make the quest work.

    The problem is that the wizard keeps saying "kill the ghast", even when it's already dead. That's the only problem I've found in the quest, but it's driving me crazy!

    Can someone help me?

×
×
  • Create New...