Jump to content
  • 0

Advanced Alchemal Crafting


chi

Question

I have looked but can't find any info on this anywhere....

 

I wanted all of my buildables to be set to right click the toolbox. I have it all set up right with 46 items in the drop down menu. The drop down menu will not load and it breaks the crafting window when I load that many. I haven't tried to figure out how many possible entries I can have in the drop down menu without breaking anything, but i did just try to put 4 items in it and it worked fine.

Does anyone know:

---how many entries the menu will hold without breaking

---If it is possible to change the max number of items it holds

---Or if i just have to make a second right click entry for the toolbox and have a whole other crafting window pop up with a different sets of items?

 

Thanks in advance!!!

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

do you wanna put 46 scripts into toolbox right click?  i dont know how is the maxiium but i think 46 is a lot :D----  maybe u can use something else like scroll menu options or hpp file menu to execute all this scripts.

Really i dont have idea how to create hpp menu, @theduke its an expert to do it, maybe he can  help you if u decide take this way.

But..

if u want. u can try it.. adding a scroll menu option for those scripts.

open your init.sqf at bottom paste

Spoiler

//toolb menu
[] execVM "custom\toolb\toolb_activate.sqf";

create this sqf´s and paste

into mpmissions\your instance\custom\toolb\

toolb_activate.sqf

Spoiler

waituntil {!isnull (finddisplay 46)};
sleep 15;
setview = player addaction [("<t color=""#000000"">" + ("Toolbox Menu") +"</t>"),"custom\toolb\toolb_execute.sqf","",5,false,true,"",""];

toolb_exectute.sqf

Spoiler

[] execVM "custom\toolb\toolb_main.sqf";

toolb_main.sqf  (in blue put your own  text // in red name of scripts to execute) add more menus if u need

Spoiler

pathtotoolb = "custom\toolb\";
EXECscript1 = 'player execVM "'+pathtotoolb+'%1"';

if (speed player <= 1) then {
toolb =
[
    ["",true],
        ["Menu 1", [2], "#USER:menu1", -5, [["expression", ""]], "1", "1"],
        ["Menu 2", [3], "#USER:menu2", -5, [["expression", ""]], "1", "1"],
        ["", [-1], "", -5, [["expression", ""]], "1", "0"],
            ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
        
];} else {
toolb =
[
    ["",true],
        ["Menu 1", [2], "#USER:menu1", -5, [["expression", ""]], "1", "1"],
        ["Menu 2", [3], "#USER:menu2", -5, [["expression", ""]], "1", "1"],
        ["", [-1], "", -5, [["expression", ""]], "1", "0"],
            ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];
};

menu1 =
[
    ["",true],
        ["my text", [2],  "", -5, [["expression", format[EXECscript1,"yourscript.sqf"]]], "1", "1"],
        ["2", [3],  "", -5, [["expression", format[EXECscript1,"yourscript.sqf"]]], "1", "1"],
        ["3", [4],  "", -5, [["expression", format[EXECscript1,"yourscript.sqf"]]], "1", "1"],
        ["4", [5],  "", -5, [["expression", format[EXECscript1,"yourscript.sqf"]]], "1", "1"],
        ["", [-1], "", -5, [["expression", ""]], "1", "0"],
            ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];

menu2 =
[
    ["",true],
        ["5", [2],  "", -5, [["expression", format[EXECscript1,"yourscript.sqf"]]], "1", "1"],
        ["6", [2],  "", -5, [["expression", format[EXECscript1,"yourscript.sqf"]]], "1", "1"],
        ["7", [3],  "", -5, [["expression", format[EXECscript1,"yourscript.sqf"]]], "1", "1"],
        ["8", [4],  "", -5, [["expression", format[EXECscript1,"yourscript.sqf"]]], "1", "1"],
        ["9", [5],  "", -5, [["expression", format[EXECscript1,"yourscript.sqf"]]], "1", "1"],
        ["", [-1], "", -5, [["expression", ""]], "1", "0"],
            ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];

showCommandingMenu "#USER:toolb";

now paste all script you want to execute into toolb folder.

Link to comment
Share on other sites

  • 0

no probleml, if u want to keep the realism with toolbox.. maybe u can add a  requiere toolbox item to build in each script..

. or other solution is divide into ItemShovel , Sledge , Etool and toolbox  all scripts to execute by right click..  46/5 = 9.2  now ure reducing the amount.

im using my own with this see.

Spoiler

["ItemSledge",[0,2,1],5,1,true,false,false,true,true,false,false,["MAP_Dkamna_bila"],[],["PartGeneric","PartGeneric","PartEngine"],"true"],
    ["ItemShovel",[0,2,1],5,1,true,false,false,true,true,false,false,["CDF_WarfareBVehicleServicePoint

[],["PartGeneric","PartGeneric","PartWoodLumber"],"true"]

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Discord

×
×
  • Create New...