Jump to content

Can't add anything to script z0avadondlg.txt


BAZ

Recommended Posts

For the life of me, I can not add anything to the script "z0avadondlg.txt".

I've added stuff to the scripts for z1 through zWhatever. (like the 5 character hack).

 

Is there some sort of block on the "z0avadondlg.txt" script?

 

I can edit exsisting text/rewards, but I can not add any new lines to it.

 

Example: Polus.

I'm at the point Polus only has 3 responses:

1. Where are you from?

2. What do you do here?

3. How can you help me?

 

I want to add another line so it shows up like this:

4. Do you buy anything?

 

Which has question/text and leads to a new state, the new state will list:

1. Bags of meal.

2. Ale.

3. Wine.

4. 'return/done' response

 

I know and got the code to remove the items from my inventory and gives me reward in gold.

I tested it and working in "z3goldcragdlg.txt"

 

I tested, and added just a simple single line, with:

    state = 600;

    nextstate = -1;
    condition = 1;

    question = "Test.";
    text1 = "_Test?_";
 

And it still does not show up.

 

Link to comment
Share on other sites

4 hours ago, Lilith said:

Are you in Avadon while you're doing these edits? Your savefile saves its own copy of the script for the current area, so script edits won't register until you leave the area and return.

Well, I went to goldcrag, saved, and exited.

Then loaded that save while in goldcrag, then saved and exited again.

 

I then did edits, and when I go to talk to any npc in avadon, nothing happens when I click on the npc.

Link to comment
Share on other sites

What message appears in the console?  That sounds like you have a syntax error in your script -- could be something as small as a missing semicolon or random extra character.  It might even be a stray keystroke that ended up in a completely different part of the script.

Link to comment
Share on other sites

Console states this:

"z0avadondlg.txt script failure: Too many strings in line 13521"

"z0avadondlg.txt Drror: Tried to process invalid dialogue script.."

 

I added the most basic script in middle or at the end, still not working.

 

Would someone mind taking time to make and share a working Polus (or TINKER DUMAN) section of the z0avadondlg.txt script with extra lines of conversation? (with at least one root conversation [question/test] that leads to a one new state?)

Link to comment
Share on other sites

Yep, that's definitely a syntax error in your script.  I think a simpler solution would be for you to paste whatever you added to your broken version here.  Then we can go through it and find the error.

 

If you added things in multiple places, just find the section near line 13521.  (Sometimes the game doesn't count lines exactly the same way a text editor does, but it should be close enough to distinguish middle vs end of the file.)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...