Suicide Script Confirmation

i made that chasnge but still no good. im not getting the option to confirm or exit... sorry to be a pain matty, i wish i knew more about this to help with it

If you do search for _cMenu or some such and add in #USER:Suicideconfirm like so ["""",""#USER:Suicideconfirm""]
 
got nothing like that, im just using BE

idk man
Code:
pathtosuicide = "addons\suicide\";
EXECscript1 = 'player execVM "'+pathtosuicide+'%1"';
 
Suicideconfirm =
[
    ["",false],
        ["are you sure?", [2], "#USER:Confirmagain", -5, [["expression", ""]]], "1", "1"],
        ["", [-1], "", -5, [["expression", ""]], "1", "0"],
            ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
 
];};
 
Confirmagain =
[
    ["",false],
        ["Really kill yourself?", [2], "", -5, [["expression", format[EXECscript1,"suicide.sqf"]]], "1", "1"],
        ["", [-1], "", -5, [["expression", ""]], "1", "0"],
            ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];
 
showCommandingMenu "#USER:Suicideconfirm";

try that
 
no good, its just not showing the option... all good mate im not going to keep bothering you over it... the suicide script works just fine without it
 
post a link to your pbo, with these in it. Please.


ok matty i worked it out... thanks for your help...
i knew that the menu works because i have freds wardrobe installed so i scanned his scripts for a solution...

This is what you had.

Code:
pathtosuicide = "addons\suicide\";
EXECscript1 = 'player execVM "'+pathtosuicide+'%1"';
 
Suicideconfirm =
[
    ["",false],
        ["Confirm suicide?", [2], "", -5, [["expression", format[EXECscript1,"suicide.sqf"]]], "1", "1"],
        ["", [-1], "", -5, [["expression", ""]], "1", "0"],
            ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
 
];};
 
showCommandingMenu "#USER:Suicideconfirm";

This is what works.

Code:
_pathtosuicide = "addons\suicide\";
_EXECscript1 = 'player execVM "'+_pathtosuicide+'%1"';
 
Suicideconfirm =
[
    ["",true],
        ["CONFIRM SUICIDE", [2], "", -5, [["expression", format[_EXECscript1, "suicide.sqf"]]], "1", "1"],
        ["", [-1], "", -5, [["expression", ""]], "1", "0"],
            ["IM NOT DONE YET", [3], "", -3, [["expression", ""]], "1", "1"]
];
 
 
showCommandingMenu "#USER:Suicideconfirm";

Yay! im not a complete noob!
 
ok matty i worked it out... thanks for your help...
i knew that the menu works because i have freds wardrobe installed so i scanned his scripts for a solution...

This is what you had.

Code:
pathtosuicide = "addons\suicide\";
EXECscript1 = 'player execVM "'+pathtosuicide+'%1"';
 
Suicideconfirm =
[
    ["",false],
        ["Confirm suicide?", [2], "", -5, [["expression", format[EXECscript1,"suicide.sqf"]]], "1", "1"],
        ["", [-1], "", -5, [["expression", ""]], "1", "0"],
            ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
 
];};
 
showCommandingMenu "#USER:Suicideconfirm";

This is what works.

Code:
_pathtosuicide = "addons\suicide\";
_EXECscript1 = 'player execVM "'+_pathtosuicide+'%1"';
 
Suicideconfirm =
[
    ["",true],
        ["CONFIRM SUICIDE", [2], "", -5, [["expression", format[_EXECscript1, "suicide.sqf"]]], "1", "1"],
        ["", [-1], "", -5, [["expression", ""]], "1", "0"],
            ["IM NOT DONE YET", [3], "", -3, [["expression", ""]], "1", "1"]
];
 
 
showCommandingMenu "#USER:Suicideconfirm";

Yay! im not a complete noob!

["",false],

thats the only difference >.> haha
 
and the _ before the path names
_pathtosuicide
_EXECscript1

That has no effect. I use a script similar to this, with popular results. That false/true is the only thing thats changed, though in the menus I use (that I used to format this suicide thing) use false, and work. I really don't know wtf is different
 
i dont know lol, im still learning... but it works like that so im not changing it.

You also removed the }; from the looks of it, and that's probably why it wasn't working because there was no opening brace.
The ["",true] or ["",false] wont change the function of the menu since that true/false is only to check if it should disable custom icons for the menus listed or not. Since you have no custom icons defined it should be set to true so it disables the option. :)
 
can confirm its the }; that is messing it up also in the code Matt put up with 2 confirms the top part has extra ] should be
["are you sure?", [2], "#USER:Confirmagain", -5, [["expression", ""]], "1", "1"],
 
PHP:
private ["_Secondary"];
canAbort = true;
_Secondary = currentWeapon player;
 
if(player ammo _Secondary > 1) then {
cutText [(localize "WZ_suicide_bad"), "PLAIN DOWN"];
} else {
playsound "SuicideSound";
player addEventHandler ["fired", {if (alive player) then { player SetDamage 1.1;};}];
cutText [format[localize "WZ_suicide_dialog_1"], "PLAIN DOWN"];
sleep 3;
cutText [format[localize "WZ_suicide_dialog_2"], "PLAIN DOWN"];
sleep 3;
cutText [format[localize "WZ_suicide_dialog_3"], "PLAIN DOWN"];
sleep 3;
cutText [format[localize "WZ_suicide_dialog_4"], "PLAIN DOWN"];
canAbort = false;
player playmove "ActsPercMstpSnonWpstDnon_suicide1B";
sleep 8.6;
player fire _Secondary;
};




Here's how I implemented it on your server to commit suicide, it is necessary to leave the store pistol cartridge 1 if the store will be more rounds of ammunition, with the suicide attempt just see a message that you do not comply with the conditions for death :) go ahead
 
Back
Top