#include<bits/stdc++.h>
using namespace std;
int p;
string me;
int a,b,c;
string l;
string xi;
int xm;
int sd;
string id1="诺亚";
int a1=100,b1=58,c1=300;
string jn1="光刃";
string id2="陈炫任";
int a2=55,b2=90,c2=500;
string jn2="AC之力";
string id3="海特";
int a3=80,b3=88,c3=423;
string jn3="盾墙" ;
string id4="原始人";
int a4=30,b4=90,c4=429;
string jn4="血脉觉醒";
string id5="卢禹潭";
int a5=40,b5=69,c5=450;
string jn5="恒温了";
string id6="袁泽雨";
int a6=9999,b6=30,c6=4809;
string jn6="袁子弹";
int main(){
cout << "欢迎体验《末日求求生记》1.0.0"<<endl;
cout << "末日求求生记"<<endl;
cout << "Y启动/N卸载/A关于"<<endl;
char y;
cin>>y;
if(y=='A'){
cout <<"本游戏为《末日求求生记》1.0.0版本,作者郝子豪,严禁抄袭!"<<endl;
cout <<"本游戏提取多人建议创造而成......"<<endl;
cin >> y;
}
if(y=='N') cout <<"游戏卸载成功!";
if(y=='Y'){
cout << "加载中......"<<endl ;
cout << "故事开始于第三次世界大战:"<<endl;
cout << "日本使用核武器过多而导致生物变异"<<endl;
cout <<"人类为了生存开始了冒险!";
cout <<"请输入你的姓名:";
string n1;
cin >>n1;
cout << "请选择你的角色:"<<endl;
cout <<"1.诺亚" << endl;
cout <<"2.陈炫任" << endl;
cout <<"3.海特" << endl;
cout <<"4.原始人" <<endl;
cout <<"5.卢禹潭" <<endl;
cout <<"6.袁泽雨" <<endl;
cin >> p;
if(p==1){
me=id1;
a=a1,b=b1,c=c1;
l=jn1;
}
else if(p==2){
me=id2;
a=a2,b=b2,c=c2;
l=jn2;
}
else if(p==3){
me=id3;
a=a3,b=b3,c=c3;
l=jn3;
}
else if(p==4){
me=id4;
a=a4,b=b4,c=c4;
l=jn4;
}
else if(p==5){
me=id5;
a=a5,b=b5,c=c5;
l=jn5;
}
else if(p==6){
me=id6;
a=a6,b=b6,c=c6;
l=jn6;
}
cout <<me<<":-------我为什么会在这里?-------"<<endl;
cout <<me<<":TM的,这是什么地方~"<<endl;
cout <<"未知:你是谁?"<<endl;
cout <<me<<":我是"<<me<<"你呢?" <<endl;
cout <<"未知:我?我叫格尔,你为什么在这?"<<endl;
cout <<me<<":我不知道!"<<endl;
cout <<"格尔:小心!有坏人!"<<endl;
cout <<"几个火球飞了过来-----------------------------"<<endl;
cout <<"你是谁?"<<endl;
int w1=150,w2=600;
cout <<"敌人血量:"<<w2<<endl;
cout <<"敌人攻击力:"<<w1<<endl;
int cnt=0;
int cut=0;
int cct=0;
for(int i=1;;i++){
if(c<=0) {
cout <<"game ovre";
sd++;
break;
}
if (w2<=200){
cout << "敌人生气了!"<<endl;
cout <<"你的血量-"<<w1<<endl;
c=c+b-w1;
cout <<"剩余血量:"<<c<<endl;
}
cout << "1.攻击 2.技能 3.防御" <<endl;
int t;
cin >> t;
if(t==1){
w2=w2-a;
cout <<"敌人血量-"<<a<<endl;
cout <<"敌人血量:"<<w2<<endl;
}
else if(t==2 and cnt<=1){
cout << l<<" ";
w2=w2-a-a/3;
cout <<"敌人血量-"<<a+a/3<<endl;
cout <<"敌人血量:"<<w2<<endl;
cnt++;
}
else if(t==2 and cnt > 1){
cout << "技能用完了"<<" ";
}
else if(t==3 and cut<=4){
c=c+30;
cout <<"自己血量+30"<<endl;
cout <<"敌人血量:"<<w2<<endl;
cut++;
}
else if(t==3 and cut>4){
cout << "防御失效了"<<" ";
}
if(w2<=0){
cout << "敌人死了"<<endl;
break;
}
cout <<"剩余血量:"<<c<<endl;
if(t!=1 and t!=2 and t!=3 and t!=4) cout <<"输入错误!"<<endl;
}
if(sd==0){
cout <<"---------------------------"<<endl;
cout << me << ":你是谁?"<<endl;
cout << "敌人:我乃小霸王!"<<endl;
cout << me << ":我看你是小王八!"<<endl;
cout << "小霸王:卧槽!你有点勇哦!"<<endl;
cout <<"格尔:吓死我了......"<<endl;
cout <<me<<":你为什么袭击我们?"<<endl;
cout <<"小霸王:这里好多年没人来了!"<<endl;
cout <<"小霸王:我以为你们是坏人(尴尬)。"<<endl;
cout <<"小霸王:为了表示欠意,我可以帮你升级"<<endl;
cout << "1.升级 2.不升级"<<endl;
int g;
cin >> g;
if (g==1){
cout <<"攻击力"<<a+100<<endl;
cout <<"防御力"<<b+80<<endl;
cout <<"生命值"<<c+500<<endl;
a=a+100;
b=b+80;
c=c+500;
}
else{
cout <<"攻击力"<<a<<endl;
cout <<"防御力"<<b<<endl;
cout <<"生命值"<<c<<endl;
}
cout << "小霸王:听说星斗森林有奇怪的怪兽" <<endl;
cout << "小霸王:那对我们威胁很大!" <<endl;
cout << "小霸王:我认为还是去去好。" <<endl;
cout << "----------到了森林----------" <<endl;
cout <<"格尔:好恐怖啊!"<<endl;
cout <<"嗷呜......"<<endl;
cout << "不好,是战狼!" <<endl;
int f1=250,f2=650;
cnt=0;
cut=0;
cout <<"战狼血量:"<<f2<<endl;
cout <<"战狼攻击力:"<<f1<<endl;
for(int i=1;;i++){
if(c<=0) {
cout <<"game ovre";
sd++;
break;
}
if (f2<=300){
cout << "战狼生气了!"<<endl;
cout <<"你的血量-"<<f1<<endl;
c=c+b-f1;
cout <<"剩余血量:"<<c<<endl;
}
cout << "1.攻击 2.技能 3.防御" <<endl;
int t;
cin >> t;
if(t==1){
f2=f2-a;
cout <<"战狼血量-"<<a<<endl;
cout <<"战狼血量:"<<f2<<endl;
}
else if(t==2 and cnt<=1){
cout << l<<" ";
f2=f2-a-a/3;
cout <<"战狼血量-"<<a+a/3<<endl;
cout <<"战狼血量:"<<f2<<endl;
cnt++;
}
else if(t==2 and cnt > 1){
cout << "技能用完了"<<" ";
}
else if(t==3 and cut<=4){
c=c+30;
cout <<"自己血量+30"<<endl;
cout <<"战狼血量:"<<f2<<endl;
cut++;
}
else if(t==3 and cut>4){
cout << "防御失效了"<<" ";
}
if(f2<=0){
cout << "战狼死了"<<endl;
break;
}
cout <<"剩余血量:"<<c<<endl;
if(t!=1 and t!=2 and t!=3 and t!=4) cout <<"输入错误!"<<endl;
}
if(sd==0){
cout <<"---------------------------"<<endl;
cout <<"格尔:终于死了!"<<endl;
cout <<"小霸王:唉,那战狼手中咋有一把剑?"<<endl;
cout <<"1.捡起那把剑 2.不捡起那把剑"<<endl;
int f9;
cin >> f9;
if (f9==1){
cout <<"攻击力:"<<a+100<<endl;
a=a+100;
}
else{
cout << me <<":这东西没用!"<<endl;
}
cout <<"格尔:这真是一个意外的掉落。" <<endl;
cout <<me <<":那我们再深入一点,说不定有什么好东西!"<<endl;
cout <<"--------走到了一片湖边--------"<<endl;
cout <<"小霸王:不好,晚上了。"<<endl;
cout <<me <<":怎么了?"<<endl;
cout <<"小霸王:晚上会有狼人出没。"<<endl;
cout <<"嗷呜,嗷呜,嗷呜..." <<endl;
cout <<"格尔:呃..." <<endl;
int f3=300,f4=800;
cnt=0;
cut=0;
cout <<"狼人血量:"<<f4<<endl;
cout <<"狼人攻击力:"<<f3<<endl;
for(int i=1;;i++){
if(c<=0) {
cout <<"game ovre";
sd++;
break;
}
if (f4<=600){
cout << "狼人生气了!"<<endl;
cout <<"你的血量-"<<f3<<endl;
c=c+b-f3;
cout <<"剩余血量:"<<c<<endl;
}
cout << "1.攻击 2.技能 3.防御" <<endl;
int t;
cin >> t;
if(t==1){
f4=f4-a;
cout <<"狼人血量-"<<a<<endl;
cout <<"狼人血量:"<<f4<<endl;
}
else if(t==2 and cnt<=1){
cout << l<<" ";
f4=f4-a-a/3;
cout <<"狼人血量-"<<a+a/3<<endl;
cout <<"狼人血量:"<<f4<<endl;
cnt++;
}
else if(t==2 and cnt > 1){
cout << "技能用完了"<<" ";
}
else if(t==3 and cut<=4){
c=c+30;
cout <<"自己血量+30"<<endl;
cout <<"狼人血量:"<<f4<<endl;
cut++;
}
else if(t==3 and cut>4){
cout << "防御失效了"<<" ";
}
if(f4<=0){
cout << "狼人死了"<<endl;
break;
}
cout <<"剩余血量:"<<c<<endl;
if(t!=1 and t!=2 and t!=3 and t!=4) cout <<"输入错误!"<<endl;
}
if(sd==0){
cout <<"---------------------------"<<endl;
cout << "小霸王:牛逼啊!" <<endl;
cout << "小霸王:你继承了狼人的血脉,获得了新的技能。" <<endl;
cout <<"格尔:听,有敌人来了!" <<endl;
int k1=500,k2=1500;
xi="咆哮";
xm=800;
cnt=0;
cut=0;
cct=0;
cout <<"暗黑魔爪熊血量:"<<k2<<endl;
cout <<"暗黑魔爪熊攻击力:"<<k1<<endl;
for(int i=1;;i++){
if(c<=0) {
cout <<"game ovre";
sd++;
break;
}
if (k2<=600){
cout << "暗黑魔爪熊生气了!"<<endl;
cout <<"你的血量-"<<k1<<endl;
c=c+b-k1;
cout <<"剩余血量:"<<c<<endl;
}
cout << "1.攻击 2.技能 3.防御 4.血脉之力" <<endl;
int t;
cin >> t;
if(t==1){
k2=k2-a;
cout <<"暗黑魔爪熊血量-"<<a<<endl;
cout <<"暗黑魔爪熊血量:"<<k2<<endl;
}
else if(t==2 and cnt<=1){
cout << l<<" ";
k2=k2-a-a/3;
cout <<"暗黑魔爪熊血量-"<<a+a/3<<endl;
cout <<"暗黑魔爪熊血量:"<<k2<<endl;
cnt++;
}
else if(t==2 and cnt > 1){
cout << "技能用完了"<<" ";
}
else if(t==3 and cut<=4){
c=c+30;
cout <<"自己血量+30"<<endl;
cout <<"暗黑魔爪熊血量:"<<k2<<endl;
cut++;
}
else if(t==3 and cut>4){
cout << "防御失效了"<<" ";
}
else if(t==4 and cct==0){
cout << xi<<endl;
k2=k2-xm;
cout <<"暗黑魔爪熊血量-"<<xm<<endl;
cout <<"暗黑魔爪熊血量:"<<k2<<endl;
cct++;
}
else if(t==4 and cct!=0){
cout <<"血脉之力用过了"<<endl;
}
if(k2<=0){
cout << "暗黑魔爪熊死了"<<endl;
break;
}
cout <<"剩余血量:"<<c<<endl;
if(t!=1 and t!=2 and t!=3 and t!=4) cout <<"输入错误!"<<endl;
}
if(sd==0){
cout <<"---------------------------"<<endl;
cout <<"小霸王:我们现在干嘛?"<<endl;
cout <<me<<": 1.我们继续走吧! 2.我们再休息一下!"<<endl;
int ggb;
cin >> ggb;
if(ggb==1){
cout << "小霸王:那走吧!"<<endl;
}
if(ggb==2){
cout << "小霸王:那是什么?"<<endl;
cout << "格尔:是生命之石!"<<endl;
cout << "你的生命值+3000"<<endl;
c=c+3000;
cout <<"目前血量:"<<c<<endl;
}
cout << "格尔:我们继续!" <<endl;
cout << me <<":走!"<<endl;
cout <<"--------森林深处--------"<<endl;
cout <<"小霸王:这么久都没遇到怪物。"<<endl;
cout << "格尔:别松懈!" <<endl;
cout <<"轰......"<<endl;
cout <<"小霸王:完了,是金龙王,我们必死无疑了!";
int k3=10000,k4=10000;
cnt=0;
cut=0;
cct=0;
cout <<"金龙王血量:"<<k2<<endl;
cout <<"金龙王攻击力:"<<k3<<endl;
for(int i=1;;i++){
if(c<=0) {
sd++;
break;
}
if (k4<=9999){
cout << "金龙王生气了!"<<endl;
cout <<"你的血量-"<<k3<<endl;
c=c+b-k3;
cout <<"剩余血量:"<<c<<endl;
}
cout << "1.攻击 2.技能 3.防御 4.血脉之力" <<endl;
int t;
cin >> t;
if(t==1){
k4=k4-a;
cout <<"金龙王血量-"<<a<<endl;
cout <<"金龙王血量:"<<k4<<endl;
}
else if(t==2 and cnt<=1){
cout << l<<" ";
k4=k4-a-a/3;
cout <<"金龙王血量-"<<a+a/3<<endl;
cout <<"金龙王血量:"<<k4<<endl;
cnt++;
}
else if(t==2 and cnt > 1){
cout << "技能用完了"<<" ";
}
else if(t==3 and cut<=4){
c=c+30;
cout <<"自己血量+30"<<endl;
cout <<"金龙王血量:"<<k4<<endl;
cut++;
}
else if(t==3 and cut>4){
cout << "防御失效了"<<" ";
}
else if(t==4 and cct==0){
cout << xi<<endl;
k4=k4-xm;
cout <<"金龙王血量-"<<xm<<endl;
cout <<"金龙王量:"<<k4<<endl;
cct++;
}
else if(t==4 and cct!=0){
cout <<"血脉之力用过了"<<endl;
}
if(k4<=0){
cout << "你通关了!"<<endl;
break;
}
cout <<"剩余血量:"<<c<<endl;
if(t!=1 and t!=2 and t!=3 and t!=4) cout <<"输入错误!"<<endl;
}
if(sd!=0){
cout<<"小霸王:快不行了!"<<endl;
cout<<"小霸王:只能这样了......"<<endl;
cout<<"小霸王:拼了!"<<endl;
cout<<"小霸王冲了上去";
cout<<"砰"<<endl;
cout<<"格尔:不!"<<endl;
}
}
}
}
}
}
return 0;
}