I know there aren't too many examples out there explaining what it is...
But this is an old method which I used when I first started...
A Scroll Menu is a small Menu which is easy to make. You activate the menu by... Simply... Scrolling.
I dont know who to give credits to.... So just tell me in the comments and Ill edit this post and put it in.
Here is an example:
Code:
player addAction ["God",{[]spawn N30N ;}];
N30N = {
Player AllowDamage False;
};
The "Player AddAction" counts as one action for the scroll... And the option you will select when you are scrolling is "God".
Where it says "[]spawn N30N" its basically saying to spawn a variable...
Then underneath the script the variable is "N30N"... So the AddAction basically calls "N30N" and executes the variable... In the variable we have "Player AllowDamage False;" which represents God Mode, this is just an example so you can put you own scripts in and add more options.
Since the script in the variable "N30N" is only 3 words... You wouldnt usually paste a small script in Variables unless you have all the time in the world...
A method to do Small Scripts is like this:
Code:
player addAction ["God",{player allowDamage false;hint "God Mode Activated";}];
Use this ^(above) if its something small like God Mode.
Variables are usually used for something like this which is a longer piece of code:
Code:
player addAction ["$1,000,000 Hand Cash",{[]spawn CreditsToJME ;}];
CreditsToJME= {
if(!isNil "life_no_injection") then {life_no_injection = true;};
life_cash = life_cash + 1000000;
if(!isNil "life_no_injection") then {life_no_injection = false;};
};
So... you have your first action... How can you add more actions?
Too easy.. Just paste it again like this:
Code:
player addAction ["$1,000,000 Hand Cash",{[]spawn CreditsToJME ;}];
CreditsToJME= {
if(!isNil "life_no_injection") then {life_no_injection = true;};
life_cash = life_cash + 1000000;
if(!isNil "life_no_injection") then {life_no_injection = false;};
};
player addAction ["$500,000 Hand Cash",{[]spawn Mr_Neon ;}];
Mr_Neon= {
if(!isNil "life_no_injection") then {life_no_injection = true;};
life_cash = life_cash + 500000;
if(!isNil "life_no_injection") then {life_no_injection = false;};
};
player addAction ["PROCESSED Diamond",{[true,"diamondc",1] call life_fnc_handleInv;hint "Received 1 Diamond";}];
This Script adds three actions which is "PROCESSED Diamond", "$1,000,000 Hand Cash" and "$500,000" which will appear when you scroll.
Just make sure that the variable names are different for each action as the script will not work if all variables are named this same.
And Noobs... To execute this in a game you need an injector.
Credits:
Credits to MokoMoko for Diamond Script in AltisLifeRPG Website.
Credits to JME for Altis Money Script
If I missed you, Ill paste below... Just tell me in the comments
