Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- oid tutorial();
- //basicenemy();
- //healthpotion();
- void firstdungeon (char name[])
- {
- int chance;
- int x;
- //Tutorial for enemies and health
- for (x = 0; x < 15; x ++)
- {
- chance = (rand() % 3) + x;
- if (chance < 5)
- cout << "The path is clear" << endl;
- else if (chance < 8 && chance > 5)
- cout << "A health potion has appeared" << endl;
- //Healthpotion()
- else if (chance < 13)
- //basicenemy()
- cout << " A foe stands in your way" << endl;
- //Combat()
- if (x > 10)
- chance = (rand() % 5) + 4;
- if (chance < 5)
- cout << "The path is clear" << endl;
- else if (chance < 8 && chance > 5)
- cout << "A health potion has appeared" << endl;
- else if (chance < 13)
- //basicenemy()+
- cout << " A foe stands in your way" << endl;
- //Combat()
- }
- cout << "You have found the final enemy" << endl;
- system("pause");
- cout << " THE MIGHTY DRAGON!!! "<< endl;
- cout << " ___====-_ _-====___" << endl;
- cout << " __--^^^ // \\ ^^^--_" << endl;
- cout << " _-^ // ( ) \\ ^-_" << endl;
- cout << " - // |\^^/| \\ -" << endl;
- cout << " _/ // (0::0) \\ \_" << endl;
- cout << " / (( \\// )) \ " << endl;
- cout << " - \\ (oo) // -" << endl;
- cout << " - \\ / \/ \ // -" << endl;
- cout << " - \\/ \// -" << endl;
- cout << "/ /| /\ ( ) /\ |\ \ " << endl;
- cout << "|/ | /\_/\_/\_/ \_/\ ( /\ ) /\_/ \_/\_/\_/\ | \|" << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement