Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*This part of the code is for sodium and water island*/
- setScreen("SodiumandWater");
- onEvent("enter", "click", function() {
- /*This shows that if these two things were checked, change screens*/
- var msgcheck = "Two Hydrogen and Water";
- if(getChecked("cupbutton")){
- if(getText("nah2oDropdown") == msgcheck) {
- playSound("sound://category_explosion/8bit_explosion.mp3");
- setScreen("sovietrussiascreen");
- }
- }
- else {
- /*Plays error sound, for every instance of error screen*/
- setScreen("errorscreen");
- playSound("sound://category_notifications/vibrant_game_pingy_roll_notification_4.mp3");
- }
- });
- onEvent("cesium", "click", function () {
- setText("text", "Even Bigger Explosion.");
- });
- /*This part of the code is for Soviet Russia Island*/
- onEvent("button1", "click", function( ) {
- /*This shows that if these two things were checked, change screens*/
- var msgcheck = "revolver";
- if(getChecked("radio_button2")){
- if(getText("dropdown2") == msgcheck) {
- setScreen("baathistscreen1");
- }
- }
- else {
- setScreen("errorscreen");
- playSound("sound://category_notifications/vibrant_game_pingy_roll_notification_4.mp3");
- }
- });
- /*This part of the code is for Baathist island*/
- onEvent("baathistButton", "click", function( ) {
- /*This shows that if these two things were checked, change screens*/
- var msgcheck = "Syrian Flag";
- playSound("nothing-to-see-here.mp3");
- if(getChecked("baathistradio_button3")){
- if(getText("baathistDropDown") == msgcheck) {
- setScreen("Damascus_al-Jomhuriyat");
- }
- }
- else {
- setScreen("errorscreen");
- playSound("sound://category_notifications/vibrant_game_pingy_roll_notification_4.mp3");
- }
- });
- onEvent("buttonEnlightened", "click", function () {
- setText("baathistTextInput", "The capital of Syria is Damascus.");
- });
- /*This part of the code is for Damascus al-Jomhuriyat*/
- onEvent("go", "click", function( ) {
- /*This shows that if these two things were checked, change screens*/
- var msgcheck = "New Damascus";
- if(getChecked("ns")){
- if(getText("dropDown") == msgcheck) {
- setScreen("win");
- }
- }
- else {
- setScreen("errorscreen");
- playSound("sound://category_notifications/vibrant_game_pingy_roll_notification_4.mp3");
- }
- });
- onEvent("goBack", "click", function () {
- setScreen("SodiumandWater");
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement