Controlling which quest fields are serialized

Announcements, support questions, and discussion for the Dialogue System.
effalumper
Posts: 11
Joined: Wed Dec 11, 2024 9:09 am

Re: Controlling which quest fields are serialized

Post by effalumper »

Hi again,

My apologies, my bad (again). I had copied some code from the asset to write the fields, but the code in question was intended to write the whole object... I adjusted it to filter out the unneeded fields, so it ended up writing:

Code: Select all

Item["find_shelter"]={CompletedTaskCount=0, }; 
I hadn't noticed it was effectively obliterating the object (I'm not really used to Lua, but still it should have been clear :) ). Anyway, I've adjusted it accordingly so it just writes individual fields, and I think it's all good now. Thanks again for your excellent support. Kind regards,

Andy
User avatar
Tony Li
Posts: 23376
Joined: Thu Jul 18, 2013 1:27 pm

Re: Controlling which quest fields are serialized

Post by Tony Li »

Happy to help! I'm glad it's working now.
Post Reply