Jump to content
  • 0

Need help its small


Asian Kid

Question

Got 2 scripts

 

They don't work when I activate them through scroll wheel

There is the 1st one 

private ["_bunker_code"];
_Chance = 1;
_bunker_code = bunkercode;
_Humanity =     player getVariable["humanity",0];
titleText ["Its top secret so...maybe.","PLAIN DOWN"]; titleFadeOut 3;
if((_Humanity >= 15000) && (_Humanity <= 29999)) then  {
player playActionNow "Medic";
        cutText [format["Fine here. The code is %1 plz don't tell other players let them have a challenge or I change it.",_bunker_code,"%"], "PLAIN DOWN"];
}else{	

if((_Humanity >= -1999) && (_Humanity <= 14999)) then {
        if(random 100 <= _Chance) then {
		player playActionNow "Medic";
        cutText [format["Fine here. The code is %1 plz don't tell other players let them have a challenge or I change it.",_bunker_code,"%"], "PLAIN DOWN"];
};
}else{

if((_Humanity <= -2000) && (_Humanity >= -15000)) then  {
		 player playActionNow "Medic";
         cutText [format["I told you its top secret so no!!!",_bunker_code,"%"], "PLAIN DOWN"];
}; 

and the second one

private ["_bunker_code"];
_Chance = 1;
_bunker_code = bunkercode;
_Humanity =     player getVariable["humanity",0];
titleText ["Its top secret so...maybe.","PLAIN DOWN"]; titleFadeOut 3;
if((_Humanity >= 15000) && (_Humanity <= 29999)) then  {
player playActionNow "Medic";
        cutText [format["Fine here. The code is %1 plz don't tell other players let them have a challenge or I change it.",_bunker_code,"%"], "PLAIN DOWN"];
}else{	

if((_Humanity >= -1999) && (_Humanity <= 14999)) then {
        if(random 100 <= _Chance) then {
		player playActionNow "Medic";
        cutText [format["Fine here. The code is %1 plz don't tell other players let them have a challenge or I change it.",_bunker_code,"%"], "PLAIN DOWN"];
};
}else{

if((_Humanity <= -2000) && (_Humanity >= -15000)) then  {
		 player playActionNow "Medic";
         cutText [format["I told you its top secret so no!!!",_bunker_code,"%"], "PLAIN DOWN"];
};
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Try this.

_Chance = 1;
_bunker_code = bunkercode;
_Humanity = player getVariable["humanity",0];
_roll = floor(random 100);
titleText ["Its top secret so...maybe.","PLAIN DOWN"]; titleFadeOut 3;
sleep 3;

if((_Humanity >= 15000) && (_Humanity <= 29999)) then {
    player playActionNow "Medic";
    cutText [format["Fine here. The code is %1 plz don't tell other players let them have a challenge or I change it.",_bunker_code,"%"], "PLAIN DOWN"];
    } else {
    if((_Humanity >= -1999) && (_Humanity <= 14999) && (_roll <= _Chance)) then {
            player playActionNow "Medic";
            cutText [format["Fine here. The code is %1 plz don't tell other players let them have a challenge or I change it.",_bunker_code,"%"], "PLAIN DOWN"];
        } else {
            if((_Humanity <= -2000) && (_Humanity >= -15000)) then {
            player playActionNow "Medic";
            cutText [format["I told you its top secret so no!!!",_bunker_code,"%"], "PLAIN DOWN"];
        } else {
            // You might want to add something here if none of the requirements is not met.
        };
    };
};
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...