Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function main() {
- clear();
- var myString = "this";
- append("Use append(); to add text to the story field. \n\n Add vars to the text like "+myString+".");
- addChoice("Use addChoice(); to add choices.", next);
- }
- function next() {
- clear();
- addChoice("Get a random integer.", function () {
- var myRandomInt = rndInt(0, 21);
- append("\n"+myRandomInt);
- });
- addChoice("Leave.", modExit);
- }
- main();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement