Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
35 lines (29 sloc) 978 Bytes
clear_all();
player_ids = get_player_ship_ids();
function main_menu_callback(shipid, selection)
player_ids = get_player_ship_ids();
if (selection == 0) then
text_to_speech(player_ids[1], "Begin mission, training mission one");
enqueue_lua_script("TRAINING-MISSION-1");
elseif (selection == 1) then
text_to_speech(player_ids[1], "Begin mission, saving planet erph");
enqueue_lua_script("SAVING-PLANET-ERPH");
elseif (selection == 2) then
text_to_speech(player_ids[1], "Begin mission, space pox");
enqueue_lua_script("SPACEPOX");
elseif (selection == 3) then
text_to_speech(player_ids[1], "Begin mission, kali");
enqueue_lua_script("KALI");
elseif (selection == 4) then
text_to_speech(player_ids[1], "Begin mission, demolisher");
enqueue_lua_script("DEMOLISHER");
end
end
show_menu(player_ids[1],
"MAIN MENU\n" ..
"TRAINING MISSION 1\n" ..
"SAVING PLANET ERPH\n" ..
"SPACE POX\n" ..
"KALI\n" ..
"DEMOLISHER\n",
"main_menu_callback");