CameronFitzy

CYOA Sub

Oct 31st, 2021 (edited)
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. if(!A.toLowerCase().includes(`error`))
  2. {M=I.split(` `)[3];
  3. Pc=parseInt(I.split(` `)[1]);
  4. Pl=parseInt(I.split(` `)[2]);
  5.  
  6. if(M==`Rules`)
  7. {if(S.Rules)
  8. {O=S.Rules}
  9. else
  10. {O=`You will be given options to choose from. !CommandName CHOICE to progress. !CommandName to see your choices again. !CommandName Reset to reset progress. !CommandName Back/Go Back to go to last prompt.`}};
  11.  
  12. if(M==`Wrong`)
  13. {if(S.NoMatch)
  14. {O=S.NoMatch}
  15. else
  16. {O=`The choice you chose is not a response you can choose from. Please choose another`}};
  17.  
  18. if(M==`Reset`)
  19. {if(S.ResetMessage)
  20. {O=S.ResetMessage}
  21. else
  22. {O=`The sands of time rewind and you find yourself back where it all began.`}};
  23.  
  24. if(M==`Back`)
  25. {if(S.BackMessage)
  26. {O=S.BackMessage}
  27. else
  28. {O=`You reflect on the choices of the past and decide to go back and change them.`}};
  29.  
  30. if(M==`Read`)
  31. {O=S[Pc].Prompt};
  32.  
  33. if(M==`Error`)
  34. {O=`Some of the data did not load properly please try again.`};
  35.  
  36. O}
  37. else
  38. {`Error adding data please try again.`}
Add Comment
Please, Sign In to add comment