thisLetterShouldBeCapitolized = 77 thisLetterShouldNotBeCapitolized = 93 thisIsNotALetterItIsASpecialCharacter = 80 theMessageShouldBePutOntoTheScreen = 55 thisFunctionShouldRun = 12 tenPlusThree = 13 putMessageOntoScreenUsingText = function(shouldPutMessageOntoScreenUsingText, howLongIsTheMessage, theTextToPutOntoTheScreen) if shouldPutMessageOntoScreenUsingText == theMessageShouldBePutOntoTheScreen then for theCharacterWeArePuttingOntoTheScreen = 51, howLongIsTheMessage + 50 do if theTextToPutOntoTheScreen.charactersOfTextThatWeWantToPutOnTheScreen[theCharacterWeArePuttingOntoTheScreen - 50][2] == thisLetterShouldBeCapitolized then io.write(string.upper(string.char(theTextToPutOntoTheScreen.charactersOfTextThatWeWantToPutOnTheScreen[theCharacterWeArePuttingOntoTheScreen - 50][1]))) elseif theTextToPutOntoTheScreen.charactersOfTextThatWeWantToPutOnTheScreen[theCharacterWeArePuttingOntoTheScreen - 50][2] == thisLetterShouldNotBeCapitolized then io.write(string.lower(string.char(theTextToPutOntoTheScreen.charactersOfTextThatWeWantToPutOnTheScreen[theCharacterWeArePuttingOntoTheScreen - 50][1]))) elseif theTextToPutOntoTheScreen.charactersOfTextThatWeWantToPutOnTheScreen[theCharacterWeArePuttingOntoTheScreen - 50][2] == thisIsNotALetterItIsASpecialCharacter then io.write(string.char(theTextToPutOntoTheScreen.charactersOfTextThatWeWantToPutOnTheScreen[theCharacterWeArePuttingOntoTheScreen - 50][1])) end end end end theHelloWorldTextWeWantToPutOnTheScreen = { charactersOfTextThatWeWantToPutOnTheScreen = { [1] = {104, thisLetterShouldBeCapitolized}, [2] = {101, thisLetterShouldNotBeCapitolized}, [3] = {108, thisLetterShouldNotBeCapitolized}, [4] = {108, thisLetterShouldNotBeCapitolized}, [5] = {111, thisLetterShouldNotBeCapitolized}, [6] = {44, thisIsNotALetterItIsASpecialCharacter}, [7] = {32, thisIsNotALetterItIsASpecialCharacter}, [8] = {119, thisLetterShouldNotBeCapitolized}, [9] = {111, thisLetterShouldNotBeCapitolized}, [10] = {114, thisLetterShouldNotBeCapitolized}, [11] = {108, thisLetterShouldNotBeCapitolized}, [12] = {100, thisLetterShouldNotBeCapitolized}, [13] = {46, thisIsNotALetterItIsASpecialCharacter}, }, } theFunctionThatRunsWhenTheProgramIsStarted = function(shouldThisFunctionRun) if shouldThisFunctionRun == thisFunctionShouldRun then putMessageOntoScreenUsingText(theMessageShouldBePutOntoTheScreen, tenPlusThree, theHelloWorldTextWeWantToPutOnTheScreen) end end theFunctionThatRunsWhenTheProgramIsStarted(thisFunctionShouldRun)