Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- UserInputInterfaceChoice = {...}
- --UserInputInterfaceChoice is a click for the player to chose between a screen of options going from CharacterCount 1-10 or other, CharacterCount 11-20 or other if other is pressed, progressing until CharacterCount 51-52 to represent genesis characters
- StoryBranchCharacterCount = readTxtFileInFolder(Branches)
- -- Folder 'Branches' is used to pull txt file data on number of starting point characters available to be chosen
- StoryTrackCount = readTxtFileInFolder(Story Tracks)
- --Folder 'Story Tracks' is used to know max value of main story tracks (of which base value might be 1-3) based on a principle of a scale of a personality list from evil to indifferent to nice to where visual novel outcomes will differ.
- CharacterCount = 0
- --CharacterCount is a value that tracks specific character chosen to be played in the story
- CharacterFolderIntroduction = readTxtFileInFolder(CharacterCount)
- --Is the value of the amount of characters needed to go through
- UserInputInterfaceWipeValue = 0
- --Tracks a count going up to 10 and keeps resetting position where text is placed on screen
- Function UserInputInterfaceWipe
- if UserInputInterfaceWipeValue == 1 then
- term.setCursorPos(1, 1)
- elseif UserInputInterfaceWipeValue == 2 then
- term.setCursorPos(2, 2)
- elseif UserInputInterfaceWipeValue == 3 then
- term.setCursorPos(3, 3)
- elseif UserInputInterfaceWipeValue == 4 then
- term.setCursorPos(4, 4)
- elseif UserInputInterfaceWipeValue == 5 then
- term.setCursorPos(5, 5)
- elseif UserInputInterfaceWipeValue == 6 then
- term.setCursorPos(6, 6)
- elseif UserInputInterfaceWipeValue == 7 then
- term.setCursorPos(7, 7)
- elseif UserInputInterfaceWipeValue == 8 then
- term.setCursorPos(8, 8)
- elseif UserInputInterfaceWipeValue == 9 then
- term.setCursorPos(9, 9)
- else term.setCursorPos(10, 10)
- end
- end
- Function PullCharacterIntroduction()
- UserInputInterfaceWipe()
- Print(CharacterFolderIntroduction)
- end
- Function PullDataFromCharacterCount()
- end
- --Choose story folder based on CharacterCount value
- Function pullCharacterCountValueBasedOnClick()
- end
- --Based on what was clicked on the screen, a value is assigned corresponding to the character
- For i = 1, StoryBranchCharacterCount do
- if CharacterCount values == 11,21,31,41 or 51 then
- if UserInputInterfaceChoice == other then continue running the program through
- term.setCursorPos(1, 1)
- shell.run("clear")
- else terminate current running program and continue in the process of visual novel game
- end
- end
- CharacterCount = CharacterCount+1
- UserInputInterfaceWipeValue = UserInputInterfaceWipeValue+1
- if UserInputInterfaceWipeValue == 11 then
- UserInputInterfaceWipeValue = 1
- end
- PullCharacterIntroduction(CharacterCount)
- end
- --For x amount of StoryBranchCharacterCount value program resets user-input screen at specific values of 10, runs function PullCharacterIntroduction for all characters, which takes values from all characters' txt files and the program does so in an ordered manner. For each 10 characters it will wait on a user-interface choice, if choice is other, then program will keep running if not it terminates and moves onwards in the process.
- If previous UserInputInterface == true and not other then pullCharacterCountValueBasedOnClick() then
- pullCharacterCountValueBasedOnClick = CharacterCount
- end
- -- Assigns value to CharacterCount based on clicking on a character from the user-interface. This value is important because it will then be used to pull the appropriate data for the assigned character's story-line in the game.
- PullDataFromCharacterCount()
- --Choose story folder based on CharacterCount value assigned on user-interface input
- --For example if user input corresponds to character 52, now the program will start to pull data like txt files, images etc.
- CategorizeAllFilesFromLowestToHighestNumberAndAlphabeticalOrder = createTableOfContentsOfFolder
- TakeCategorizationAndGoThroughOrder
- PullImageForBackground = readFromLowestNumberToHighestAndAToZ
- PullImageForCharacter = readFromLowestNumberToHighestAndAToZ
- PullDialogueTxtFile = readFromLowestNumberToHighestAndAToZ
- PullMp3Music = readFromLowestNumberToHighestAndAToZ
- DetermineIfDialogueFitsOrAnotherSlideIsNeededForTxtFileAndHowManyAreNeeded = createSlideCountReferenceForTxtFileOfDialogue
- SceneCountOfCharacterStory = readBasedOnCharacterCountValueAndDetermineFolderThenFindSceneCountBasedOnTxtFileOf(SceneCount)Folder
- ChoiceOption = 0
- EvilScore = 0
- IndifferentScore = 0
- GoodScore = 0
- SceneCountOfCharacterStoryValue = 0
- For i = 1, SceneCountOfCharacterStory do
- SceneCountOfCharacterStoryValue = SceneCountOfCharacterStoryValue+1
- PullImageForBackGround
- PullImageForCharacter
- PullDialogueTxtFile
- PullMp3Music
- DetermineIfDialogueFitsOrAnotherSlideIsNeededForTxtFileAndHowManyAreNeeded
- Print(PullImageForBackGround, PullImageForCharacter)
- Print(PullDialogueTxtFile(BasedOnAmountOfSlidesNeeded))
- if [BracketedTxtInFile] = Choice then
- for i = 1, (ParanthesizedValueInTxtFile) do
- ChoiceOption = ChoiceOption+1
- term.setCursorPos(DependingOnChoiceOptionValue)
- print({SquigglyBracketedChoiceInTxtFileBasedOnValueOfChoiceOption})
- if UserInputInterFaceChoice = 1, then
- PullDataFromTxtFileInThisFolderCalled(ChoiceOne)
- elseif UserInputInterFaceChoice = 2 then
- PullDataFromTxtFileInThisFolderCalled(ChoiceTwo)
- else
- PullDataFromTxtFileInThisFolderCalled(ChoiceThree)
- end
- if "TxtPutBetweenQuotationMarks" = Evil then
- EvilScore = EvilScore+1
- elseif "TxtPutBetweenQuotationMarks" = Indifferent then
- IndifferentScore = IndifferentScore+1
- elseif "TxtPutBetweenQuotationMarks" = Good then
- GoodScore = GoodScore+1
- end
- shell.run("clear")
- end
- If EvilScore => IndifferentScore and GoodScore then
- PullLastFileOfTxtDialogueFromEvilFolder
- Elseif Indifferentscore => Evilscore and Goodscore then
- PullLastFileOfTxtDialogueFromIndifferentFolder
- Elseif GoodScore => IndifferentScore and Evilscore then
- PullLastFileOfTxtDialogueFromGoodFolder
- Else PullLastFileOfTxtDialogueFromNeutralFolder
- end
- --Program Goes through one dialogue, then clears
Add Comment
Please, Sign In to add comment