Advertisement
Guest User

Loop

a guest
Feb 25th, 2015
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 42.61 KB | None | 0 0
  1. #include <tchar.h>
  2. #define _tWinMain wWinMain
  3. #include <iostream>
  4. #include <ctime>
  5. #include <string>
  6. using namespace std;
  7.  
  8. int _tmain()
  9. {
  10. int number;
  11. srand(time(NULL));
  12. double random;
  13.  
  14. random = (rand() % (100) + 1);
  15. double gold;
  16. gold = (random * 5);
  17. double d10;
  18. double d102;
  19. double weapon;
  20. weapon = (rand() % (10) + 1);
  21. d10 = (rand() % (10) + 1);
  22. d102 = (rand() % (10) + 1);
  23. bool formal = "";
  24. double quartz;
  25. double quartz2;
  26. double quartz3;
  27. double insect;
  28. double oak;
  29. double fault;
  30. double dragon;
  31. double scales;
  32. double cactus;
  33. double blooms;
  34. double moredust;
  35. double moreshell;
  36. double morescales;
  37. double moreblooms;
  38. double ruby;
  39. double silver;
  40. double hide;
  41. double enchant;
  42. double enchant2;
  43. quartz = (rand() % ((10) + 1)*5);
  44. quartz2 = (rand() % (10 + 1)*10);
  45. quartz3 = (rand() % (10 + 1)*20);
  46. insect = (rand() % (10) + 1);
  47. oak = (rand() % (10 + 1))/2;
  48. fault = (rand() % (10 + 1)/3);
  49. dragon = (rand() % (10 + 1)/5);
  50. scales = (rand() % (10 + 1));
  51. cactus = (rand() % (10 + 1));
  52. blooms = (rand() % (10 + 1) *2);
  53. moredust = (rand() % (10 + 1)/2);
  54. moreshell = (rand() % (10 + 1)/3);
  55. moreblooms = (rand() % (10 + 1)*3);
  56. ruby = (rand() % ((10) + 1))/5;
  57. silver = (rand() % (10 + 1)/5);
  58. hide = (rand() % ((10) + 1)/5);
  59. enchant = (rand() % (10 + 1) / 3);
  60. enchant2 = (rand() % (10 + 1) / 2);
  61. morescales = (rand() % (10 + 1) * 2);
  62.  
  63. cout << "How many times are we rolling today?";
  64. std::cin >> number;
  65. for (int x = 0; x < number; x++)
  66. {
  67.  
  68. cout << "You rolled " << random << endl;
  69. if (random >= 1 & random <= 20)
  70. {
  71. cout << "You get " << gold << "Gold";
  72. }
  73. else if (random > 20 & random <= 40)
  74. {
  75. cout << "You get a formal vessel! Rolling to see what kind of vessel you get: " << endl;
  76. if (d10 = 1)
  77. {
  78. cout << "You get a dagger! Rolling to see what kind of dagger you get \n";
  79. if (weapon = 1)
  80. {
  81. cout << "You get a Cold Wrought Iron Dagger!";
  82. }
  83. else if (weapon = 2)
  84. {
  85. cout << "You get a Cold Wrought Iron Dagger!";
  86. }
  87. else if (weapon = 3)
  88. {
  89. cout << "You get a Silver Dagger!";
  90. }
  91. else if (weapon = 4)
  92. {
  93. cout << "You get a Silver Dagger!";
  94. }
  95. else if (weapon = 5)
  96. {
  97. cout << "You get a Crystal Dagger!";
  98. }
  99. else if (weapon = 6)
  100. {
  101. cout << "You get a Crystal Dagger!";
  102. }
  103. else if (weapon = 7)
  104. {
  105. cout << "You get a Gold Dagger!";
  106. }
  107. else if (weapon = 8)
  108. {
  109. cout << "You get a Gold Dagger!";
  110. }
  111. else if (weapon = 9)
  112. {
  113. cout << "You get a Gemstone Dagger!";
  114. }
  115. else if (weapon = 10)
  116. {
  117. cout << "You get a Gemstone Dagger!";
  118. }
  119. }
  120. else if (d10 = 2)
  121. {
  122. cout << "You get a Shortsword! Rolling to see what kind of Shortsword you get: \n";
  123. if (weapon = 1)
  124. {
  125. cout << "You get a Cold Wrought Iron Shortsword!";
  126. }
  127. else if (weapon = 2)
  128. {
  129. cout << "You get a Cold Wrought Iron Shortsword!";
  130. }
  131. else if (weapon = 3)
  132. {
  133. cout << "You get a Silver Shortsword!";
  134. }
  135. else if (weapon = 4)
  136. {
  137. cout << "You get a Silver Shortsword!";
  138. }
  139. else if (weapon = 5)
  140. {
  141. cout << "You get a Crystal Shortsword!";
  142. }
  143. else if (weapon = 6)
  144. {
  145. cout << "You get a Crystal Shortsword!";
  146. }
  147. else if (weapon = 7)
  148. {
  149. cout << "You get a Gold Shortsword!";
  150. }
  151. else if (weapon = 8)
  152. {
  153. cout << "You get a Gold Shortsword!";
  154. }
  155. else if (weapon = 9)
  156. {
  157. cout << "You get a Gemstone Shortsword!";
  158. }
  159. else if (weapon = 10)
  160. {
  161. cout << "You get a Gemstone Shortsword!";
  162. }
  163. }
  164. else if (d10 = 3)
  165. {
  166. cout << "You get a Longsword or Spear! Rolling to see what kind of Longsword or Spear you get: \n";
  167. if (weapon = 1)
  168. {
  169. cout << "You get a Cold Wrought Iron Longsword or Spear!";
  170. }
  171. else if (weapon = 2)
  172. {
  173. cout << "You get a Cold Wrought Iron Longsword or Spear!";
  174. }
  175. else if (weapon = 3)
  176. {
  177. cout << "You get a Silver Longsword or Spear!";
  178. }
  179. else if (weapon = 4)
  180. {
  181. cout << "You get a Silver Longsword or Spear!";
  182. }
  183. else if (weapon = 5)
  184. {
  185. cout << "You get a Crystal Longsword or Spear!";
  186. }
  187. else if (weapon = 6)
  188. {
  189. cout << "You get a Crystal Longsword or Spear!";
  190. }
  191. else if (weapon = 7)
  192. {
  193. cout << "You get a Gold Longsword or Spear!";
  194. }
  195. else if (weapon = 8)
  196. {
  197. cout << "You get a Gold Longsword or Spear!";
  198. }
  199. else if (weapon = 9)
  200. {
  201. cout << "You get a Gemstone Longsword or Spear!";
  202. }
  203. else if (weapon = 10)
  204. {
  205. cout << "You get a Gemstone Longsword or Spear!";
  206. }
  207. }
  208. else if (d10 = 4)
  209. {
  210. cout << "You get a Mace or Hammer! Rolling to see what kind of Mace or Hammer you get: \n";
  211. if (weapon = 1)
  212. {
  213. cout << "You get a Cold Wrought Iron Mace or Hammer!";
  214. }
  215. else if (weapon = 2)
  216. {
  217. cout << "You get a Cold Wrought Iron Mace or Hammer!";
  218. }
  219. else if (weapon = 3)
  220. {
  221. cout << "You get a Silver Mace or Hammer!";
  222. }
  223. else if (weapon = 4)
  224. {
  225. cout << "You get a Silver Mace or Hammer!";
  226. }
  227. else if (weapon = 5)
  228. {
  229. cout << "You get a Crystal Mace or Hammer!";
  230. }
  231. else if (weapon = 6)
  232. {
  233. cout << "You get a Crystal Mace or Hammer!";
  234. }
  235. else if (weapon = 7)
  236. {
  237. cout << "You get a Gold Mace or Hammer!";
  238. }
  239. else if (weapon = 8)
  240. {
  241. cout << "You get a Gold Mace or Hammer!";
  242. }
  243. else if (weapon = 9)
  244. {
  245. cout << "You get a Gemstone Mace or Hammer!";
  246. }
  247. else if (weapon = 10)
  248. {
  249. cout << "You get a Gemstone Mace or Hammer!";
  250. }
  251. }
  252. else if (d10 = 5)
  253. {
  254. cout << "You get a piece of jewelry! Rolling to see what material your jewelry is made out of: \n";
  255. if (weapon = 1)
  256. {
  257. cout << "You get a Cold Wrought Iron piece of jewelry!";
  258. }
  259. else if (weapon = 2)
  260. {
  261. cout << "You get a Cold Wrought Iron piece of jewelry!";
  262. }
  263. else if (weapon = 3)
  264. {
  265. cout << "You get a Silver piece of jewelry!";
  266. }
  267. else if (weapon = 4)
  268. {
  269. cout << "You get a Silver piece of jewelry!";
  270. }
  271. else if (weapon = 5)
  272. {
  273. cout << "You get a Crystal piece of jewelry!";
  274. }
  275. else if (weapon = 6)
  276. {
  277. cout << "You get a Crystal piece of jewelry!";
  278. }
  279. else if (weapon = 7)
  280. {
  281. cout << "You get a Gold piece of jewelry!";
  282. }
  283. else if (weapon = 8)
  284. {
  285. cout << "You get a Gold piece of jewelry!";
  286. }
  287. else if (weapon = 9)
  288. {
  289. cout << "You get a Gemstone piece of jewelry!";
  290. }
  291. else if (weapon = 10)
  292. {
  293. cout << "You get a Gemstone piece of jewelry!";
  294. }
  295. }
  296. else if (d10 = 6)
  297. {
  298. cout << "You get a piece of jewelry! Rolling to see what material your jewelry is made out of: \n";
  299. if (weapon = 1)
  300. {
  301. cout << "You get a Cold Wrought Iron piece of jewelry!";
  302. }
  303. else if (weapon = 2)
  304. {
  305. cout << "You get a Cold Wrought Iron piece of jewelry!";
  306. }
  307. else if (weapon = 3)
  308. {
  309. cout << "You get a Silver piece of jewelry!";
  310. }
  311. else if (weapon = 4)
  312. {
  313. cout << "You get a Silver piece of jewelry!";
  314. }
  315. else if (weapon = 5)
  316. {
  317. cout << "You get a Crystal piece of jewelry!";
  318. }
  319. else if (weapon = 6)
  320. {
  321. cout << "You get a Crystal piece of jewelry!";
  322. }
  323. else if (weapon = 7)
  324. {
  325. cout << "You get a Gold piece of jewelry!";
  326. }
  327. else if (weapon = 8)
  328. {
  329. cout << "You get a Gold piece of jewelry!";
  330. }
  331. else if (weapon = 9)
  332. {
  333. cout << "You get a Gemstone piece of jewelry!";
  334. }
  335. else if (weapon = 10)
  336. {
  337. cout << "You get a Gemstone piece of jewelry!";
  338. }
  339. }
  340. else if (d10 = 7)
  341. {
  342. cout << "You get a Wand! Rolling to see what kind of Wand you get: \n";
  343. if (weapon = 1)
  344. {
  345. cout << "You get a Cold Wrought Iron Wand!";
  346. }
  347. else if (weapon = 2)
  348. {
  349. cout << "You get a Cold Wrought Iron Wand!";
  350. }
  351. else if (weapon = 3)
  352. {
  353. cout << "You get a Silver Wand!";
  354. }
  355. else if (weapon = 4)
  356. {
  357. cout << "You get a Silver Wand!";
  358. }
  359. else if (weapon = 5)
  360. {
  361. cout << "You get a Crystal Wand!";
  362. }
  363. else if (weapon = 6)
  364. {
  365. cout << "You get a Crystal Wand!";
  366. }
  367. else if (weapon = 7)
  368. {
  369. cout << "You get a Gold Wand!";
  370. }
  371. else if (weapon = 8)
  372. {
  373. cout << "You get a Gold Wand!";
  374. }
  375. else if (weapon = 9)
  376. {
  377. cout << "You get a Gemstone Wand!";
  378. }
  379. else if (weapon = 10)
  380. {
  381. cout << "You get a Gemstone Wand!";
  382. }
  383. }
  384. else if (d10 = 8)
  385. {
  386. cout << "You get a two handed weapon! (player's choice). Rolling to see what material your weapon is: \n";
  387. if (weapon = 1)
  388. {
  389. cout << "You get a Cold Wrought Iron two handed weapon!";
  390. }
  391. else if (weapon = 2)
  392. {
  393. cout << "You get a Cold Wrought Iron two handed weapon!";
  394. }
  395. else if (weapon = 3)
  396. {
  397. cout << "You get a Silver two handed weapon!";
  398. }
  399. else if (weapon = 4)
  400. {
  401. cout << "You get a Silver two handed weapon!";
  402. }
  403. else if (weapon = 5)
  404. {
  405. cout << "You get a Crystal two handed weapon!";
  406. }
  407. else if (weapon = 6)
  408. {
  409. cout << "You get a Crystal two handed weapon!";
  410. }
  411. else if (weapon = 7)
  412. {
  413. cout << "You get a Gold two handed weapon!";
  414. }
  415. else if (weapon = 8)
  416. {
  417. cout << "You get a Gold two handed weapon!";
  418. }
  419. else if (weapon = 9)
  420. {
  421. cout << "You get a Gemstone two handed weapon!";
  422. }
  423. else if (weapon = 10)
  424. {
  425. cout << "You get a Gemstone two handed weapon!";
  426. }
  427. }
  428. else if (d10 = 9)
  429. {
  430. cout << "You get a two handed weapon! (player's choice). Rolling to see what material your weapon is: \n";
  431. if (weapon = 1)
  432. {
  433. cout << "You get a Cold Wrought Iron two handed weapon!";
  434. }
  435. else if (weapon = 2)
  436. {
  437. cout << "You get a Cold Wrought two handed weapon!";
  438. }
  439. else if (weapon = 3)
  440. {
  441. cout << "You get a Silver two handed weapon!";
  442. }
  443. else if (weapon = 4)
  444. {
  445. cout << "You get a Silver two handed weapon!";
  446. }
  447. else if (weapon = 5)
  448. {
  449. cout << "You get a Crystal two handed weapon!";
  450. }
  451. else if (weapon = 6)
  452. {
  453. cout << "You get a Crystal two handed weapon!";
  454. }
  455. else if (weapon = 7)
  456. {
  457. cout << "You get a Gold two handed weapon!";
  458. }
  459. else if (weapon = 8)
  460. {
  461. cout << "You get a Gold two handed weapon!";
  462. }
  463. else if (weapon = 9)
  464. {
  465. cout << "You get a Gemstone two handed weapon!";
  466. }
  467. else if (weapon = 10)
  468. {
  469. cout << "You get a Gemstone two handed weapon!";
  470. }
  471. }
  472. else if (d10 = 10)
  473. {
  474. cout << "You get a shield! Rolling to see what material your shield is: \n";
  475. if (weapon = 1)
  476. {
  477. cout << "You get a Cold Wrought Iron Shield!";
  478. }
  479. else if (weapon = 2)
  480. {
  481. cout << "You get a Cold Wrought Iron Shield!";
  482. }
  483. else if (weapon = 3)
  484. {
  485. cout << "You get a Silver Shield!";
  486. }
  487. else if (weapon = 4)
  488. {
  489. cout << "You get a Silver Shield!";
  490. }
  491. else if (weapon = 5)
  492. {
  493. cout << "You get a Crystal Shield!";
  494. }
  495. else if (weapon = 6)
  496. {
  497. cout << "You get a Crystal Shield!";
  498. }
  499. else if (weapon = 7)
  500. {
  501. cout << "You get a Gold Shield!";
  502. }
  503. else if (weapon = 8)
  504. {
  505. cout << "You get a Gold Shield";
  506. }
  507. else if (weapon = 9)
  508. {
  509. cout << "You get a Gemstone Shield!";
  510. }
  511. else if (weapon = 10)
  512. {
  513. cout << "You get a Gemstone Shield!";
  514. }
  515. }
  516.  
  517. }
  518. else if (random > 40 & random <= 60)
  519. {
  520. cout << "You get some formal components! Please choose between Earth or Celestial components: " << endl;
  521. cin >> formal;
  522. if (formal = "Earth")
  523. {
  524. cout << "Rolling to see what kind of Earth components you get: "<< endl;
  525. if (d10 = 1)
  526. {
  527. cout << "You get " << quartz << " quartz!";
  528. }
  529. else if (d10 = 2)
  530. {
  531. cout << "You get " << quartz2 << " quarts!";
  532. }
  533. else if (d10 = 3)
  534. {
  535. cout << "You get " << quartz3 << " quartz!";
  536. }
  537. else if (d10 = 4)
  538. {
  539. cout << "You get " << insect << " insects trapped in Amber!";
  540. }
  541. else if (d10 = 5)
  542. {
  543. cout << "You get " << oak << " hearts of a 100 year old oak!";
  544. }
  545. else if (d10 = 6)
  546. {
  547. cout << "You get " << fault << " dust from a fault line!";
  548. }
  549. else if (d10 = 7)
  550. {
  551. cout << "You get " << dragon << " shells of a dragon turtle!";
  552. }
  553. else if (d10 = 8)
  554. {
  555. cout << "You get " << scales << " dragon scales!";
  556. }
  557. else if (d10 = 9)
  558. {
  559. cout << "You get " << cactus << " blooms of a Century Cactus!";
  560. }
  561. else if (d10 = 10)
  562. {
  563. cout << "You get " << blooms << " blooms of a Century Cactus!";
  564. }
  565. }
  566. else if (formal = "Celestial")
  567. {
  568. cout << "Rolling to see what kind of Celestial components you get ";
  569. if (d10 = 1)
  570. {
  571. cout << "You get " << quartz << " pumice!";
  572. }
  573. else if (d10 = 2)
  574. {
  575. cout << "You get " << quartz2 << " pumice!";
  576. }
  577. else if (d10 = 3)
  578. {
  579. cout << "You get " << quartz3 << " pumice!";
  580. }
  581. else if (d10 = 4)
  582. {
  583. cout << "You get " << insect << " unbroken quartz geode!";
  584. }
  585. else if (d10 = 5)
  586. {
  587. cout << "You get " << oak << " Celestial dust!";
  588. }
  589. else if (d10 = 6)
  590. {
  591. cout << "You get " << fault << " dust from a fault line!";
  592. }
  593. else if (d10 = 7)
  594. {
  595. cout << "You get " << dragon << " Celestial sundials!";
  596. }
  597. else if (d10 = 8)
  598. {
  599. cout << "You get " << scales << " Bronze razor wire!";
  600. }
  601. else if (d10 = 9)
  602. {
  603. cout << "You get " << cactus << " Phoenix feathers!";
  604. }
  605. else if (d10 = 10)
  606. {
  607. cout << "You get " << blooms << " Phoenix feathers!";
  608. }
  609. }
  610. }
  611. else if (random > 60 & random <= 70)
  612. {
  613. cout << "You get a formal vessel! Rolling to see what kind of vessel you get: " << endl;
  614. if (weapon = 1)
  615. {
  616. cout << "You get a dagger! Rolling to see what kind of dagger you get: \n";
  617. if (d10 = 1)
  618. {
  619. cout << "You get a silver dagger!";
  620. }
  621. else if (d10 = 2)
  622. {
  623. cout << "You get a crystal dagger!";
  624. }
  625. else if (d10 = 3)
  626. {
  627. cout << "You get a golden dagger!";
  628. }
  629. else if (d10 = 4)
  630. {
  631. cout << "You get a golden dagger!";
  632. }
  633. else if (d10 = 5)
  634. {
  635. cout << "You get a gemstone dagger!";
  636. }
  637. else if (d10 = 6)
  638. {
  639. cout << "You get a gemstone dagger!";
  640. }
  641. else if (d10 = 7)
  642. {
  643. cout << "You get a golden dagger!";
  644. }
  645. else if (d10 = 8)
  646. {
  647. cout << "You get a golden dagger!";
  648. }
  649. else if (d10 = 9)
  650. {
  651. cout << "You get a golden dagger!";
  652. }
  653. else if (d10 = 10)
  654. {
  655. cout << "You get a golden dagger!";
  656. }
  657. }
  658. else if (weapon = 2)
  659. {
  660. cout << "You get a Shortsword! Rolling to see what kind of Shortsword you get: \n";
  661. if (d10 = 1)
  662. {
  663. cout << "You get a silver shortsword!";
  664. }
  665. else if (d10 = 2)
  666. {
  667. cout << "You get a crystal shortsword!";
  668. }
  669. else if (d10 = 3)
  670. {
  671. cout << "You get a golden shortsword!";
  672. }
  673. else if (d10 = 4)
  674. {
  675. cout << "You get a golden shortsword!";
  676. }
  677. else if (d10 = 5)
  678. {
  679. cout << "You get a gemstone shortsword!";
  680. }
  681. else if (d10 = 6)
  682. {
  683. cout << "You get a gemstone shortsword!";
  684. }
  685. else if (d10 = 7)
  686. {
  687. cout << "You get a golden shortsword!";
  688. }
  689. else if (d10 = 8)
  690. {
  691. cout << "You get a golden shortsword!";
  692. }
  693. else if (d10 = 9)
  694. {
  695. cout << "You get a golden shortsword!";
  696. }
  697. else if (d10 = 10)
  698. {
  699. cout << "You get a golden shortsword!";
  700. }
  701. }
  702. else if (weapon = 3)
  703. {
  704. cout << "You get a Longsword or spear (Player's Choice)! Rolling to see what kind of material it's made out of: \n";
  705. if (d10 = 1)
  706. {
  707. cout << "You get a silver longsword or spear!";
  708. }
  709. else if (d10 = 2)
  710. {
  711. cout << "You get a crystal longsword or spear!";
  712. }
  713. else if (d10 = 3)
  714. {
  715. cout << "You get a golden longsword or spear!";
  716. }
  717. else if (d10 = 4)
  718. {
  719. cout << "You get a golden longsword or spear!";
  720. }
  721. else if (d10 = 5)
  722. {
  723. cout << "You get a gemstone longsword or spear!";
  724. }
  725. else if (d10 = 6)
  726. {
  727. cout << "You get a gemstone longsword or spear!";
  728. }
  729. else if (d10 = 7)
  730. {
  731. cout << "You get a golden longsword or spear!";
  732. }
  733. else if (d10 = 8)
  734. {
  735. cout << "You get a golden longsword or spear!";
  736. }
  737. else if (d10 = 9)
  738. {
  739. cout << "You get a golden longsword or spear!";
  740. }
  741. else if (d10 = 10)
  742. {
  743. cout << "You get a golden longsword or spear!";
  744. }
  745. }
  746. else if (weapon = 4)
  747. {
  748. cout << "You get a Mace or a Hammer! (Player's Choice) Rolling to see what material it's made out of: \n";
  749. if (d10 = 1)
  750. {
  751. cout << "You get a silver Mace or Hammer!";
  752. }
  753. else if (d10 = 2)
  754. {
  755. cout << "You get a crystal Mace or Hammer!";
  756. }
  757. else if (d10 = 3)
  758. {
  759. cout << "You get a golden Mace or Hammer!";
  760. }
  761. else if (d10 = 4)
  762. {
  763. cout << "You get a golden Mace or Hammer!";
  764. }
  765. else if (d10 = 5)
  766. {
  767. cout << "You get a gemstone Mace or Hammer!";
  768. }
  769. else if (d10 = 6)
  770. {
  771. cout << "You get a gemstone Mace or Hammer!";
  772. }
  773. else if (d10 = 7)
  774. {
  775. cout << "You get a golden Mace or Hammer!";
  776. }
  777. else if (d10 = 8)
  778. {
  779. cout << "You get a golden Mace or Hammer!";
  780. }
  781. else if (d10 = 9)
  782. {
  783. cout << "You get a golden Mace or Hammer!";
  784. }
  785. else if (d10 = 10)
  786. {
  787. cout << "You get a golden Mace or Hammer!";
  788. }
  789. }
  790. else if (weapon = 5)
  791. {
  792. cout << "You get a piece of jewelry! Rolling to see what material it's made out of: \n";
  793. if (d10 = 1)
  794. {
  795. cout << "You get a silver piece of jewelry!";
  796. }
  797. else if (d10 = 2)
  798. {
  799. cout << "You get a crystal piece of jewelry!";
  800. }
  801. else if (d10 = 3)
  802. {
  803. cout << "You get a golden piece of jewelry!";
  804. }
  805. else if (d10 = 4)
  806. {
  807. cout << "You get a golden piece of jewelry!";
  808. }
  809. else if (d10 = 5)
  810. {
  811. cout << "You get a gemstone piece of jewelry!";
  812. }
  813. else if (d10 = 6)
  814. {
  815. cout << "You get a gemstone piece of jewelry!";
  816. }
  817. else if (d10 = 7)
  818. {
  819. cout << "You get a golden piece of jewelry!";
  820. }
  821. else if (d10 = 8)
  822. {
  823. cout << "You get a golden piece of jewelry!";
  824. }
  825. else if (d10 = 9)
  826. {
  827. cout << "You get a golden piece of jewelry!";
  828. }
  829. else if (d10 = 10)
  830. {
  831. cout << "You get a golden piece of jewelry!";
  832. }
  833. }
  834. else if (weapon = 6)
  835. {
  836. cout << "You get a piece of jewelry! Rolling to see what it's made out of: \n";
  837. if (d10 = 1)
  838. {
  839. cout << "You get a silver piece of jewelry!";
  840. }
  841. else if (d10 = 2)
  842. {
  843. cout << "You get a crystal piece of jewelry!";
  844. }
  845. else if (d10 = 3)
  846. {
  847. cout << "You get a golden piece of jewelry!";
  848. }
  849. else if (d10 = 4)
  850. {
  851. cout << "You get a golden piece of jewelry!";
  852. }
  853. else if (d10 = 5)
  854. {
  855. cout << "You get a gemstone piece of jewelry!";
  856. }
  857. else if (d10 = 6)
  858. {
  859. cout << "You get a gemstone piece of jewelry!";
  860. }
  861. else if (d10 = 7)
  862. {
  863. cout << "You get a golden piece of jewelry!";
  864. }
  865. else if (d10 = 8)
  866. {
  867. cout << "You get a golden piece of jewelry!";
  868. }
  869. else if (d10 = 9)
  870. {
  871. cout << "You get a golden piece of jewelry!";
  872. }
  873. else if (d10 = 10)
  874. {
  875. cout << "You get a golden piece of jewelry!";
  876. }
  877. }
  878. else if (weapon = 8)
  879. {
  880. cout << "You get a two handed weapon! (Player's choice) Rolling to see what material the weapon is made of: \n";
  881. if (d10 = 1)
  882. {
  883. cout << "You get a silver two handed weapon!";
  884. }
  885. else if (d10 = 2)
  886. {
  887. cout << "You get a crystal two handed weapon!";
  888. }
  889. else if (d10 = 3)
  890. {
  891. cout << "You get a golden two handed weapon!";
  892. }
  893. else if (d10 = 4)
  894. {
  895. cout << "You get a golden two handed weapon!";
  896. }
  897. else if (d10 = 5)
  898. {
  899. cout << "You get a gemstone two handed weapon!";
  900. }
  901. else if (d10 = 6)
  902. {
  903. cout << "You get a gemstone two handed weapon!";
  904. }
  905. else if (d10 = 7)
  906. {
  907. cout << "You get a golden two handed weapon!";
  908. }
  909. else if (d10 = 8)
  910. {
  911. cout << "You get a golden two handed weapon!";
  912. }
  913. else if (d10 = 9)
  914. {
  915. cout << "You get a golden two handed weapon!";
  916. }
  917. else if (d10 = 10)
  918. {
  919. cout << "You get a golden two handed weapon!";
  920. }
  921. }
  922. else if (weapon = 9)
  923. {
  924. cout << "You get a two handed weapon! (Player's choice) Rolling to see what kind of material it's made out of: \n";
  925. if (d10 = 1)
  926. {
  927. cout << "You get a silver two handed weapon!";
  928. }
  929. else if (d10 = 2)
  930. {
  931. cout << "You get a crystal two handed weapon!";
  932. }
  933. else if (d10 = 3)
  934. {
  935. cout << "You get a golden two handed weapon!";
  936. }
  937. else if (d10 = 4)
  938. {
  939. cout << "You get a golden two handed weapon!";
  940. }
  941. else if (d10 = 5)
  942. {
  943. cout << "You get a gemstone two handed weapon!";
  944. }
  945. else if (d10 = 6)
  946. {
  947. cout << "You get a gemstone two handed weapon!";
  948. }
  949. else if (d10 = 7)
  950. {
  951. cout << "You get a golden two handed weapon!";
  952. }
  953. else if (d10 = 8)
  954. {
  955. cout << "You get a golden two handed weapon!";
  956. }
  957. else if (d10 = 9)
  958. {
  959. cout << "You get a golden two handed weapon!";
  960. }
  961. else if (d10 = 10)
  962. {
  963. cout << "You get a golden two handed weapon!";
  964. }
  965. }
  966. else if (weapon = 10)
  967. {
  968. cout << "You get a shield! Rolling to see what kind of shield it is: \n";
  969. if (d10 = 1)
  970. {
  971. cout << "You get a silver shield!";
  972. }
  973. else if (d10 = 2)
  974. {
  975. cout << "You get a crystal shield!";
  976. }
  977. else if (d10 = 3)
  978. {
  979. cout << "You get a golden shield!";
  980. }
  981. else if (d10 = 4)
  982. {
  983. cout << "You get a golden shield!";
  984. }
  985. else if (d10 = 5)
  986. {
  987. cout << "You get a gemstone shield!";
  988. }
  989. else if (d10 = 6)
  990. {
  991. cout << "You get a gemstone shield!";
  992. }
  993. else if (d10 = 7)
  994. {
  995. cout << "You get a golden shield!";
  996. }
  997. else if (d10 = 8)
  998. {
  999. cout << "You get a golden shield!";
  1000. }
  1001. else if (d10 = 9)
  1002. {
  1003. cout << "You get a golden shield!";
  1004. }
  1005. else if (d10 = 10)
  1006. {
  1007. cout << "You get a golden shield!";
  1008. }
  1009. }
  1010. }
  1011. else if (random > 70 & random <= 80)
  1012. {
  1013. cout << "You get some formal components! Please specify Earth or Celestial components " << endl;
  1014. cin >> formal;
  1015. if (formal = "Earth")
  1016. {
  1017. cout << "Rolling to see what kind of Earth components you get: \n";
  1018. if (d10 = 1)
  1019. {
  1020. cout << "You get " << quartz3 << " Quartz!";
  1021. }
  1022. else if (d10 = 2)
  1023. {
  1024. cout << "You get " << insect << " insects trapped in Amber!";
  1025. }
  1026. else if (d10 = 3)
  1027. {
  1028. cout << "You get " << moredust << " dust from a fault line!";
  1029. }
  1030. else if (d10 = 4)
  1031. {
  1032. cout << "You get " << moreshell << " shells of a dragon turtle!";
  1033. }
  1034. else if (d10 = 5)
  1035. {
  1036. cout << "You get " << morescales << " Dragon scales!";
  1037. }
  1038. else if (d10 = 6)
  1039. {
  1040. cout << "You get " << blooms << " blooms of a century cactus!";
  1041. }
  1042. else if (d10 = 7)
  1043. {
  1044. cout << "You get " << moreblooms << "blooms of a century cactus!";
  1045. }
  1046. else if (d10 = 8)
  1047. {
  1048. cout << "You get " << ruby << " perfect rubies!";
  1049. }
  1050. else if (d10 = 9)
  1051. {
  1052. cout << "You get " << silver << " volcanic silver!";
  1053. }
  1054. else if (d10 = 10)
  1055. {
  1056. cout << "You get " << hide << " hides of a Greater Stone Drake! Congratulations!";
  1057. }
  1058. }
  1059. else if (formal = "Celestial")
  1060. {
  1061. cout << "Rolling to see what kind of Celestial components you get: \n";
  1062. if (d10 = 1)
  1063. {
  1064. cout << "You get " << quartz2 << " Pumice!";
  1065. }
  1066. else if (d10 = 2)
  1067. {
  1068. cout << "You get " << insect << " unbroken quartz geode!";
  1069. }
  1070. else if (d10 = 3)
  1071. {
  1072. cout << "You get " << moredust << " dust from a fault line!";
  1073. }
  1074. else if (d10 = 4)
  1075. {
  1076. cout << "You get " << moreshell << " Celestial Sundials!";
  1077. }
  1078. else if (d10 = 5)
  1079. {
  1080. cout << "You get " << morescales << " Bronze Razor Wires!";
  1081. }
  1082. else if (d10 = 6)
  1083. {
  1084. cout << "You get " << blooms << " Phoenix feathers!!";
  1085. }
  1086. else if (d10 = 7)
  1087. {
  1088. cout << "You get " << moreblooms << " Phoenix feathers!!";
  1089. }
  1090. else if (d10 = 8)
  1091. {
  1092. cout << "You get " << ruby << " Perfect Sapphires!";
  1093. }
  1094. else if (d10 = 9)
  1095. {
  1096. cout << "You get " << silver << " Meteoric Silver!";
  1097. }
  1098. else if (d10 = 10)
  1099. {
  1100. cout << "You get " << hide << " Mantle of a Swan Ray! Congratulations!";
  1101. }
  1102. }
  1103. }
  1104. else if (random > 80 & random <= 87)
  1105. {
  1106. cout << "You get your choice of Formal vessels, up to Gold level! (Plot exceptions apply)" << endl;
  1107. }
  1108. else if (random > 87 & random <= 94)
  1109. {
  1110. cout << "You get your choice of formal component from Quartz, Insect trapped in Amber, 100 year old Oak, Dust from a Fault Line, Shell of a Dragon Turtle, Dragon Scale, Bloom of a Century Cactus, Pumice, Unbroken Quartz Geode, Celestial Dust, Celestial Sundial, Bronze Razor Wire, or Phoenix Feather. " << endl;
  1111. }
  1112. else if (random > 94 & random <= 97)
  1113. {
  1114. cout << "You get a weapon with enchantments on it! Rolling to see what kind of weapon with how many enchants are on it: ";
  1115. if (weapon = 1)
  1116. {
  1117. cout << "You get a Cold Wrought Iron Dagger!";
  1118. }
  1119. else if (weapon = 2)
  1120. {
  1121. cout << "You get a Cold Wrought Iron Dagger!";
  1122. }
  1123. else if (weapon = 3)
  1124. {
  1125. cout << "You get a Silver Dagger!";
  1126. }
  1127. else if (weapon = 4)
  1128. {
  1129. cout << "You get a Silver Dagger!";
  1130. }
  1131. else if (weapon = 5)
  1132. {
  1133. cout << "You get a Crystal Dagger!";
  1134. }
  1135. else if (weapon = 6)
  1136. {
  1137. cout << "You get a Crystal Dagger!";
  1138. }
  1139. else if (weapon = 7)
  1140. {
  1141. cout << "You get a Gold Dagger!";
  1142. }
  1143. else if (weapon = 8)
  1144. {
  1145. cout << "You get a Gold Dagger!";
  1146. }
  1147. else if (weapon = 9)
  1148. {
  1149. cout << "You get a Gemstone Dagger!";
  1150. }
  1151. else if (weapon = 10)
  1152. {
  1153. cout << "You get a Gemstone Dagger!";
  1154. }
  1155. }
  1156. else if (d10 = 2)
  1157. {
  1158. cout << "You get a Shortsword! Rolling to see what kind of Shortsword you get: \n";
  1159. if (weapon = 1)
  1160. {
  1161. cout << "You get a Cold Wrought Iron Shortsword!";
  1162. }
  1163. else if (weapon = 2)
  1164. {
  1165. cout << "You get a Cold Wrought Iron Shortsword!";
  1166. }
  1167. else if (weapon = 3)
  1168. {
  1169. cout << "You get a Silver Shortsword!";
  1170. }
  1171. else if (weapon = 4)
  1172. {
  1173. cout << "You get a Silver Shortsword!";
  1174. }
  1175. else if (weapon = 5)
  1176. {
  1177. cout << "You get a Crystal Shortsword!";
  1178. }
  1179. else if (weapon = 6)
  1180. {
  1181. cout << "You get a Crystal Shortsword!";
  1182. }
  1183. else if (weapon = 7)
  1184. {
  1185. cout << "You get a Gold Shortsword!";
  1186. }
  1187. else if (weapon = 8)
  1188. {
  1189. cout << "You get a Gold Shortsword!";
  1190. }
  1191. else if (weapon = 9)
  1192. {
  1193. cout << "You get a Gemstone Shortsword!";
  1194. }
  1195. else if (weapon = 10)
  1196. {
  1197. cout << "You get a Gemstone Shortsword!";
  1198. }
  1199. }
  1200. else if (d10 = 3)
  1201. {
  1202. cout << "You get a Longsword or Spear! Rolling to see what kind of Longsword or Spear you get: \n";
  1203. if (weapon = 1)
  1204. {
  1205. cout << "You get a Cold Wrought Iron Longsword or Spear!";
  1206. }
  1207. else if (weapon = 2)
  1208. {
  1209. cout << "You get a Cold Wrought Iron Longsword or Spear!";
  1210. }
  1211. else if (weapon = 3)
  1212. {
  1213. cout << "You get a Silver Longsword or Spear!";
  1214. }
  1215. else if (weapon = 4)
  1216. {
  1217. cout << "You get a Silver Longsword or Spear!";
  1218. }
  1219. else if (weapon = 5)
  1220. {
  1221. cout << "You get a Crystal Longsword or Spear!";
  1222. }
  1223. else if (weapon = 6)
  1224. {
  1225. cout << "You get a Crystal Longsword or Spear!";
  1226. }
  1227. else if (weapon = 7)
  1228. {
  1229. cout << "You get a Gold Longsword or Spear!";
  1230. }
  1231. else if (weapon = 8)
  1232. {
  1233. cout << "You get a Gold Longsword or Spear!";
  1234. }
  1235. else if (weapon = 9)
  1236. {
  1237. cout << "You get a Gemstone Longsword or Spear!";
  1238. }
  1239. else if (weapon = 10)
  1240. {
  1241. cout << "You get a Gemstone Longsword or Spear!";
  1242. }
  1243. }
  1244. else if (d10 = 4)
  1245. {
  1246. cout << "You get a Mace or Hammer! Rolling to see what kind of Mace or Hammer you get: \n";
  1247. if (weapon = 1)
  1248. {
  1249. cout << "You get a Cold Wrought Iron Mace or Hammer!";
  1250. }
  1251. else if (weapon = 2)
  1252. {
  1253. cout << "You get a Cold Wrought Iron Mace or Hammer!";
  1254. }
  1255. else if (weapon = 3)
  1256. {
  1257. cout << "You get a Silver Mace or Hammer!";
  1258. }
  1259. else if (weapon = 4)
  1260. {
  1261. cout << "You get a Silver Mace or Hammer!";
  1262. }
  1263. else if (weapon = 5)
  1264. {
  1265. cout << "You get a Crystal Mace or Hammer!";
  1266. }
  1267. else if (weapon = 6)
  1268. {
  1269. cout << "You get a Crystal Mace or Hammer!";
  1270. }
  1271. else if (weapon = 7)
  1272. {
  1273. cout << "You get a Gold Mace or Hammer!";
  1274. }
  1275. else if (weapon = 8)
  1276. {
  1277. cout << "You get a Gold Mace or Hammer!";
  1278. }
  1279. else if (weapon = 9)
  1280. {
  1281. cout << "You get a Gemstone Mace or Hammer!";
  1282. }
  1283. else if (weapon = 10)
  1284. {
  1285. cout << "You get a Gemstone Mace or Hammer!";
  1286. }
  1287. }
  1288. else if (d10 = 5)
  1289. {
  1290. cout << "You get a piece of jewelry! Rolling to see what material your jewelry is made out of: \n";
  1291. if (weapon = 1)
  1292. {
  1293. cout << "You get a Cold Wrought Iron piece of jewelry!";
  1294. }
  1295. else if (weapon = 2)
  1296. {
  1297. cout << "You get a Cold Wrought Iron piece of jewelry!";
  1298. }
  1299. else if (weapon = 3)
  1300. {
  1301. cout << "You get a Silver piece of jewelry!";
  1302. }
  1303. else if (weapon = 4)
  1304. {
  1305. cout << "You get a Silver piece of jewelry!";
  1306. }
  1307. else if (weapon = 5)
  1308. {
  1309. cout << "You get a Crystal piece of jewelry!";
  1310. }
  1311. else if (weapon = 6)
  1312. {
  1313. cout << "You get a Crystal piece of jewelry!";
  1314. }
  1315. else if (weapon = 7)
  1316. {
  1317. cout << "You get a Gold piece of jewelry!";
  1318. }
  1319. else if (weapon = 8)
  1320. {
  1321. cout << "You get a Gold piece of jewelry!";
  1322. }
  1323. else if (weapon = 9)
  1324. {
  1325. cout << "You get a Gemstone piece of jewelry!";
  1326. }
  1327. else if (weapon = 10)
  1328. {
  1329. cout << "You get a Gemstone piece of jewelry!";
  1330. }
  1331. }
  1332. else if (d10 = 6)
  1333. {
  1334. cout << "You get a piece of jewelry! Rolling to see what material your jewelry is made out of: \n";
  1335. if (weapon = 1)
  1336. {
  1337. cout << "You get a Cold Wrought Iron piece of jewelry!";
  1338. }
  1339. else if (weapon = 2)
  1340. {
  1341. cout << "You get a Cold Wrought Iron piece of jewelry!";
  1342. }
  1343. else if (weapon = 3)
  1344. {
  1345. cout << "You get a Silver piece of jewelry!";
  1346. }
  1347. else if (weapon = 4)
  1348. {
  1349. cout << "You get a Silver piece of jewelry!";
  1350. }
  1351. else if (weapon = 5)
  1352. {
  1353. cout << "You get a Crystal piece of jewelry!";
  1354. }
  1355. else if (weapon = 6)
  1356. {
  1357. cout << "You get a Crystal piece of jewelry!";
  1358. }
  1359. else if (weapon = 7)
  1360. {
  1361. cout << "You get a Gold piece of jewelry!";
  1362. }
  1363. else if (weapon = 8)
  1364. {
  1365. cout << "You get a Gold piece of jewelry!";
  1366. }
  1367. else if (weapon = 9)
  1368. {
  1369. cout << "You get a Gemstone piece of jewelry!";
  1370. }
  1371. else if (weapon = 10)
  1372. {
  1373. cout << "You get a Gemstone piece of jewelry!";
  1374. }
  1375. }
  1376. else if (d10 = 7)
  1377. {
  1378. cout << "You get a Wand! Rolling to see what kind of Wand you get: \n";
  1379. if (weapon = 1)
  1380. {
  1381. cout << "You get a Cold Wrought Iron Wand!";
  1382. }
  1383. else if (weapon = 2)
  1384. {
  1385. cout << "You get a Cold Wrought Iron Wand!";
  1386. }
  1387. else if (weapon = 3)
  1388. {
  1389. cout << "You get a Silver Wand!";
  1390. }
  1391. else if (weapon = 4)
  1392. {
  1393. cout << "You get a Silver Wand!";
  1394. }
  1395. else if (weapon = 5)
  1396. {
  1397. cout << "You get a Crystal Wand!";
  1398. }
  1399. else if (weapon = 6)
  1400. {
  1401. cout << "You get a Crystal Wand!";
  1402. }
  1403. else if (weapon = 7)
  1404. {
  1405. cout << "You get a Gold Wand!";
  1406. }
  1407. else if (weapon = 8)
  1408. {
  1409. cout << "You get a Gold Wand!";
  1410. }
  1411. else if (weapon = 9)
  1412. {
  1413. cout << "You get a Gemstone Wand!";
  1414. }
  1415. else if (weapon = 10)
  1416. {
  1417. cout << "You get a Gemstone Wand!";
  1418. }
  1419. }
  1420. else if (d10 = 8)
  1421. {
  1422. cout << "You get a two handed weapon! (player's choice). Rolling to see what material your weapon is: \n";
  1423. if (weapon = 1)
  1424. {
  1425. cout << "You get a Cold Wrought Iron two handed weapon!";
  1426. }
  1427. else if (weapon = 2)
  1428. {
  1429. cout << "You get a Cold Wrought Iron two handed weapon!";
  1430. }
  1431. else if (weapon = 3)
  1432. {
  1433. cout << "You get a Silver two handed weapon!";
  1434. }
  1435. else if (weapon = 4)
  1436. {
  1437. cout << "You get a Silver two handed weapon!";
  1438. }
  1439. else if (weapon = 5)
  1440. {
  1441. cout << "You get a Crystal two handed weapon!";
  1442. }
  1443. else if (weapon = 6)
  1444. {
  1445. cout << "You get a Crystal two handed weapon!";
  1446. }
  1447. else if (weapon = 7)
  1448. {
  1449. cout << "You get a Gold two handed weapon!";
  1450. }
  1451. else if (weapon = 8)
  1452. {
  1453. cout << "You get a Gold two handed weapon!";
  1454. }
  1455. else if (weapon = 9)
  1456. {
  1457. cout << "You get a Gemstone two handed weapon!";
  1458. }
  1459. else if (weapon = 10)
  1460. {
  1461. cout << "You get a Gemstone two handed weapon!";
  1462. }
  1463. }
  1464. else if (d10 = 9)
  1465. {
  1466. cout << "You get a two handed weapon! (player's choice). Rolling to see what material your weapon is: \n";
  1467. if (weapon = 1)
  1468. {
  1469. cout << "You get a Cold Wrought Iron two handed weapon!";
  1470. }
  1471. else if (weapon = 2)
  1472. {
  1473. cout << "You get a Cold Wrought two handed weapon!";
  1474. }
  1475. else if (weapon = 3)
  1476. {
  1477. cout << "You get a Silver two handed weapon!";
  1478. }
  1479. else if (weapon = 4)
  1480. {
  1481. cout << "You get a Silver two handed weapon!";
  1482. }
  1483. else if (weapon = 5)
  1484. {
  1485. cout << "You get a Crystal two handed weapon!";
  1486. }
  1487. else if (weapon = 6)
  1488. {
  1489. cout << "You get a Crystal two handed weapon!";
  1490. }
  1491. else if (weapon = 7)
  1492. {
  1493. cout << "You get a Gold two handed weapon!";
  1494. }
  1495. else if (weapon = 8)
  1496. {
  1497. cout << "You get a Gold two handed weapon!";
  1498. }
  1499. else if (weapon = 9)
  1500. {
  1501. cout << "You get a Gemstone two handed weapon!";
  1502. }
  1503. else if (weapon = 10)
  1504. {
  1505. cout << "You get a Gemstone two handed weapon!";
  1506. }
  1507. }
  1508. else if (d10 = 10)
  1509. {
  1510. cout << "You get a shield! Rolling to see what material your shield is: \n";
  1511. if (weapon = 1)
  1512. {
  1513. cout << "You get a Cold Wrought Iron Shield!";
  1514. }
  1515. else if (weapon = 2)
  1516. {
  1517. cout << "You get a Cold Wrought Iron Shield!";
  1518. }
  1519. else if (weapon = 3)
  1520. {
  1521. cout << "You get a Silver Shield!";
  1522. }
  1523. else if (weapon = 4)
  1524. {
  1525. cout << "You get a Silver Shield!";
  1526. }
  1527. else if (weapon = 5)
  1528. {
  1529. cout << "You get a Crystal Shield!";
  1530. }
  1531. else if (weapon = 6)
  1532. {
  1533. cout << "You get a Crystal Shield!";
  1534. }
  1535. else if (weapon = 7)
  1536. {
  1537. cout << "You get a Gold Shield!";
  1538. }
  1539. else if (weapon = 8)
  1540. {
  1541. cout << "You get a Gold Shield";
  1542. }
  1543. else if (weapon = 9)
  1544. {
  1545. cout << "You get a Gemstone Shield!";
  1546. }
  1547. else if (weapon = 10)
  1548. {
  1549. cout << "You get a Gemstone Shield!";
  1550. }
  1551. cout << "You get " << enchant << " enchantments on it! Please manually roll these.";
  1552. }
  1553. else if (random > 97 & random <= 99)
  1554. {
  1555. cout << "You get a weapon with enchantments! Rolling to specify: ";
  1556. if (d10 = 1)
  1557. {
  1558. cout << "You get a silver dagger!";
  1559. }
  1560. else if (d10 = 2)
  1561. {
  1562. cout << "You get a crystal dagger!";
  1563. }
  1564. else if (d10 = 3)
  1565. {
  1566. cout << "You get a golden dagger!";
  1567. }
  1568. else if (d10 = 4)
  1569. {
  1570. cout << "You get a golden dagger!";
  1571. }
  1572. else if (d10 = 5)
  1573. {
  1574. cout << "You get a gemstone dagger!";
  1575. }
  1576. else if (d10 = 6)
  1577. {
  1578. cout << "You get a gemstone dagger!";
  1579. }
  1580. else if (d10 = 7)
  1581. {
  1582. cout << "You get a golden dagger!";
  1583. }
  1584. else if (d10 = 8)
  1585. {
  1586. cout << "You get a golden dagger!";
  1587. }
  1588. else if (d10 = 9)
  1589. {
  1590. cout << "You get a golden dagger!";
  1591. }
  1592. else if (d10 = 10)
  1593. {
  1594. cout << "You get a golden dagger!";
  1595. }
  1596. }
  1597. else if (weapon = 2)
  1598. {
  1599. cout << "You get a Shortsword! Rolling to see what kind of Shortsword you get: \n";
  1600. if (d10 = 1)
  1601. {
  1602. cout << "You get a silver shortsword!";
  1603. }
  1604. else if (d10 = 2)
  1605. {
  1606. cout << "You get a crystal shortsword!";
  1607. }
  1608. else if (d10 = 3)
  1609. {
  1610. cout << "You get a golden shortsword!";
  1611. }
  1612. else if (d10 = 4)
  1613. {
  1614. cout << "You get a golden shortsword!";
  1615. }
  1616. else if (d10 = 5)
  1617. {
  1618. cout << "You get a gemstone shortsword!";
  1619. }
  1620. else if (d10 = 6)
  1621. {
  1622. cout << "You get a gemstone shortsword!";
  1623. }
  1624. else if (d10 = 7)
  1625. {
  1626. cout << "You get a golden shortsword!";
  1627. }
  1628. else if (d10 = 8)
  1629. {
  1630. cout << "You get a golden shortsword!";
  1631. }
  1632. else if (d10 = 9)
  1633. {
  1634. cout << "You get a golden shortsword!";
  1635. }
  1636. else if (d10 = 10)
  1637. {
  1638. cout << "You get a golden shortsword!";
  1639. }
  1640. }
  1641. else if (weapon = 3)
  1642. {
  1643. cout << "You get a Longsword or spear (Player's Choice)! Rolling to see what kind of material it's made out of: \n";
  1644. if (d10 = 1)
  1645. {
  1646. cout << "You get a silver longsword or spear!";
  1647. }
  1648. else if (d10 = 2)
  1649. {
  1650. cout << "You get a crystal longsword or spear!";
  1651. }
  1652. else if (d10 = 3)
  1653. {
  1654. cout << "You get a golden longsword or spear!";
  1655. }
  1656. else if (d10 = 4)
  1657. {
  1658. cout << "You get a golden longsword or spear!";
  1659. }
  1660. else if (d10 = 5)
  1661. {
  1662. cout << "You get a gemstone longsword or spear!";
  1663. }
  1664. else if (d10 = 6)
  1665. {
  1666. cout << "You get a gemstone longsword or spear!";
  1667. }
  1668. else if (d10 = 7)
  1669. {
  1670. cout << "You get a golden longsword or spear!";
  1671. }
  1672. else if (d10 = 8)
  1673. {
  1674. cout << "You get a golden longsword or spear!";
  1675. }
  1676. else if (d10 = 9)
  1677. {
  1678. cout << "You get a golden longsword or spear!";
  1679. }
  1680. else if (d10 = 10)
  1681. {
  1682. cout << "You get a golden longsword or spear!";
  1683. }
  1684. }
  1685. else if (weapon = 4)
  1686. {
  1687. cout << "You get a Mace or a Hammer! (Player's Choice) Rolling to see what material it's made out of: \n";
  1688. if (d10 = 1)
  1689. {
  1690. cout << "You get a silver Mace or Hammer!";
  1691. }
  1692. else if (d10 = 2)
  1693. {
  1694. cout << "You get a crystal Mace or Hammer!";
  1695. }
  1696. else if (d10 = 3)
  1697. {
  1698. cout << "You get a golden Mace or Hammer!";
  1699. }
  1700. else if (d10 = 4)
  1701. {
  1702. cout << "You get a golden Mace or Hammer!";
  1703. }
  1704. else if (d10 = 5)
  1705. {
  1706. cout << "You get a gemstone Mace or Hammer!";
  1707. }
  1708. else if (d10 = 6)
  1709. {
  1710. cout << "You get a gemstone Mace or Hammer!";
  1711. }
  1712. else if (d10 = 7)
  1713. {
  1714. cout << "You get a golden Mace or Hammer!";
  1715. }
  1716. else if (d10 = 8)
  1717. {
  1718. cout << "You get a golden Mace or Hammer!";
  1719. }
  1720. else if (d10 = 9)
  1721. {
  1722. cout << "You get a golden Mace or Hammer!";
  1723. }
  1724. else if (d10 = 10)
  1725. {
  1726. cout << "You get a golden Mace or Hammer!";
  1727. }
  1728. }
  1729. else if (weapon = 5)
  1730. {
  1731. cout << "You get a piece of jewelry! Rolling to see what material it's made out of: \n";
  1732. if (d10 = 1)
  1733. {
  1734. cout << "You get a silver piece of jewelry!";
  1735. }
  1736. else if (d10 = 2)
  1737. {
  1738. cout << "You get a crystal piece of jewelry!";
  1739. }
  1740. else if (d10 = 3)
  1741. {
  1742. cout << "You get a golden piece of jewelry!";
  1743. }
  1744. else if (d10 = 4)
  1745. {
  1746. cout << "You get a golden piece of jewelry!";
  1747. }
  1748. else if (d10 = 5)
  1749. {
  1750. cout << "You get a gemstone piece of jewelry!";
  1751. }
  1752. else if (d10 = 6)
  1753. {
  1754. cout << "You get a gemstone piece of jewelry!";
  1755. }
  1756. else if (d10 = 7)
  1757. {
  1758. cout << "You get a golden piece of jewelry!";
  1759. }
  1760. else if (d10 = 8)
  1761. {
  1762. cout << "You get a golden piece of jewelry!";
  1763. }
  1764. else if (d10 = 9)
  1765. {
  1766. cout << "You get a golden piece of jewelry!";
  1767. }
  1768. else if (d10 = 10)
  1769. {
  1770. cout << "You get a golden piece of jewelry!";
  1771. }
  1772. }
  1773. else if (weapon = 6)
  1774. {
  1775. cout << "You get a piece of jewelry! Rolling to see what it's made out of: \n";
  1776. if (d10 = 1)
  1777. {
  1778. cout << "You get a silver piece of jewelry!";
  1779. }
  1780. else if (d10 = 2)
  1781. {
  1782. cout << "You get a crystal piece of jewelry!";
  1783. }
  1784. else if (d10 = 3)
  1785. {
  1786. cout << "You get a golden piece of jewelry!";
  1787. }
  1788. else if (d10 = 4)
  1789. {
  1790. cout << "You get a golden piece of jewelry!";
  1791. }
  1792. else if (d10 = 5)
  1793. {
  1794. cout << "You get a gemstone piece of jewelry!";
  1795. }
  1796. else if (d10 = 6)
  1797. {
  1798. cout << "You get a gemstone piece of jewelry!";
  1799. }
  1800. else if (d10 = 7)
  1801. {
  1802. cout << "You get a golden piece of jewelry!";
  1803. }
  1804. else if (d10 = 8)
  1805. {
  1806. cout << "You get a golden piece of jewelry!";
  1807. }
  1808. else if (d10 = 9)
  1809. {
  1810. cout << "You get a golden piece of jewelry!";
  1811. }
  1812. else if (d10 = 10)
  1813. {
  1814. cout << "You get a golden piece of jewelry!";
  1815. }
  1816. }
  1817. else if (weapon = 8)
  1818. {
  1819. cout << "You get a two handed weapon! (Player's choice) Rolling to see what material the weapon is made of: \n";
  1820. if (d10 = 1)
  1821. {
  1822. cout << "You get a silver two handed weapon!";
  1823. }
  1824. else if (d10 = 2)
  1825. {
  1826. cout << "You get a crystal two handed weapon!";
  1827. }
  1828. else if (d10 = 3)
  1829. {
  1830. cout << "You get a golden two handed weapon!";
  1831. }
  1832. else if (d10 = 4)
  1833. {
  1834. cout << "You get a golden two handed weapon!";
  1835. }
  1836. else if (d10 = 5)
  1837. {
  1838. cout << "You get a gemstone two handed weapon!";
  1839. }
  1840. else if (d10 = 6)
  1841. {
  1842. cout << "You get a gemstone two handed weapon!";
  1843. }
  1844. else if (d10 = 7)
  1845. {
  1846. cout << "You get a golden two handed weapon!";
  1847. }
  1848. else if (d10 = 8)
  1849. {
  1850. cout << "You get a golden two handed weapon!";
  1851. }
  1852. else if (d10 = 9)
  1853. {
  1854. cout << "You get a golden two handed weapon!";
  1855. }
  1856. else if (d10 = 10)
  1857. {
  1858. cout << "You get a golden two handed weapon!";
  1859. }
  1860. }
  1861. else if (weapon = 9)
  1862. {
  1863. cout << "You get a two handed weapon! (Player's choice) Rolling to see what kind of material it's made out of: \n";
  1864. if (d10 = 1)
  1865. {
  1866. cout << "You get a silver two handed weapon!";
  1867. }
  1868. else if (d10 = 2)
  1869. {
  1870. cout << "You get a crystal two handed weapon!";
  1871. }
  1872. else if (d10 = 3)
  1873. {
  1874. cout << "You get a golden two handed weapon!";
  1875. }
  1876. else if (d10 = 4)
  1877. {
  1878. cout << "You get a golden two handed weapon!";
  1879. }
  1880. else if (d10 = 5)
  1881. {
  1882. cout << "You get a gemstone two handed weapon!";
  1883. }
  1884. else if (d10 = 6)
  1885. {
  1886. cout << "You get a gemstone two handed weapon!";
  1887. }
  1888. else if (d10 = 7)
  1889. {
  1890. cout << "You get a golden two handed weapon!";
  1891. }
  1892. else if (d10 = 8)
  1893. {
  1894. cout << "You get a golden two handed weapon!";
  1895. }
  1896. else if (d10 = 9)
  1897. {
  1898. cout << "You get a golden two handed weapon!";
  1899. }
  1900. else if (d10 = 10)
  1901. {
  1902. cout << "You get a golden two handed weapon!";
  1903. }
  1904. }
  1905. else if (weapon = 10)
  1906. {
  1907. cout << "You get a shield! Rolling to see what kind of shield it is: \n";
  1908. if (d10 = 1)
  1909. {
  1910. cout << "You get a silver shield!";
  1911. }
  1912. else if (d10 = 2)
  1913. {
  1914. cout << "You get a crystal shield!";
  1915. }
  1916. else if (d10 = 3)
  1917. {
  1918. cout << "You get a golden shield!";
  1919. }
  1920. else if (d10 = 4)
  1921. {
  1922. cout << "You get a golden shield!";
  1923. }
  1924. else if (d10 = 5)
  1925. {
  1926. cout << "You get a gemstone shield!";
  1927. }
  1928. else if (d10 = 6)
  1929. {
  1930. cout << "You get a gemstone shield!";
  1931. }
  1932. else if (d10 = 7)
  1933. {
  1934. cout << "You get a golden shield!";
  1935. }
  1936. else if (d10 = 8)
  1937. {
  1938. cout << "You get a golden shield!";
  1939. }
  1940. else if (d10 = 9)
  1941. {
  1942. cout << "You get a golden shield!";
  1943. }
  1944. else if (d10 = 10)
  1945. {
  1946. cout << "You get a golden shield!";
  1947. }
  1948. cout << " \n You get " << enchant2 << " enchantments on it! Please manually roll these";
  1949.  
  1950. }
  1951. else if (random = 100)
  1952. {
  1953. cout << "You get a free group pull! Congratulations!";
  1954. }
  1955. system("PAUSE");
  1956. }
  1957. return 0;
  1958. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement