- LaKing
//This script will create a custom menu, and display it once.
MY_SUBMENU_inCommunication =
[
["User submenu",false],
["Option-1", [2], "", -5, [["expression", "player sidechat ""-1"" "]], "0", "0"],
["Option 0", [3], "", -5, [["expression", "player sidechat "" 0"" "]], "1", "0"],
["Option 1", [4], "", -5, [["expression", "player sidechat "" 1"" "]], "1", "1"]
];
MY_MENU_inCommunication =
[
// First array: "User menu" This will be displayed under the menu, bool value: has Input Focus or not.
["User menu",false],
// Syntax and semantics for following array elements:
// ["Title_in_menu", [assigned_key], "Submenu_name", -5, [["expression","script"]], "isVisible", "isActive" <, optional user arguments ... > ]
// Title_in_menu: string that will be displayed for the player
// Assigned_key: 0 - no key, 1 - escape key, 2 - key-1, 3 - key-2, ... , 10 - key-9, 11 - key-0, 12 and up... the whole keyboard
// Submenu_name: User menu name string (eg "#USER:MY_SUBMENU_NAME" ), "" for script to execute.
// script: command to be executed on activation. (no arguments passed)
// isVisible - Boolean 1 or 0 for yes or no
// isActive - Boolean 1 or 0 for yes or no - if item is not active, it appears gray.
["First", [0], "", -5, [["expression", "player sidechat ""First"" "]], "1", "1"],
["Second", [2], "", -5, [["expression", "player sidechat ""Second"" "]], "1", "1"],
["Submenu", [3], "#USER:MY_SUBMENU_inCommunication", -5, [["expression", "player sidechat ""Submenu"" "]], "1", "1"]
];
showCommandingMenu "#USER:MY_MENU_inCommunication";