Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var feeling;
- var preference;
- var str= "";
- var hwords = ["cheerful", "delightful", "joy"];
- var swords = ["smile", "hugs", "lovely"];
- var uwords = ["passion", "create", "persist"];
- if (feeling == "happy" && preference == "words") {
- for (var i = 0; i < hwords.length; i++) {
- str = (str + hwords[i]) + "\n";
- }
- }
- setText("quoteInput", str) ;
- console.log("Stay Positive!");
- onEvent("quoteInput", "click", function() {
- if (feeling == "happy" && preference == "quote") {
- setText ("quoteInput", "The only thing that will make you happy is being happy with who you are.");
- }
- });
- onEvent("feelsDrop", "click", function( ) {
- feelings = getText ("feelsDrop");
- });
- onEvent("subButton", "click", function( ) {
- playSound("sound://category_achievments/lighthearted_bonus_objective_1.mp3", false);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement