Jump to content
  • Announcements

    • A more clever marketplace

      Logging in   05/10/2017

      If you had an account and can't log in as of 5/9/17, this may be because of a change in logins with new forum software. You can log in using your publicly displayed name (not your username) or your email address and the password you used before.   If you have problems with this, please ask any of the mods or admins. 
Sign in to follow this  
BAZ

Can't add anything to script z0avadondlg.txt

Recommended Posts

BAZ   

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.

 

Share this post


Link to post
Share on other sites
Lilith   

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.

Share this post


Link to post
Share on other sites
BAZ   
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.

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites
BAZ   

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?)

Share this post


Link to post
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.)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×