I'm attempting to create a log of character inventories and output this to a single file (ideally), though even separate files would work. I've run into two problems
I'm using WorldLog ("item") to log it to a file. I don't want it logging everything so I only have it log certain information, and every time the log opens it erases all previous data in the log, is there anyways to make it just append the log? What I'm really trying to achieve is something set up like:
Character1:
item
item
item
Character2:
item
item
item
If I have to do a separate log for each character thats not a horrible issue, but it would be much easier with just one txt file.
The second issue is erasing information from a file in lua, is there anyway to read whats in the file and remove something? That way if a character drops an item it will be erased from the log?
I know I can achieve this in C++, but that doesn't do much good and I'm hoping I can do it in Lua
I'm using WorldLog ("item") to log it to a file. I don't want it logging everything so I only have it log certain information, and every time the log opens it erases all previous data in the log, is there anyways to make it just append the log? What I'm really trying to achieve is something set up like:
Character1:
item
item
item
Character2:
item
item
item
If I have to do a separate log for each character thats not a horrible issue, but it would be much easier with just one txt file.
The second issue is erasing information from a file in lua, is there anyway to read whats in the file and remove something? That way if a character drops an item it will be erased from the log?
I know I can achieve this in C++, but that doesn't do much good and I'm hoping I can do it in Lua