Advertisement
Godleydemon

generate2.sh

Aug 26th, 2014
414
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 21.09 KB | None | 0 0
  1. #!/bin/bash
  2. clear
  3. ##Functions##
  4. saveFunction(){
  5. echo "#!/bin/bash" >> ./human/$NAME.txt
  6. echo "NAME='$NAME'" >> ./human/$NAME.txt
  7. echo "AGE='$AGE'" >> ./human/$NAME.txt
  8. echo "GENDER='$GENDER'" >> ./human/$NAME.txt
  9. echo "GLASSES='$GLASSES'" >> ./human/$NAME.txt
  10. echo "WEIGHT='$WEIGHT'" >> ./human/$NAME.txt
  11. echo "LENGTH='$LENGTH'" >> ./human/$NAME.txt
  12. echo "HAIR='$HAIR'" >> ./human/$NAME.txt
  13. echo "FEET='$FEET'" >> ./human/$NAME.txt
  14. echo "INCHES='$INCHES'" >> ./human/$NAME.txt
  15. echo "STR='$STR'" >> ./human/$NAME.txt
  16. echo "DEX='$DEX'" >> ./human/$NAME.txt
  17. echo "CON='$CON'" >> ./human/$NAME.txt
  18. echo "INT='$INT'" >> ./human/$NAME.txt
  19. echo "WIS='$WIS'" >> ./human/$NAME.txt
  20. echo "CHAR='$CHAR'" >> ./human/$NAME.txt
  21. echo "JOB='$JOB'" >> ./human/$NAME.txt
  22. if [ "$GENDER" == "female" ]; then
  23.     echo "BREAST='$BREAST'" >> ./human/$NAME.txt
  24.     echo "File saved at ./human/$NAME.txt"
  25. fi
  26. echo "PATH1='$PATH1'" >> ./human/$NAME.txt
  27. echo "NPC1NAME='$NPC1NAME'" >> ./human/$NAME.txt
  28. echo "NPC1GENDER='$NPC1GENDER'" >> ./human/$NAME.txt
  29. echo "NPC1BREAST='$NPC1BREAST'" >> ./human/$NAME.txt
  30. }
  31.  
  32. statsFunction(){
  33. echo "Name: " $NAME
  34. echo "Age:" $AGE
  35. echo "Gender: " $GENDER
  36. echo "$GLASSES"
  37. echo "Weight: " $WEIGHT
  38. echo "Hair: " $LENGTH " and " $HAIR
  39. echo "Height: "$FEET "Feet" $INCHES "Inches"
  40. echo "Job: " $JOB
  41. echo "STR: " $STR
  42. echo "DEX: " $DEX
  43. echo "CON: " $CON
  44. echo "INT: " $INT
  45. echo "WIS: " $WIS
  46. echo "CHAR: " $CHAR
  47.  
  48. if [ "$GENDER" == "female" ]; then
  49.     case $BREAST in
  50.     1) BREAST="A" ;;
  51.     2) BREAST="B" ;;
  52.     3) BREAST="C" ;;
  53.     4) BREAST="D" ;;
  54.     5) BREAST="DD" ;;
  55.     6) BREAST="E" ;;
  56.     esac
  57.     echo "Breasts Size: " $BREAST
  58. fi
  59. }
  60.  
  61. ##Beginning of running script##
  62. read -p "would you like to load a file? y/n: " LOAD
  63. clear
  64.  
  65. ##Load if statement, should detect whether there is a human folder or not first##
  66. if [ "$LOAD" == "y" ]; then
  67.     if [ -d ./human ]; then
  68.         echo "--Files currently available--"
  69.         ls ./human
  70.         read -p "please type the exact name of the character without .txt: " CHARACTER
  71.         . ./human/$CHARACTER.txt
  72.         clear
  73.     else
  74.         echo "There are currently no files to load or the human directory was moved!"
  75.         exit
  76.     fi
  77. else
  78.  
  79. ##Beginning of character creation##
  80.     read -p "Please enter a name: " NAME
  81.     read -p "Please enter gender male/female: " GENDER
  82.     AGE=`shuf -i 17-40 -n 1`
  83.     WEIGHT=`shuf -i 90-180 -n 1`
  84.     HAIR=`shuf -i 1-6 -n 1`
  85.     LENGTH=`shuf -i 1-4 -n 1`
  86.     EYES=`shuf -i 1-4 -n 1`
  87.     FEET=`shuf -i 4-6 -n 1`
  88.     INCHES=`shuf -i 0-11 -n 1`
  89.     BREAST=`shuf -i 1-6 -n 1`
  90.     GLASSES=`shuf -i 0-1 -n 1`
  91.     STR=`shuf -i 3-18 -n 1`
  92.     DEX=`shuf -i 3-18 -n 1`
  93.     CON=`shuf -i 3-18 -n 1`
  94.     INT=`shuf -i 3-18 -n 1`
  95.     WIS=`shuf -i 3-18 -n 1`
  96.     CHAR=`shuf -i 3-18 -n 1`
  97.     JOBROLL=`shuf -i 1-6 -n 1`
  98.     NPC1NAME=`shuf -i 1-6 -n 1`
  99.     NPC1GENDER=`shuf -i 1-2 -n 1`
  100.     NPC1BREAST=`shuf -i 1-6 -n 1`
  101.     NPC1HAIR=`shuf -i 1-6 -n 1`
  102. fi
  103.  
  104. ##The various astetic attributes based on random rolls##
  105. case $JOBROLL in
  106.     1) JOB="CEO" ;;
  107.     2) JOB="Vice-President" ;;
  108.     3) JOB="HumanResources" ;;
  109.     4) JOB="ITManager" ;;
  110.     5) JOB="TechSupport" ;;
  111.     6) JOB="SalesFloorEmployee" ;;
  112. esac
  113.  
  114. case $HAIR in
  115.     1) HAIR="White" ;;
  116.     2) HAIR="Black" ;;
  117.     3) HAIR="Red" ;;
  118.     4) HAIR="Blonde" ;;
  119.     5) HAIR="Brunette" ;;
  120.     6) HAIR="Grey" ;;
  121. esac
  122.  
  123. case $LENGTH in
  124.     1) LENGTH="Short" ;;
  125.     2) LENGTH="Medium" ;;
  126.     3) LENGTH="Long" ;;
  127.     4) LENGTH="Super Long" ;;
  128. esac
  129.  
  130. case $EYES in
  131.     1) EYES="Brown" ;;
  132.     2) EYES="Blue" ;;
  133.     3) EYES="Green" ;;
  134.     4) EYES="Hazel" ;;
  135. esac
  136.  
  137. case $GLASSES in
  138.     0) GLASSES="Eyes: $EYES and wears glasses" ;;
  139.     1) GLASSES="Eye color: $EYES" ;;
  140. esac
  141.  
  142. case $NPC1GENDER in
  143.     1) NPC1GENDER="male" ;;
  144.     2) NPC1GENDER="female" ;;
  145. esac
  146.  
  147. if [ "$NPC1GENDER" == "female" ]; then
  148.     case $NPC1NAME in
  149.         1) NPC1NAME="Alex" ;;
  150.         2) NPC1NAME="Renee" ;;
  151.         3) NPC1NAME="Laura" ;;
  152.         4) NPC1NAME="Lina" ;;
  153.         5) NPC1NAME="Angel" ;;
  154.         6) NPC1NAME="Molly" ;;
  155.     esac
  156.  
  157.     case $NPC1BREAST in
  158.         1) NPC1BREAST="A" ;;
  159.         2) NPC1BREAST="B" ;;
  160.         3) NPC1BREAST="C" ;;
  161.         4) NPC1BREAST="D" ;;
  162.         5) NPC1BREAST="DD" ;;
  163.         6) NPC1BREAST="E" ;;
  164.     esac
  165. else
  166.     case $NPC1NAME in
  167.         1) NPC1NAME="Bob" ;;
  168.         2) NPC1NAME="George" ;;
  169.         3) NPC1NAME="Fred" ;;
  170.         4) NPC1NAME="Greg" ;;
  171.         5) NPC1NAME="Tony" ;;
  172.         6) NPC1NAME="Justin" ;;
  173.     esac
  174. fi
  175.  
  176.     case $NPC1HAIR in
  177.         1) NPC1HAIR="White" ;;
  178.         2) NPC1HAIR="Black" ;;
  179.         3) NPC1HAIR="Red" ;;
  180.         4) NPC1HAIR="Blonde" ;;
  181.         5) NPC1HAIR="Brunette" ;;
  182.         6) NPC1HAIR="Grey" ;;
  183.     esac
  184. ##This is where it calls the stats and echos them back##
  185. statsFunction
  186.  
  187. echo " "
  188.  
  189. ##Flavor text, will add more to this later##
  190. if [ "$GENDER" == "female" ]; then
  191.     if [ "$JOB" == "CEO" ]; then
  192.         if [ "$INT" == "3" ]; then
  193.             echo "Demeanor:"
  194.             echo " "
  195.                     echo "You stare blankly at the square box in front of you and scratch at your $HAIR hair. You know this box is supposed to do something. You smack it thinking it might help. Unfortunately it seems smacking it caused a piece to fall off. Picking it up you examine it and pull out a hammer. Knowing full well this will fix the problem."
  196.             TDEMEANOR="1"
  197.         elif [ "$INT" -le "14" ]; then
  198.             echo "Demeanor:"
  199.             echo " "
  200.             echo "Being a woman, it's been hard to be in the lime light of the company, being that you're not particularly smart. Especially in the IT field. You think secretly the IT scum are making fun of you behind your back. You always just merely flip your $LENGTH $HAIR hair and turn your nose up at them as they walk by. Knowing full well they like the view as you walk away."
  201.             TDEMEANOR="2"
  202.         elif [ "$INT" -le "17" ]; then
  203.             echo "Demeanor:"
  204.             echo " "
  205.             echo "Being that you're a woman and the owner of your own company. Not many think that you're smart, but the IT guys seem to have your back when it comes to questions. They're nice and respectful and you always seem to have the right questions and follow through with their advice. You may be no tech guru, but you sure as hell try."
  206.             TDEMEANOR="3"
  207.         else
  208.             echo "Demeanor:"
  209.             echo " "
  210.             echo "It's been rough being a woman, and being extremely intelligent. Especially to the IT crowd. Not many women fills it's rosters. You made this company, and grew it from the ground up with barely any need of an IT crew. You hire them anyways though to carry out the tasks you deem necessary and they don't seem to really complain too much. They know you're not stupid and respect your decisions."
  211.             TDEMEANOR="4"
  212.         fi
  213.     elif [ "$JOB" == "Vice-President" ]; then
  214.         if [ "$INT" == "3" ]; then
  215.             echo "Demeanor:"
  216.             echo " "
  217.             echo "completely and utter failure $JOB"
  218.         elif [ "$INT" -le "14" ]; then
  219.             echo "Demeanor:"
  220.             echo " "
  221.             echo "Dumb $JOB"
  222.         elif [ "$INT" -le "17" ]; then
  223.             echo "Demeanor:"
  224.             echo " "
  225.             echo "Semi-smart $JOB"
  226.         else
  227.             echo "Demeanor:"
  228.             echo " "
  229.             echo "Smart $JOB"
  230.         fi
  231.     elif [ "$JOB" == "HumanResources" ]; then
  232.         if [ "$INT" == "3" ]; then
  233.             echo "Demeanor:"
  234.             echo " "
  235.             echo "completely and utter failure $JOB"
  236.         elif [ "$INT" -le "14" ]; then
  237.             echo "Demeanor:"
  238.             echo " "
  239.             echo "Dumb $JOB"
  240.         elif [ "$INT" -le "17" ]; then
  241.             echo "Demeanor:"
  242.             echo " "
  243.             echo "Semi-smart $JOB"
  244.         else
  245.             echo "Demeanor:"
  246.             echo " "
  247.             echo "Smart $JOB"
  248.         fi
  249.     elif [ "$JOB" == "ITManager" ]; then
  250.         if [ "$INT" == "3" ]; then
  251.             echo "Demeanor:"
  252.             echo " "
  253.             echo "completely and utter failure $JOB"
  254.         elif [ "$INT" -le "14" ]; then
  255.             echo "Demeanor:"
  256.             echo " "
  257.             echo "Dumb $JOB"
  258.         elif [ "$INT" -le "17" ]; then
  259.             echo "Demeanor:"
  260.             echo " "
  261.             echo "Semi-smart $JOB"
  262.         else
  263.             echo "Demeanor:"
  264.             echo " "
  265.             echo "Smart $JOB"
  266.         fi
  267.     elif [ "$JOB" == "TechSupport" ]; then
  268.         if [ "$INT" == "3" ]; then
  269.             echo "Demeanor:"
  270.             echo " "
  271.             echo "completely and utter failure $JOB"
  272.         elif [ "$INT" -le "14" ]; then
  273.             echo "Demeanor:"
  274.             echo " "
  275.             echo "Dumb $JOB"
  276.         elif [ "$INT" -le "17" ]; then
  277.             echo "Demeanor:"
  278.             echo " "
  279.             echo "Semi-smart $JOB"
  280.         else
  281.             echo "Demeanor:"
  282.             echo " "
  283.             echo "Smart $JOB"
  284.         fi
  285.     elif [ "$JOB" == "SalesFloorEmployee" ]; then
  286.         if [ "$INT" == "3" ]; then
  287.             echo "Demeanor:"
  288.             echo " "
  289.             echo "completely and utter failure $JOB"
  290.         elif [ "$INT" -le "14" ]; then
  291.             echo "Demeanor:"
  292.             echo " "
  293.             echo "Dumb $JOB"
  294.         elif [ "$INT" -le "17" ]; then
  295.             echo "Demeanor:"
  296.             echo " "
  297.             echo "Semi-smart $JOB"
  298.         else
  299.             echo "Demeanor:"
  300.             echo " "
  301.             echo "Smart $JOB"
  302.         fi
  303.     fi
  304. else
  305.  
  306.     if [ "$JOB" == "CEO" ]; then
  307.         if [ "$INT" == "3" ]; then
  308.             echo "Demeanor:"
  309.             echo " "
  310.             echo "You stare blankly at the square box in front of you and scratch at your $HAIR hair. You know this box is supposed to do something. You smack it thinking it might help. Unfortunately it seems smacking it caused a piece to fall off. Picking it up you examine it and pull out a hammer. Knowing full well this will fix the problem."
  311.             TDEMEANOR="1"
  312.         elif [ "$INT" -le "14" ]; then
  313.             echo "Demeanor:"
  314.             echo " "
  315.             echo "You are the big cheese, the boss to end all bosses. Those IT guys and their thingamajiggers aren't anything to you. You rule this company with an iron fist and it doesn't matter a lick that you don't even know what a survore is."
  316.             TDEMEANOR="2"
  317.         elif [ "$INT" -le "17" ]; then
  318.             echo "Demeanor:"
  319.             echo " "
  320.             echo "Looking at your email you notice you've lost connection to the exchange server. Knowing that's a pretty bad thing you call up the IT department just to double check they're on the case. Knowing full well they're probably already on it. You love your IT guys, they keep the world revolving."
  321.             TDEMEANOR="3"
  322.         else
  323.             echo "Demeanor:"
  324.             echo " "
  325.             echo "You've pretty much single handedly programmed every server in the company and often times find yourself in the IT department just to get your hands dirty. The IT guys love you and often come to your own office just to chit chat. You always make sure the IT department is well taken care of and often make sure the rest of your employees go through your general computing classes."
  326.             TDEMEANOR="4"
  327.         fi
  328.     elif [ "$JOB" == "Vice-President" ]; then
  329.         if [ "$INT" == "3" ]; then
  330.             echo "Demeanor:"
  331.             echo " "
  332.             echo "completely and utter failure $JOB"
  333.         elif [ "$INT" -le "14" ]; then
  334.             echo "Demeanor:"
  335.             echo " "
  336.             echo "Dumb $JOB"
  337.         elif [ "$INT" -le "17" ]; then
  338.             echo "Demeanor:"
  339.             echo " "
  340.             echo "Semi-smart $JOB"
  341.         else
  342.             echo "Demeanor:"
  343.             echo " "
  344.             echo "Smart $JOB"
  345.         fi
  346.     elif [ "$JOB" == "HumanResources" ]; then
  347.         if [ "$INT" == "3" ]; then
  348.             echo "Demeanor:"
  349.             echo " "
  350.             echo "completely and utter failure $JOB"
  351.         elif [ "$INT" -le "14" ]; then
  352.             echo "Demeanor:"
  353.             echo " "
  354.             echo "Dumb $JOB"
  355.         elif [ "$INT" -le "17" ]; then
  356.             echo "Demeanor:"
  357.             echo " "
  358.             echo "Semi-smart $JOB"
  359.         else
  360.             echo "Demeanor:"
  361.             echo " "
  362.             echo "Smart $JOB"
  363.         fi
  364.     elif [ "$JOB" == "ITManager" ]; then
  365.         if [ "$INT" == "3" ]; then
  366.             echo "Demeanor:"
  367.             echo " "
  368.             echo "completely and utter failure $JOB"
  369.         elif [ "$INT" -le "14" ]; then
  370.             echo "Demeanor:"
  371.             echo " "
  372.             echo "Dumb $JOB"
  373.         elif [ "$INT" -le "17" ]; then
  374.             echo "Demeanor:"
  375.             echo " "
  376.             echo "Semi-smart $JOB"
  377.         else
  378.             echo "Demeanor:"
  379.             echo " "
  380.             echo "Smart $JOB"
  381.         fi
  382.     elif [ "$JOB" == "TechSupport" ]; then
  383.         if [ "$INT" == "3" ]; then
  384.             echo "Demeanor:"
  385.             echo " "
  386.             echo "completely and utter failure $JOB"
  387.         elif [ "$INT" -le "14" ]; then
  388.             echo "Demeanor:"
  389.             echo " "
  390.             echo "Dumb $JOB"
  391.         elif [ "$INT" -le "17" ]; then
  392.             echo "Demeanor:"
  393.             echo " "
  394.             echo "Semi-smart $JOB"
  395.         else
  396.             echo "Smart $JOB"
  397.         fi
  398.     elif [ "$JOB" == "SalesFloorEmployee" ]; then
  399.         if [ "$INT" == "3" ]; then
  400.             echo "Demeanor:"
  401.             echo " "
  402.             echo "completely and utter failure $JOB"
  403.         elif [ "$INT" -le "14" ]; then
  404.             echo "Demeanor:"
  405.             echo " "
  406.             echo "Dumb $JOB"
  407.         elif [ "$INT" -le "17" ]; then
  408.             echo "Demeanor:"
  409.             echo " "
  410.             echo "Semi-smart $JOB"
  411.         else
  412.             echo "Demeanor:"
  413.             echo " "
  414.             echo "Smart $JOB"
  415.         fi
  416.     fi
  417.  
  418. fi
  419.  
  420. ##Beginning of first path##
  421. echo " "
  422. echo "<-------- Story Time -------->"
  423. if [ "LOAD" == "n" ]; then
  424.     PATH1=`shuf -i 1-6 -n 1`
  425. fi
  426.  
  427. if [ "$JOB" == "CEO" ]; then
  428.     if [ "$PATH1" == "1" ]; then
  429.         echo "Sitting in your office you comb back your $LENGTH $HAIR hair with a weary hand. It's been a long day at the office."
  430.         if [ "$TDEMEANOR" == "1" ]; then
  431.             echo "This box in front of you is making some wierd beeping sounds every time you try and turn it on. At least you think your trying to turn it on. You really have no idea, you know it's got to be the Tech Support departments fault though. They're always screwing with you."
  432.         elif [ "$TDEMEANOR" == "2" ]; then
  433.             echo "Those damned tech bastards have been screwing things up all damn day. First they wouldn't paint your black monitor white, and then they damn well insulted you! You begin to think of a way to get back at them."
  434.         elif [ "$TDEMEANOR" == "3" ]; then
  435.             echo "Leaning back you begin to think on what you can do. It really has been a long day and the tech deparment seems to have really came through for you today. $NPC1NAME in the Tech department could probably use a visit."
  436.         elif [ "$TDEMEANOR" == "4" ]; then
  437.             echo "A computer lay in front of you in pieces. You had told $NPC1NAME that you would fix it for them so they could get a little bit of a break from the constant grueling ticket queue. It seems as though this hard drive is fried. You'll probably have to go down to the tech department to get a new one."
  438.         fi
  439.     elif [ "$PATH1" == "2" ]; then
  440.         echo "Sitting in your office you comb back your $LENGTH $HAIR hair with a weary hand. It's been a long day at the office."
  441.         if [ "$TDEMEANOR" == "1" ]; then
  442.             echo "This box in front of you is making some wierd beeping sounds every time you try and turn it on. At least you think your trying to turn it on. You really have no idea, you know it's got to be the Tech Support departments fault though. They're always screwing with you."
  443.         elif [ "$TDEMEANOR" == "2" ]; then
  444.             echo "Those damned tech bastards have been screwing things up all damn day. First they wouldn't paint your black monitor white, and then they damn well insulted you! You begin to think of a way to get back at them."
  445.         elif [ "$TDEMEANOR" == "3" ]; then
  446.             echo "Leaning back you begin to think on what you can do. It really has been a long day and the tech deparment seems to have really came through for you today. $NPC1NAME in the Tech department could probably use a visit."
  447.         elif [ "$TDEMEANOR" == "4" ]; then
  448.             echo "A computer lay in front of you in pieces. You had told $NPC1NAME that you would fix it for them so they could get a little bit of a break from the constant grueling ticket queue. It seems as though this hard drive is fried. You'll probably have to go down to the tech department to get a new one."
  449.         fi
  450.     elif [ "$PATH1" == "3" ]; then
  451.         echo "Sitting in your office you comb back your $LENGTH $HAIR hair with a weary hand. It's been a long day at the office."
  452.         if [ "$TDEMEANOR" == "1" ]; then
  453.             echo "This box in front of you is making some wierd beeping sounds every time you try and turn it on. At least you think your trying to turn it on. You really have no idea, you know it's got to be the Tech Support departments fault though. They're always screwing with you."
  454.         elif [ "$TDEMEANOR" == "2" ]; then
  455.             echo "Those damned tech bastards have been screwing things up all damn day. First they wouldn't paint your black monitor white, and then they damn well insulted you! You begin to think of a way to get back at them."
  456.         elif [ "$TDEMEANOR" == "3" ]; then
  457.             echo "Leaning back you begin to think on what you can do. It really has been a long day and the tech deparment seems to have really came through for you today. $NPC1NAME in the Tech department could probably use a visit."
  458.         elif [ "$TDEMEANOR" == "4" ]; then
  459.             echo "A computer lay in front of you in pieces. You had told $NPC1NAME that you would fix it for them so they could get a little bit of a break from the constant grueling ticket queue. It seems as though this hard drive is fried. You'll probably have to go down to the tech department to get a new one."
  460.         fi
  461.     elif [ "$PATH1" == "4" ]; then
  462.         echo "Sitting in your office you comb back your $LENGTH $HAIR hair with a weary hand. It's been a long day at the office."
  463.         if [ "$TDEMEANOR" == "1" ]; then
  464.             echo "This box in front of you is making some wierd beeping sounds every time you try and turn it on. At least you think your trying to turn it on. You really have no idea, you know it's got to be the Tech Support departments fault though. They're always screwing with you."
  465.         elif [ "$TDEMEANOR" == "2" ]; then
  466.             echo "Those damned tech bastards have been screwing things up all damn day. First they wouldn't paint your black monitor white, and then they damn well insulted you! You begin to think of a way to get back at them."
  467.         elif [ "$TDEMEANOR" == "3" ]; then
  468.             echo "Leaning back you begin to think on what you can do. It really has been a long day and the tech deparment seems to have really came through for you today. $NPC1NAME in the Tech department could probably use a visit."
  469.         elif [ "$TDEMEANOR" == "4" ]; then
  470.             echo "A computer lay in front of you in pieces. You had told $NPC1NAME that you would fix it for them so they could get a little bit of a break from the constant grueling ticket queue. It seems as though this hard drive is fried. You'll probably have to go down to the tech department to get a new one."
  471.         fi
  472.     elif [ "$PATH1" == "5" ]; then
  473.         echo "Sitting in your office you comb back your $LENGTH $HAIR hair with a weary hand. It's been a long day at the office."
  474.         if [ "$TDEMEANOR" == "1" ]; then
  475.             echo "This box in front of you is making some wierd beeping sounds every time you try and turn it on. At least you think your trying to turn it on. You really have no idea, you know it's got to be the Tech Support departments fault though. They're always screwing with you."
  476.         elif [ "$TDEMEANOR" == "2" ]; then
  477.             echo "Those damned tech bastards have been screwing things up all damn day. First they wouldn't paint your black monitor white, and then they damn well insulted you! You begin to think of a way to get back at them."
  478.         elif [ "$TDEMEANOR" == "3" ]; then
  479.             echo "Leaning back you begin to think on what you can do. It really has been a long day and the tech deparment seems to have really came through for you today. $NPC1NAME in the Tech department could probably use a visit."
  480.         elif [ "$TDEMEANOR" == "4" ]; then
  481.             echo "A computer lay in front of you in pieces. You had told $NPC1NAME that you would fix it for them so they could get a little bit of a break from the constant grueling ticket queue. It seems as though this hard drive is fried. You'll probably have to go down to the tech department to get a new one."
  482.         fi
  483.     elif [ "$PATH1" == "6" ]; then
  484.         echo "Sitting in your office you comb back your $LENGTH $HAIR hair with a weary hand. It's been a long day at the office."
  485.         if [ "$TDEMEANOR" == "1" ]; then
  486.             echo "This box in front of you is making some wierd beeping sounds every time you try and turn it on. At least you think your trying to turn it on. You really have no idea, you know it's got to be the Tech Support departments fault though. They're always screwing with you."
  487.         elif [ "$TDEMEANOR" == "2" ]; then
  488.             echo "Those damned tech bastards have been screwing things up all damn day. First they wouldn't paint your black monitor white, and then they damn well insulted you! You begin to think of a way to get back at them."
  489.         elif [ "$TDEMEANOR" == "3" ]; then
  490.             echo "Leaning back you begin to think on what you can do. It really has been a long day and the tech deparment seems to have really came through for you today. $NPC1NAME in the Tech department could probably use a visit."
  491.         elif [ "$TDEMEANOR" == "4" ]; then
  492.             echo "A computer lay in front of you in pieces. You had told $NPC1NAME that you would fix it for them so they could get a little bit of a break from the constant grueling ticket queue. It seems as though this hard drive is fried. You'll probably have to go down to the tech department to get a new one."
  493.         fi
  494.     fi
  495. fi
  496. ##Beginning of code Save block, should do some checks to see if human is present and such##
  497. read -p "Would you like to save this? n/y: " SAVE
  498.  
  499. FILENAME="./human/$NAME.txt"
  500. if [ -d ./human ]; then
  501.     if [ "$SAVE" == "y" ]; then
  502.         if [ -f "$FILENAME" ]; then
  503.             read -p "This file exists, would you like to overwrite? y/n: " overwrite
  504.             if [ "$overwrite" == "y" ]; then
  505.                 rm ./human/$NAME.txt
  506.                 saveFunction
  507.                 exit
  508.             fi
  509.         else
  510.             saveFunction
  511.         fi
  512.     else
  513.         exit
  514.     fi
  515. else
  516.     mkdir ./human
  517.     saveFunction
  518. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement