//ReOpen tool Gui
function KeybladeToolOpen(%client,%slot,%tools)
{
commandToClient(%client,'SetScrollMode',3);
commandToClient(%client,'PlayGui_CreateToolHud',%tools);
commandToClient(%client,'SetScrollMode',$SCROLLMODE_TOOLS);
commandToClient(%client,'SetActiveTool',%slot);
}
I can set the max tools, but I don't know how to restore them.
Never mind. I realized it was better to define max tools in the main datablock, instead of changing it
onAdd. Then I just use
%data.maxTools in the restore function.