Well here's where I'm at. It's a bit of a mess, but with my current knowledge it's the best I could do. Below is a recap of what I want the script to do:
- Check display case for items not in data file.
- Add said items to data file.
- Put all items in data file into DC.
- Print readout of what was moved.
Note: Data file may include items which are not currently in DC, but which have been added manually.
My description of what it currently does:
- Saves the contents of your DC to a data file ("DC Data.txt").
- Prints a readout of what it will move into your DC.
- Moves items in "DC Data.txt" to your DC.
Problems (that I've noticed):
- Requires a data file ("all_items.txt") containing every item in the game to compare to your DC before it knows what to save to "DC Data.txt"
- Unless the script actually moves something when it is run, it will overwrite "DC Data.txt" with a blank version.
- Currently the script completely overwrites "DC Data.txt" each time it runs, meaning that items have to be in your DC before the script runs, thus defeating the purpose of running the script.
Ideally the script would
add items in your DC to "DC Data.txt" (if they are not already there). In other words the file would be, for all intents and purposes, edited rather than overwritten. This would allow for items to be manually, as well as automatically, added to "DC Data.txt"
Any help would be appreciated, but at this point I've reached the limits of my knowledge so it'd be helpful if you could explain (in baby steps) what everything does.