This past few weeks i have been learning to script a bit.
I'm working on a script that will craft woodland armor with user defined resists. In the long run i hope to convert this into a more allround armor/weapon crafter that evaluates user defined stats and decides to keep or trash the item. Preferably making use of TM's claw

But because i am a beginner i have obligated myself to not overcomplicate things, although i probably have been, and to make a simple version first. I already created a menu for this, but decided to skip it untill i got a more basic version working

We'll pimp it out later haha

The version i'm posting is very very ALPHA or pre-alpha. There's already a lot of things i'd like to improve, but first i just want to get it working. So please bear that in mind with your feedback

At the moment i'm struggling a bit with sub PEARLS_setup_tool.
As you will see there is recursion happening in there whenever we need to craft tinker tools.
But if i put a display right after the recursion, then it will say that !item_type is N/A.
So i must be using the scope of namespaces wrong. Is it possible what i'm trying to do?
if !item_type notin !tool_types_tinkering && #FINDCNT < 3
{
set !tinkering_tools_needed 3 - #FINDCNT
gosub PEARLS_setup_tool tinkering JTL !tool_types_tinkering !tinkering_tools_needed 2 !resource_container 1 4
display !item_type
halt
}
I'm tired so i might come back & clean this post a bit

There are 3 attachment(s) in this post. You must register and post an acceptable introduction to downloadPearls' Crafting Assistant - Alpha v1.0.txt
Pearls' Crafting Assistant - Alpha v1.1.txt
Pearls' Crafting Assistant - Beta v1.0.txt