Getting up to speed with Nexus scripting - thought it'd be fun to create a small simple script to read the ingredients list of a trade skill item and calculate the cost of the comms.
It was surprisingly easy to get a v1 up and running!
Link - it's super basic, but in case it'd help anybody...
To use: the onLoad function has a dictionary that lists out comms and their prices. You can modify those or add to the list depending on what you have access to (the alias refreshcoster will make any updates take effect in your current session). Then when you look at a recipe, you should see the cost in purple near the ingredients list. (Note - I've only tested this on Cooking recipes - but if it turns out other trades have a different format, happy to adjust this script.)
A couple questions for those more seasoned with Nexus:
- Is there a way to do the display_notice at the end of the current block of text? (Right now the display_notice happens around the "Ingredients" line of a recipe, since it's a trigger, but it'd be nice if it was at the end of the recipe)
- Has anybody successfully hooked up Nexus to an external database, eg Firebase? It'd be nice if I could 'scrape' the list of all recipes and view a spreadsheet of all available recipes and their costs.
- Any tips for scraping a big body of in-game table output, like when you do RECIPES GOURMET?
Comments