Advertisement
Savekiki

1.3

May 3rd, 2022
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. var feeling;
  2. var preference;
  3. var str= "";
  4. var hwords = ["cheerful", "delightful", "joy"];
  5. var swords = ["smile", "hugs", "lovely"];
  6. var uwords = ["passion", "create", "persist"];
  7. if (feeling == "happy" && preference == "words") {
  8. for (var i = 0; i < hwords.length; i++) {
  9. str = (str + hwords[i]) + "\n";
  10. }
  11. }
  12. setText("quoteInput", str) ;
  13. console.log("Stay Positive!");
  14. onEvent("quoteInput", "click", function() {
  15. if (feeling == "happy" && preference == "quote") {
  16. setText ("quoteInput", "The only thing that will make you happy is being happy with who you are.");
  17. }
  18. });
  19. onEvent("feelsDrop", "click", function( ) {
  20. feelings = getText ("feelsDrop");
  21. });
  22. onEvent("subButton", "click", function( ) {
  23. playSound("sound://category_achievments/lighthearted_bonus_objective_1.mp3", false);
  24. });
  25.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement