while (true) {
msg ("Type your command.")
get input {
switch (result) {
case ("open") {
msg ("opening door")
UnlockExit (room00exit)
}
}
}
}
Error running script: Only one 'get input' can be in progress at a time
msg ("<br/>The screen clears and a single prompt appears in green.<br/><br/>Please type the last name of the person you would like to search or type 'stop' to quit using the computer or type 'return' to return to the program selection screen:<br/>")
get input {
switch (result) {
case ("Dingo", "dingo") {
play sound ("alarm.mp3", false, false)
msg ("CLASSIFIED...<br/><br/>CLASSIFIED...<br/><br/>ACCESS DENIED.<br/><br/>CLASSIFIED...<br/><br/>CLASSIFIED...<br/><br/>ACCESS DENIED.")
wait {
computer loop
}
}
case ("Magoo","magoo") {
msg ("<b><u>Name:</b></u> Xanadu Magoo<br/><br/><b><u>General Appearance:</b></u> Serious dork. Early thirties. 5'8\". 105 pounds. Light brown hair, hazel eyes, pasty white complexion.<br/><br/><b><u>Occupation:</b></u> Science Teacher at the Holy Moly Incapables<br/><b><u>Ethnicity:</b></u> Caucasian, American<br/><br/><b><u>Specialties:</b></u> Above average knowledge in science, especially physics and chemisty<br/><br/><b><u>Notes:</b></u> Escaped several assassination attempts in the desert. In doing so, killed two desert patrol guards, one via electrocution and one died of complication with an unknown biotic factor. Infiltrated our compound for unknown reasons. Was forced into unconsciousness by Dr. Dingo himself upon arrival. Assassination was to immediately follow, but Dr. Dingo would not allow it. Instead, Xanadu Magoo is currently being help captive in prison cell one by orders of Dr. Dingo.")
wait {
computer loop
case ("stop") {
msg ("You type quit and hit enter. You back away from the computer and look for better things to do.")
}
default {
default to program
}
case ("stop") {
msg ("You stop using the computer and you look for better things to do.")
wait {
MoveObject (Xanadu, sarlashkars office)
}
case ("return") {
msg ("<br/>You type in 'return' and you return to the program option screen.<br/>")
wait {
msg ("<br/>Which program would you like to run (type 'stop' to stop using the computer)?<br/>1 - Dingo Database<br/>2 - Compound Information<br/>Stop - quit using computer<br/>")
get input {
switch (result) {
case ("1") {
computer loop
}
case ("2") {
computer loop 2
}
case ("stop") {
msg ("You type quit and hit enter. You back away from the computer and look for better things to do.")
}
default {
default to program
}
}
while (true) {
msg ("Type your command.")
get input {
switch (result) {
case ("open") {
msg ("opening door")
UnlockExit (room00exit)
}
}
}
}
get input {
msg("You said: " + result)
}
get input {
msg("You said: " + result)
}
get input {
msg("You said: " + result)
get input {
msg("You said: " + result)
}
}
get input {
//do input stuff
//this section only happens after the input is resolved
}
//this stuff is still happening while the game is waiting for your input
//attempt to loop back to input
//error because the game is still waiting for your input while trying to rerun the get input again
//computer terminal activation and whatever text goes here before the input
msg ("Type your command.")
do (computer, "command prompt")
//this calls the "command prompt" script from the object 'computer'
//command prompt script
getinput {
switch (result) {
case ("open") {
//do open stuff here
}
default { //this is the equivalent of an 'else' for a switch, no matching cases will execute this code
do (computer, "command prompt")
//this causes the command prompt to repeat on an invalid command
}
}
}