Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.39 KB | None | 0 0
  1. /*This part of the code is for sodium and water island*/
  2.  
  3. setScreen("SodiumandWater");
  4. onEvent("enter", "click", function() {
  5. /*This shows that if these two things were checked, change screens*/
  6. var msgcheck = "Two Hydrogen and Water";
  7. if(getChecked("cupbutton")){
  8. if(getText("nah2oDropdown") == msgcheck) {
  9. playSound("sound://category_explosion/8bit_explosion.mp3");
  10. setScreen("sovietrussiascreen");
  11. }
  12. }
  13.  
  14. else {
  15. /*Plays error sound, for every instance of error screen*/
  16. setScreen("errorscreen");
  17. playSound("sound://category_notifications/vibrant_game_pingy_roll_notification_4.mp3");
  18. }
  19. });
  20.  
  21. onEvent("cesium", "click", function () {
  22. setText("text", "Even Bigger Explosion.");
  23. });
  24.  
  25. /*This part of the code is for Soviet Russia Island*/
  26. onEvent("button1", "click", function( ) {
  27. /*This shows that if these two things were checked, change screens*/
  28. var msgcheck = "revolver";
  29. if(getChecked("radio_button2")){
  30. if(getText("dropdown2") == msgcheck) {
  31. setScreen("baathistscreen1");
  32. }
  33. }
  34.  
  35. else {
  36. setScreen("errorscreen");
  37. playSound("sound://category_notifications/vibrant_game_pingy_roll_notification_4.mp3");
  38. }
  39. });
  40.  
  41.  
  42. /*This part of the code is for Baathist island*/
  43. onEvent("baathistButton", "click", function( ) {
  44.  
  45. /*This shows that if these two things were checked, change screens*/
  46. var msgcheck = "Syrian Flag";
  47. playSound("nothing-to-see-here.mp3");
  48. if(getChecked("baathistradio_button3")){
  49. if(getText("baathistDropDown") == msgcheck) {
  50. setScreen("Damascus_al-Jomhuriyat");
  51. }
  52. }
  53. else {
  54. setScreen("errorscreen");
  55. playSound("sound://category_notifications/vibrant_game_pingy_roll_notification_4.mp3");
  56. }
  57. });
  58.  
  59. onEvent("buttonEnlightened", "click", function () {
  60. setText("baathistTextInput", "The capital of Syria is Damascus.");
  61. });
  62.  
  63.  
  64. /*This part of the code is for Damascus al-Jomhuriyat*/
  65. onEvent("go", "click", function( ) {
  66. /*This shows that if these two things were checked, change screens*/
  67. var msgcheck = "New Damascus";
  68. if(getChecked("ns")){
  69. if(getText("dropDown") == msgcheck) {
  70. setScreen("win");
  71. }
  72. }
  73.  
  74. else {
  75. setScreen("errorscreen");
  76. playSound("sound://category_notifications/vibrant_game_pingy_roll_notification_4.mp3");
  77. }
  78. });
  79.  
  80.  
  81. onEvent("goBack", "click", function () {
  82. setScreen("SodiumandWater");
  83. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement