Skip to content

Instantly share code, notes, and snippets.

@easrng
Created March 10, 2020 17:09
Show Gist options
  • Save easrng/c48a9fdc8f382f6a91faa442df57641c to your computer and use it in GitHub Desktop.
Save easrng/c48a9fdc8f382f6a91faa442df57641c to your computer and use it in GitHub Desktop.
onEvent("AAAAAAAAAAA", "click", function() {
var MyRandomNoun = randomNumber(1, 8);
if ((MyRandomNoun == 1)) {
setText("prompt", "plant");
}
if ((MyRandomNoun == 2)) {
setText("prompt", "fire");
}
if ((MyRandomNoun == 3)) {
setText("prompt", "earth");
}
if ((MyRandomNoun == 4)) {
setText("prompt", "light");
}
if ((MyRandomNoun == 5)) {
setText("prompt", "ice");
}
if ((MyRandomNoun == 6)) {
setText("prompt", "dark");
}
if ((MyRandomNoun == 7)) {
setText("prompt", "water");
}
if ((MyRandomNoun == 8)) {
setText("prompt", "electricity");
}
});
onEvent("AAAAAAAAAAA", "click", function( ) {
var MyRandomAdj = randomNumber(1, 7);
if (MyRandomAdj == 1) {
setText("pleasework", "pastels");
}
if (MyRandomAdj == 2) {
setText("pleasework", "dark tones");
}
if (MyRandomAdj == 3) {
setText("pleasework", "light tones");
}
if (MyRandomAdj == 4) {
setText("pleasework", "warm colors");
}
if (MyRandomAdj == 5) {
setText("pleasework", "cold colors");
}
if (MyRandomAdj == 6) {
setText("pleasework", "earthy tones");
}
if (MyRandomAdj == 7) {
setText("pleasework", "neons");
}
});
onEvent("AAAAAAAAAAA", "click", function( ) {
var MyRandomColor = randomNumber(1, 8);
if (MyRandomColor == 1) {
setText("trait", "soft");
}
if (MyRandomColor == 2) {
setText("trait", "bold");
}
if (MyRandomColor == 3) {
setText("trait", "defensive");
}
if (MyRandomColor == 4) {
setText("trait", "timid");
}
if (MyRandomColor == 5) {
setText("trait", "agressive");
}
if (MyRandomColor == 6) {
setText("trait", "intelligent");
}
if (MyRandomColor == 7) {
setText("trait", "compassionate");
}
if (MyRandomColor == 8) {
setText("trait", "wise");
}
});
onEvent("button1", "click", function(event) {
setText("prompt", "please");
setText("ADJECTIVEPLEASE", "help");
setText("pleasework", "me");
});
onEvent("button2", "click", function(event) {
setText("prompt", "prompt");
setText("trait", "trait");
setText("pleasework", "color");
});
onEvent("button3", "click", function(event) {
setScreen("screen1");
});
onEvent("1:10", "click", function(event) {
setText("1-10Text", randomNumber(1, 10));
});
onEvent("button6", "click", function(event) {
setText("1-100", randomNumber(1, 100));
});
onEvent("button7", "click", function(event) {
setText("label2", randomNumber(1, 1000));
});
onEvent("button8", "click", function(event) {
setText("1-10000", randomNumber(1, 10000));
});
onEvent("button5", "click", function(event) {
setScreen("background");
});
onEvent("surprise", "click", function(event) {
setScreen("testingfunkycommands");
});
onEvent("button10", "click", function(event) {
setScreen("background");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment