Check out my sub Pearls_setup_tool in my submitted script Pearls' Crafting Assistant for an example. I'm pretty proud of it.
You could make an array with all the information.
Gosub setup_vars
gosub setup_tool tinkering
sub setup_vars
set %tools_tinkering_types jtl_gtl_ktl
set %tools_tinkering_minimum 2
set %tools_tinkering_maximum 3
set %tools_alchemy_types rfq
etc ...
Return
sub setup_tool
Namespace push
namespace local setup_tool
set !name %1
Set !tmp tools_ , !name , _types
Set !types % . !tmp
if !types <> N/A
{
Finditem !types C_ , #backpackid
Etc
}
namespace clear
namespace pop
return
typing all this from an ipad is a PITA