Jump to content

[REQUEST] "Server Info" Scroll Option


Tricks

Recommended Posts

hey,

yes, this is easy:

 

first create a Menu.sqf with:

private["_veh", "_idx"];
Sleep 10;
_idx = -1;

while {alive player} do {
if(_idx == -1) then {
_idx = (vehicle player) addaction [("" + ("TEXTINGAME") +""),"ActionMenu.sqf","",5,false,true,"",""];
_veh = vehicle player;
};
if (_veh != vehicle player) then
{
_veh removeAction _idx;
_idx = -1;
};
Sleep 2;
};

than, create a ActionMenu.sqf with something like this:

_pathtotools = "your path\...";
_EXECscript1 = 'player execVM "'+_pathtotools+'%1"';
//customise these menus to fit your server
//menu
        menu =
        [
            ["",true],
                ["Server Info", [2], "", -5, [["expression", format[_EXECscript1,"text1.sqf"]]], "1", "1"],
                ["Server Rules", [4], "", -5, [["expression", format[_EXECscript1,"text2.sqf"]]], "1", "1"],
                ["Tips", [6], "", -5, [["expression", format[_EXECscript1,"text3.sqf"]]], "1", "1"],
                ["", [-1], "", -5, [["expression", ""]], "1", "0"],
            ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]    
        ];
];

 

and the text things look like this:

"Text1" hintC parseText format ["
<t size='1.1' shadow='1'align='left' color='#FFFFFF'>Text</t><br/>
<t size='.7' shadow='1'align='left' color='#FFFFFF'></t><br/>
<t size='1.1' shadow='1'align='left' color='#FFFFFF'>Text</t><br/>
<t size='.7' shadow='1'align='left' color='#FFFFFF'></t><br/>
<t size='1.1' shadow='1'align='left' color='#FFFFFF'>Text</t><br/>
<t size='.7' shadow='1'align='left' color='#FFFFFF'></t><br/>
<t size='1.1' shadow='1'align='left' color='#FFFFFF'>Text</t><br/>
<t size='.7' shadow='1'align='left' color='#FFFFFF'></t><br/>
<t size='1.1' shadow='1'align='left' color='#FFFFFF'>Text</t><br/>
<t size='.7' shadow='1'align='left' color='#FFFFFF'></t><br/>
<t size='1.1' shadow='1'align='left' color='#FFFFFF'>Text</t><br/>
<t size='.7' shadow='1'align='left' color='#FFFFFF'></t><br/>
<t size='1.1' shadow='1'align='left' color='#FFFFFF'>Text</t><br/>
"];

sleep 10;

Text = put your text in

Link to comment
Share on other sites

ahhh, sry... u need only one text... then only:

 

create a Menu.sqf with:

private["_veh", "_idx"];
Sleep 10;
_idx = -1;

while {alive player} do {
if(_idx == -1) then {
_idx = (vehicle player) addaction [("" + ("Server Info") +""),"Info.sqf","",5,false,true,"",""];
_veh = vehicle player;
};
if (_veh != vehicle player) then
{
_veh removeAction _idx;
_idx = -1;
};
Sleep 2;
};

 

create a Info.sqf with:

"Server Info" hintC parseText format ["
<t size='1.1' shadow='1'align='left' color='#FFFFFF'>Text</t><br/>
<t size='.7' shadow='1'align='left' color='#FFFFFF'></t><br/>
<t size='1.1' shadow='1'align='left' color='#FFFFFF'>Text</t><br/>
<t size='.7' shadow='1'align='left' color='#FFFFFF'></t><br/>
<t size='1.1' shadow='1'align='left' color='#FFFFFF'>Text</t><br/>
<t size='.7' shadow='1'align='left' color='#FFFFFF'></t><br/>
<t size='1.1' shadow='1'align='left' color='#FFFFFF'>Text</t><br/>
<t size='.7' shadow='1'align='left' color='#FFFFFF'></t><br/>
<t size='1.1' shadow='1'align='left' color='#FFFFFF'>Text</t><br/>
<t size='.7' shadow='1'align='left' color='#FFFFFF'></t><br/>
<t size='1.1' shadow='1'align='left' color='#FFFFFF'>Text</t><br/>
<t size='.7' shadow='1'align='left' color='#FFFFFF'></t><br/>
<t size='1.1' shadow='1'align='left' color='#FFFFFF'>Text</t><br/>
"];

sleep 10;

 

Text = your Text

 

but this scroll menu is not so good, that addActions have become a lag causer in Arma 3.

Link to comment
Share on other sites

Suppe,

 

how could I got 2 or 3 deep? So when u click on "Server Info" you get 3 options like "Rules, Tips, Info". Then when you click on one of those you get the information?

yes, with the first version i post.... I have edited this again.... should look something like this... but I have not tested now....

and for that you have to insert BE filters.

 

Is there a way to put stuff like this in the map briefing window?

yes, its a arma mission, so u can add a briefing, ask goggle for arma 3 add briefing :D

 

Link to comment
Share on other sites

_pathtotools = "your path\..."; <---------------------------------------------------------
_EXECscript1 = 'player execVM "'+_pathtotools+'%1"';
//customise these menus to fit your server
//menu
        menu =
        [
            ["",true],
                ["Server Info", [2], "", -5, [["expression", format[_EXECscript1,"text1.sqf"]]], "1", "1"],
                ["Server Rules", [4], "", -5, [["expression", format[_EXECscript1,"text2.sqf"]]], "1", "1"],
                ["Tips", [6], "", -5, [["expression", format[_EXECscript1,"text3.sqf"]]], "1", "1"],
                ["", [-1], "", -5, [["expression", ""]], "1", "0"],
            ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]    
        ];
];
 
 
 
so wat is the pathtools?
Link to comment
Share on other sites

ok got it working normal players acn see it too...just cant see anything after the first menu..i press the server info button and nothing appears :/

not hte right path.

 

_pathtotools = "your path\..."; <---------------------------------------------------------
_EXECscript1 = 'player execVM "'+_pathtotools+'%1"';
//customise these menus to fit your server
//menu
        menu =
        [
            ["",true],
                ["Server Info", [2], "", -5, [["expression", format[_EXECscript1,"text1.sqf"]]], "1", "1"],
                ["Server Rules", [4], "", -5, [["expression", format[_EXECscript1,"text2.sqf"]]], "1", "1"],
                ["Tips", [6], "", -5, [["expression", format[_EXECscript1,"text3.sqf"]]], "1", "1"],
                ["", [-1], "", -5, [["expression", ""]], "1", "0"],
            ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]    
        ];
];
 
 
 
so wat is the pathtools?

 

 

in this case the _pathtotools are text1.sqf ,text2.sqf  and text3.sqf... so the folder were he find the scripts.

 

_pathtotools = "YOURSCRIPTFOLDERNAME\"; 

Link to comment
Share on other sites

so anyone got the working with right path in the pathtools? 

 

sorry, had little time the last days.... try to call the text1.sqf direkt, like this:

//customise these menus to fit your server

//menu

menu =

[

["",true],

["Server Info", [2], "", -5, [["[] execVM "YOURSCRIPTFOLDER\text1.sqf";"]]], "1", "1"],

["Server Rules", [4], "", -5, [["[] execVM "YOURSCRIPTFOLDER\text2.sqf""]]], "1", "1"],

["Tips", [6], "", -5, [["expression", format[_EXECscript1,"text3.sqf"]]], "1", "1"],

["", [-1], "", -5, [["expression", ""]], "1", "0"],

["Exit", [13], "", -3, [["expression", ""]], "1", "1"]

];

];

 

However, I have now tested anything about it .... if I have a lot of time the last days I test the times for you and post it then again.

 

Link to comment
Share on other sites

sorry, had little time the last days.... try to call the text1.sqf direkt, like this:

//customise these menus to fit your server

//menu

menu =

[

["",true],

["Server Info", [2], "", -5, [["[] execVM "YOURSCRIPTFOLDER\text1.sqf";"]]], "1", "1"],

["Server Rules", [4], "", -5, [["[] execVM "YOURSCRIPTFOLDER\text2.sqf""]]], "1", "1"],

["Tips", [6], "", -5, [["expression", format[_EXECscript1,"text3.sqf"]]], "1", "1"],

["", [-1], "", -5, [["expression", ""]], "1", "0"],

["Exit", [13], "", -3, [["expression", ""]], "1", "1"]

];

];

 

However, I have now tested anything about it .... if I have a lot of time the last days I test the times for you and post it then again.

 

ty i will try that

Link to comment
Share on other sites

sorry, had little time the last days.... try to call the text1.sqf direkt, like this:

//customise these menus to fit your server

//menu

menu =

[

["",true],

["Server Info", [2], "", -5, [["[] execVM "YOURSCRIPTFOLDER\text1.sqf";"]]], "1", "1"],

["Server Rules", [4], "", -5, [["[] execVM "YOURSCRIPTFOLDER\text2.sqf""]]], "1", "1"],

["Tips", [6], "", -5, [["expression", format[_EXECscript1,"text3.sqf"]]], "1", "1"],

["", [-1], "", -5, [["expression", ""]], "1", "0"],

["Exit", [13], "", -3, [["expression", ""]], "1", "1"]

];

];

 

However, I have now tested anything about it .... if I have a lot of time the last days I test the times for you and post it then again.

 

ok this kinda works lol

 

i get a box pop up and screen saying text1 and has all the files inside including config files they dont need to see xD

 

*update* it now opens the text file in game without seeing the serverinfo before it if u get wat i mean..i suck at explaining

Link to comment
Share on other sites

This would work way better if it was in the map briefing but I cant get a briefing to work.

 

yes, I think a briefing would be a nicer solution, that is cleaner: D I try both versions, (briefing and scroll menu) when I have time, but still takes, no time atm....

 

Link to comment
Share on other sites

so tonight i took a script i used in arma 2 and all working perfect.

 

edited it to do and say as i wish but i have 1 problem.

 

after the player died the menu does not show any longer..it will show untill u die then does not show again. any ideas on this? once its fully running ill post it up :)

Link to comment
Share on other sites

Ok I finnaly have had some time to try this script. I too am can't get the second menu up. I have "Server Info" appearing, but when you click on it you don't get a second menu. I don't see any errors popping up either. Here are my files;

 

Menu.sqf

 

private["_veh", "_idx"];
Sleep 10;
_idx = -1;

while {alive player} do {
if(_idx == -1) then {
_idx = (vehicle player) addaction [("" + ("Server Info") +""),"Scripts\Menu\InfoMenu\ActionMenu.sqf","",5,false,true,"",""];
_veh = vehicle player;
};
if (_veh != vehicle player) then
{
_veh removeAction _idx;
_idx = -1;
};
Sleep 2;
}; 

 

 

ActionMenu.sqf

 

_pathtotools = "Scripts\Menu\InfoMenu\";
_EXECscript1 = 'player execVM "'+_pathtotools+'%1"';
//customise these menus to fit your server
//menu
        menu =
        [
				["",true],
                ["Server Info", [2], "", -5, [["expression", format[_EXECscript1,"text1.sqf"]]], "1", "1"],
                ["Server Rules", [4], "", -5, [["expression", format[_EXECscript1,"text2.sqf"]]], "1", "1"],
                ["Tips", [6], "", -5, [["expression", format[_EXECscript1,"text3.sqf"]]], "1", "1"],
                ["", [-1], "", -5, [["expression", ""]], "1", "0"],
				["Exit", [13], "", -3, [["expression", ""]], "1", "1"]    
        ]; 

I had an error here and had to remove the last ]; from the original post.

 

 

Text1.sqf

 

"Text1" hintC parseText format ["
<t size='1.1' shadow='1'align='left' color='#FFFFFF'>Text</t><br/>
<t size='.7' shadow='1'align='left' color='#FFFFFF'></t><br/>
<t size='1.1' shadow='1'align='left' color='#FFFFFF'>Text</t><br/>
<t size='.7' shadow='1'align='left' color='#FFFFFF'></t><br/>
<t size='1.1' shadow='1'align='left' color='#FFFFFF'>Text</t><br/>
<t size='.7' shadow='1'align='left' color='#FFFFFF'></t><br/>
<t size='1.1' shadow='1'align='left' color='#FFFFFF'>Text</t><br/>
<t size='.7' shadow='1'align='left' color='#FFFFFF'></t><br/>
<t size='1.1' shadow='1'align='left' color='#FFFFFF'>Text</t><br/>
<t size='.7' shadow='1'align='left' color='#FFFFFF'></t><br/>
<t size='1.1' shadow='1'align='left' color='#FFFFFF'>Text</t><br/>
<t size='.7' shadow='1'align='left' color='#FFFFFF'></t><br/>
<t size='1.1' shadow='1'align='left' color='#FFFFFF'>Text</t><br/>
"];

sleep 10; 

 

Would REALLY appreciate it, if someone could get this working!  :rolleyes:

Link to comment
Share on other sites

Okay here is my briefing menu:

 

init.sqf

null =[] execVM "scripts\briefing.sqf";

 

scripts\briefing.sqf

if (!hasInterface) exitWith {};

waitUntil {!isNuLL(uiNameSpace getVariable ["EPOCH_loadingScreen",displayNull])};
waitUntil {isNuLL(uiNameSpace getVariable ["EPOCH_loadingScreen",displayNull])};

player createDiarySubject ["menu1","Name on Map"];
player createDiarySubject ["menu2","Name on Map2"];

player createDiaryRecord ["menu1",
["Name on Map","
<br/>
Put your text here
<br/>
"]];

player createDiaryRecord ["menu2",
["Name on Map2","
<br/>
Put your text here
<br/>
"]];

 

Not on scroll menu but it works :)

 

have fun ;)

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
  • Advertisement
  • Discord

×
×
  • Create New...