Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var status;
- function start() {
- status = -1;
- action(1, 0, 0);
- }
- function action(mode, type, selection) {
- /*if (mode == 1) {
- status++;
- }else{ // States that if you click End Chat or No, status goes down by 1
- status--;
- } */
- if (mode == 0) { // If player selects End Chat
- cm.dispose();
- return;
- } else { // If player does not select End Chat
- if (mode == 1) { // If player selects Next or Yes
- status++;
- } else { // If player selects Prev or No
- status--;
- }
- }
- if (status == 0) { // First box
- if (mode == 0) { // If the player hits no in status 2
- cm.sendOk ("Thank you for not robbing or hurting me!!!")
- cm.dispose();
- //return; <--- Unnecessary
- } else { // What the text box shows normally
- cm.sendNext("Please don't hurt me, I'm a homeless!");
- }
- } else if (status == 1) { // Second Box
- cm.sendYesNo("#bYou have a oppurtunity to steal his goods, he's been saving for years, you hesitate, what is your choice? Will you steal it?");
- } else if (status == 2) { // If player hits Yes in Status 2, value of status goes up by one
- cm.sendOk ("Thank you for not robbing or hurting me!!!")
- cm.dispose();
- //return; <--- Unnecessary
- }
- /*if (mode == 0) {
- cm.sendOk ("Thank you for not robbing or hurting me!!!")
- cm.dispose();
- return;
- } else if (mode == 1) {
- cm.gainItem (2000005, 100)
- cm.warp (100000000, 0)
- cm.dispose();
- return;
- }*/ // Unnecessary portion
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement