I made a house mod for myself, with a chest that can hold many... maaany ingredients, for I like the roleplay part of the game so much that all these years I have played only one char, maxed at almost every skills.
With some of all the ingredients available in the game inside the container, It is such a pain to hover the mouse over each when trying to pick them for a mixture, just to remember the magical properties, that I have decided a couple of weeks ago, to code a script with:
- The intention of the script:
Upon activation of the chest, a menu that shows the intended magical property, which after selected, automatically gets all the ingredients that match to the player inventory.
- Limitations:
First I was very frustrated for not being able to simply do a loop through all the contents of the chest and find some property or method that shows their magical properties, that'd be neat, so all i had left was to tell the script to recognize each ingredient available in the game, excluding ingredients created by external mods, to keep it clean. Ok, that shouldn't be hard, but would greatly increase the time to do this. So i've even created a program to generate the scripts for me given a list of the ingredients that I've downloaded, and then revised.
The next limitation, the output was so big, TESCS only accepts like 800 lines in each script, and I believe that is what is causing me the problem I am to bored to try and figure out myself already: I had to break up the script in smaller files and do that startscript thing.
- Please help me who can:
When I test the script in the game, the menu shows up ok in the first time, on rare occasions it gets the ingredients, and on others, it closes, and in the next activation doesn't open again....... it is really hard to explain, thats why ...:
I've uploaded the script to the below URL, and would like for someone who likes the idea behind the script, try and help me debug it to see where I am missing. I believe it has to do with some other limitation of TESCS that I am not being able to see.
Please note that you may see a missing endif or something like that, because I was doing code in an external editor, and maybe forgot to sync with something I was doing directly in the TESCS, but don't take that as the cause of the problem, because it ain't.
http://www.easy-share.com/1910244681/mwIngredSrc.zip (10Kb, really small file, it is all text after all)
This should be a weekend's work tops, and took me some more than that, until I've kinda shove it away for some time, and decided to ask for help here. I was intending to release it as a free work after completion anyways, maybe someone even have something similar anyways, so I don't really care if you figure the problem out and use it for you, just share with me please
Thanks !