Advertisement
Guest User

Untitled

a guest
May 27th, 2016
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.69 KB | None | 0 0
  1. oid tutorial();
  2.  
  3. //basicenemy();
  4. //healthpotion();
  5.  
  6.  
  7.  
  8.  
  9. void firstdungeon (char name[])
  10. {
  11. int chance;
  12. int x;
  13.  
  14. //Tutorial for enemies and health
  15.  
  16.  
  17. for (x = 0; x < 15; x ++)
  18. {
  19.  
  20. chance = (rand() % 3) + x;
  21. if (chance < 5)
  22. cout << "The path is clear" << endl;
  23. else if (chance < 8 && chance > 5)
  24. cout << "A health potion has appeared" << endl;
  25. //Healthpotion()
  26. else if (chance < 13)
  27. //basicenemy()
  28. cout << " A foe stands in your way" << endl;
  29. //Combat()
  30.  
  31. if (x > 10)
  32. chance = (rand() % 5) + 4;
  33. if (chance < 5)
  34. cout << "The path is clear" << endl;
  35. else if (chance < 8 && chance > 5)
  36. cout << "A health potion has appeared" << endl;
  37. else if (chance < 13)
  38. //basicenemy()+
  39.  
  40. cout << " A foe stands in your way" << endl;
  41. //Combat()
  42.  
  43. }
  44.  
  45. cout << "You have found the final enemy" << endl;
  46. system("pause");
  47. cout << " THE MIGHTY DRAGON!!! "<< endl;
  48. cout << " ___====-_ _-====___" << endl;
  49. cout << " __--^^^ // \\ ^^^--_" << endl;
  50. cout << " _-^ // ( ) \\ ^-_" << endl;
  51. cout << " - // |\^^/| \\ -" << endl;
  52. cout << " _/ // (0::0) \\ \_" << endl;
  53. cout << " / (( \\// )) \ " << endl;
  54. cout << " - \\ (oo) // -" << endl;
  55. cout << " - \\ / \/ \ // -" << endl;
  56. cout << " - \\/ \// -" << endl;
  57. cout << "/ /| /\ ( ) /\ |\ \ " << endl;
  58. cout << "|/ | /\_/\_/\_/ \_/\ ( /\ ) /\_/ \_/\_/\_/\ | \|" << endl;
  59. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement