名字竞技场在哪啊

灌水区

@[委婉的龙猫](/space/show?uid=77612) namerena.github.io
by Lone_Star @ 2019-05-25 18:29:59


@[委婉的龙猫](/space/show?uid=77612) ~~好好学习~~
by Lone_Star @ 2019-05-25 18:31:11


@[Flamire](/space/show?uid=156710) 请问在哪里下载~~(好好学习? tan 90°)~~
by _扶笙_ @ 2019-05-25 18:37:00


@[委婉的龙猫](/space/show?uid=77612) c++版要吗 ```cpp #include <bits/stdc++.h> #include <windows.h> #include <conio.h> using namespace std; int rushu,choose1,choose2,choose3; int zhuangbei [6][15]; bool get [6][15]; int doint1 ,more , money , sco; struct people{ int atk,ddf,hp,iq,su,zhan,go,now_hp,zd,defen,score,BOSs,ma_bi,guai,Tour_Skill,blood; string name; bool used,dead; bool atk_used,ddf_used, enemy; int wuqi, kuijia, xizi, kuzi, xueshi, hufu, chibang; }a[1001]; void voids(void); bool panduan(void); void pugong(int,int); //普通攻击 void xiaolifeidao(int,int); //技能:小李飞刀 void huoqiushu(int,int); //技能:实力秒杀!! void kuangbao(int); //技能:狂暴术 void leijishu(int,int); //技能:雷击术 void tiebishu(int); //技能:铁壁术 void bingdongshu(int,int); //技能:冰封万里 void color(string); //颜色系统----- void zhandui(int); //战队系统----- (一)战队&名字绑定 void zhandui_xun(int); //战队系统----- (二)战队&战队名字&战队加成 void zhandui_xun2(int,int); //同上 void zhandui_skill(int); //战队系统----- (三)战队&战队技能 void wuqi_main(int); //武器系统主函数 void changqiongzhan(int,int); //技能:苍穹斩 void huifushu(int); //技能:恢复术 void shixueyiji(int,int); //技能:嗜血一击 void beici(int,int); //技能:背刺 void Slowsay(string); //输出优化 void moshi1(void); //玩家对战模式 bool check(int); bool comp1(people,people); bool comp2(people,people); void moshi2_boss(); void BOSS(int); bool check2(); void peoples(); void BOSS_skill7(int); //雷神Tour 专属技能 void dead(); void BOSS_skill8(int); //圣骑剑圣 专属技能 void write1 () ; void moshi4 () ; int main () ; void peoples1 () ; void lpppp (); void Slowsay2 (string,int); void fight (int); bool check3 (); void shopping (); void cangku (); void cangku () { system("cls"); Sleep (1000);int p = 0; Slowsay ("这是您的仓库\n\n");Slowsay ("您的武器-------\n");p = 0; for (int i = 1;i <= 10;i ++){ if (zhuangbei [1][i] > 0){p ++ ; if (i == 1){color ("W"); Slowsay ("[普通] 月牙刀 "); color ("W");Slowsay(" 拥有个数:"); cout << zhuangbei [1][i] << endl; } if (i == 2){color ("W"); Slowsay ("[普通] 流星锤 "); color ("W");Slowsay(" 拥有个数:"); cout << zhuangbei [1][i] << endl; } if (i == 3){color ("G"); Slowsay ("[精良] 黑铁双刃剑 "); color ("W");Slowsay(" 拥有个数:"); cout << zhuangbei [1][i] << endl;} if (i == 4){color ("G"); Slowsay ("[精良] 烈风刃 "); color ("W");Slowsay(" 拥有个数:"); cout << zhuangbei [1][i] << endl;} if (i == 5){color ("C"); Slowsay ("[千锻] 烈光 "); color ("W");Slowsay(" 拥有个数:"); cout << zhuangbei [1][i] << endl;} if (i == 6){color ("C"); Slowsay ("[千锻] 量子之剑 "); color ("W");Slowsay(" 拥有个数:"); cout << zhuangbei [1][i] << endl;} if (i == 7){color ("Y"); Slowsay ("[传说] 冰之叹息 "); color ("W");Slowsay(" 拥有个数:"); cout << zhuangbei [1][i] << endl;} if (i == 8){color ("Y"); Slowsay ("[传说] 沐风之刃 "); color ("W");Slowsay(" 拥有个数:"); cout << zhuangbei [1][i] << endl;} if (i == 9){color ("R"); Slowsay ("[神级] 大天使之剑 "); color ("W");Slowsay(" 拥有个数:"); cout << zhuangbei [1][i] << endl;} if (i == 10){color ("R"); Slowsay ("[神级] 泯灭之光 "); color ("W");Slowsay(" 拥有个数:"); cout << zhuangbei [1][i] << endl;} } color ("W"); } cout << endl << endl; if (p == 0) cout << "您没有武器!\n\n";Sleep (500); Slowsay ("(1) 装备物品\n(2) 出售物品\n(3) 返回\n"); cin >> p; if (p == 1){ system("cls"); Slowsay ("------请选择你想要装备的类型------\n(1)武器\n(2)盔甲\n(3)血石\n(4)护符\n(5)翅膀\n"); cin >> p; if (p == 1){ Slowsay("\n\n你想给谁装备?\n"); for (int i = 1;i <= rushu;i ++){ cout << a [i].name << endl; } cout << endl << endl; cin >> p;int s =p;if (a [p].wuqi == 0){ Slowsay ("你想要装备什么武器?"); for (int i = 1;i <= 10;i ++){ if (zhuangbei [1][i] > 0){p ++ ; if (i == 1){color ("W"); Slowsay ("[普通] 月牙刀 "); color ("W");Slowsay(" 拥有个数:"); cout << zhuangbei [1][i] << endl; } if (i == 2){color ("W"); Slowsay ("[普通] 流星锤 "); color ("W");Slowsay(" 拥有个数:"); cout << zhuangbei [1][i] << endl; } if (i == 3){color ("G"); Slowsay ("[精良] 黑铁双刃剑 "); color ("W");Slowsay(" 拥有个数:"); cout << zhuangbei [1][i] << endl;} if (i == 4){color ("G"); Slowsay ("[精良] 烈风刃 "); color ("W");Slowsay(" 拥有个数:"); cout << zhuangbei [1][i] << endl;} if (i == 5){color ("C"); Slowsay ("[千锻] 烈光 "); color ("W");Slowsay(" 拥有个数:"); cout << zhuangbei [1][i] << endl;} if (i == 6){color ("C"); Slowsay ("[千锻] 量子之剑 "); color ("W");Slowsay(" 拥有个数:"); cout << zhuangbei [1][i] << endl;} if (i == 7){color ("Y"); Slowsay ("[传说] 冰之叹息 "); color ("W");Slowsay(" 拥有个数:"); cout << zhuangbei [1][i] << endl;} if (i == 8){color ("Y"); Slowsay ("[传说] 沐风之刃 "); color ("W");Slowsay(" 拥有个数:"); cout << zhuangbei [1][i] << endl;} if (i == 9){color ("R"); Slowsay ("[神级] 大天使之剑 "); color ("W");Slowsay(" 拥有个数:"); cout << zhuangbei [1][i] << endl;} if (i == 10){color ("R"); Slowsay ("[神级] 泯灭之光 "); color ("W");Slowsay(" 拥有个数:"); cout << zhuangbei [1][i] << endl;} } color ("W"); } cout << endl << endl; if (p == 0){ cout << "您没有武器!\n\n";Sleep (500); cangku ();} else { cin >> p; Sleep (300); Slowsay ("玩家");cout << a [s].name << "装备了一把 "; if (p == 1){color ("W"); Slowsay ("[普通] 月牙刀 ");color ("W"); cout << "攻击力+10 "; a[s].atk += 10;a [p].wuqi == 1;zhuangbei [1][1] --;} else if (p == 2){color ("W"); Slowsay ("[普通] 流星锤 ");color ("W");cout << "攻击力+18 "; a[s].atk += 18;a [p].wuqi == 2;zhuangbei [1][2] --;} else if (p == 3){color ("G"); Slowsay ("[精良] 黑铁双刃剑 ");color ("W");cout << "攻击力+32 "; a[s].atk += 32;a [p].wuqi == 3;zhuangbei [1][3] --;} else if (p == 4){color ("G"); Slowsay ("[精良] 烈风刃 ");color ("W");cout << "攻击力+45, 智力+10"; a[s].atk += 45; a[s].iq +=10;a [p].wuqi == 4;zhuangbei [1][4] --;} else if (p == 5){color ("C"); Slowsay ("[千锻] 烈光 ");color ("W");cout << "攻击力+70, 智力+20"; a[s].atk += 70; a[s].iq +=20;a [p].wuqi == 5;zhuangbei [1][5] --;} else if (p == 6){color ("C"); Slowsay ("[千锻] 量子之剑 ");color ("W");cout << "攻击力+90, 智力+30"; a[s].atk += 90; a[s].iq +=30;a [p].wuqi == 6;zhuangbei [1][6] --;} else if (p == 7){color ("Y"); Slowsay ("[传说] 冰之叹息 ");color ("W");cout << "攻击力+125, 智力+40, 吸血+10%"; a[s].atk += 125; a[s].iq +=40; a[s].blood += 10;a [p].wuqi == 7;zhuangbei [1][7] --;} else if (p == 8){color ("Y"); Slowsay ("[传说] 沐风之刃 ");color ("W");cout << "攻击力+155, 智力+55, 吸血+15%"; a[s].atk += 155; a[s].iq +=55; a[s].blood += 15;a [p].wuqi == 8;zhuangbei [1][8] --;} else if (p == 9){color ("R"); Slowsay ("[神级] 大天使之剑 ");color ("W");cout << "攻击力+180, 智力+70, 吸血+20%"; a[s].atk += 180; a[s].iq +=70; a[s].blood += 20;a [p].wuqi == 9;zhuangbei [1][9] --;} else if (p == 10){color ("R"); Slowsay ("[神级] 泯灭之光 ");color ("W");cout << "攻击力+215, 智力+90, 吸血+25%"; a[s].atk += 215; a[s].iq +=90; a[s].blood += 25;a [p].wuqi == 10;zhuangbei [1][10] --;} cout << endl << endl; cout << a [s].name <<"目前攻击力为 " << a[s].atk; if (p == 4 || p ==5 || p == 6) cout << " 目前智力为 " << a [s].iq ; else if (p == 7 || p == 8 || p == 9 || p == 10) cout << " 目前吸血为" << a [s].blood << "%" ; cout << endl << endl; Sleep (1500); cangku (); } } else if (a [p].wuqi != 0){ Sleep (300); cout << a[p].name << " 已经装备了"; int q = a [p].wuqi; if (q == 1){color ("W"); Slowsay ("[普通] 月牙刀 ");}else if (q == 2){color ("W"); Slowsay ("[普通] 流星锤 ");}else if (q == 3){color ("G"); Slowsay ("[精良] 黑铁双刃剑 ");} else if (q == 4){color ("G"); Slowsay ("[精良] 烈风刃 ");}else if (q == 5){color ("C"); Slowsay ("[千锻] 烈光 ");} else if (q == 6){color ("C"); Slowsay ("[千锻] 量子之剑 ");} else if (q == 7){color ("Y"); Slowsay ("[传说] 冰之叹息 ");} else if (q == 8){color ("Y"); Slowsay ("[传说] 沐风之刃 ");} else if (q == 9){color ("R"); Slowsay ("[神级] 大天使之剑 ");} else if (q == 10){color ("R"); Slowsay ("[神级] 泯灭之光 ");} cout << "!是否卸下该装备?输入1卸下,输入2取消......\n"; cin>> q; if (q == 2) cangku ();else { if (q == 1){a [s].atk -= 10;zhuangbei [1][1] ++;}else if (q == 2){a [s].atk -= 18;zhuangbei [1][2] ++;}else if (q == 3){a [s].atk -= 32;zhuangbei [1][3] ++;}else if (q == 4){a [s].atk -= 45, a[s].iq -= 10;zhuangbei [1][4] ++;} cout << "\n已成功卸下装备!请再次装备武器!\n";a [s].wuqi = 0;cangku (); } } } } else if (p == 3) shopping (); } void shopping (){ system("cls"); Sleep (500); Slowsay2 ("战斗已经告一段落了,欢迎来到战时小商店!\n(1) 全体恢复血量\n(2) 购买装备\n(3) 查看仓库\n(4) 继续战斗!\n",20); int xp;cin >> xp; if (xp == 4) return ; else if (xp == 1){system("cls"); Slowsay2 ("你想恢复所有人的血量吗?花费:300,输入1继续,输入2退出\n",20); cin >> xp ;if (xp == 1){ if (money < 300){ cout << "金币不足!\n";Sleep (1000); shopping (); } else { money -= 300 ;cout << "所有人的血量已恢复!\n\n";Sleep (1000); for (int i = 1;i <= rushu;i ++) a [i].now_hp = a [i].hp; shopping ();} } else if (xp == 2){Sleep (1000); shopping ();} } else if (xp == 2){ wangjingze:; system("cls"); Slowsay("欢迎来到装备商城!\n");Sleep (1500); Slowsay2("\n(1) 武器商城\n(2) 盔甲购买\n(3) 血石镶嵌\n(4) 护符铭刻\n(5) 翅膀带你飞\n(6) 返回\n",15); cin >> xp; if (xp == 6) shopping (); else if (xp == 1){ system("cls"); Slowsay ("欢迎来到武器商城!\n\n");Sleep (1200); Slowsay2 ("(1)[普通] 弯月刀\n(2)[普通] 流星锤\n",15);color ("G"); Slowsay2 ("(3)[精良] 黑铁双刃剑\n(4)[精良] 淬烈刃\n",15);color ("C"); Slowsay2 ("(5)[千锻] 烈光\n(6)[千锻] 量子之剑\n",15); color ("Y");Slowsay2 ("(7)[传说] 冰之叹息\n(8)[传说] 沐风之刃\n", 15);color ("R"); Slowsay2 ("(9)[神级] 大天使之剑\n(10)[神级] 泯灭之光\n",15);color ("W"); cin >> xp; if (xp == 1){ system("cls"); Slowsay ("[普通] 弯月刀\n\n属性:\n攻击力:10\n --无特效-- \n\n价格:300金币\n\n目前您的金币:");color ("Y");cout << money << endl;color ("W");Slowsay("\n输入1购买,输入0退出......\n"); cin >> xp; if (xp == 0) shopping (); else if (xp == 1){ if (money < 300) {Slowsay ("您的金币不足!"); Sleep (1000); shopping ();} else { money -= 300; Slowsay ("购买成功!一把 [普通] 月牙刀 已经放入了你的仓库!");zhuangbei [1][1] ++;Sleep (1500); shopping (); } } } else if (xp == 2){ system("cls"); Slowsay ("[普通] 流星锤\n\n属性:\n攻击力:18\n --无特效-- \n\n价格:600金币\n\n目前您的金币:");color ("Y");cout << money << endl;color ("W");Slowsay("\n输入1购买,输入0退出......\n"); cin >> xp; if (xp == 0) shopping (); else if (xp == 1){ if (money < 600) {Slowsay ("您的金币不足!"); Sleep (1000); shopping ();} else { money -= 600; Slowsay ("购买成功!一把 [普通] 流星锤 已经放入了你的仓库!");zhuangbei [1][2] ++;Sleep (1500); shopping (); } } } else if (xp == 3){ system("cls"); if (get [1][3] == false){Slowsay ("您尚未解锁这把武器!这把武器将在关卡 1 - 4 解锁!!\n"); Sleep (1500); shopping ();} else {color ("G"); Slowsay ("[精良] 黑铁双刃剑\n\n");color ("W");Slowsay("属性:\n攻击力:32\n --无特效-- \n\n价格:1250金币\n\n目前您的金币:");color ("Y");cout << money << endl;color ("W");Slowsay("\n输入1购买,输入0退出......\n"); cin >> xp; if (xp == 0) shopping (); else if (xp == 1){ if (money < 1250) {Slowsay ("您的金币不足!"); Sleep (1000); shopping ();} else { money -= 1250; Slowsay ("购买成功!一把 ");color ("G");Slowsay("[精良] 黑铁双刃剑 ");color ("W");Slowsay("已经放入了你的仓库!");zhuangbei [1][3] ++;Sleep (1500); shopping (); } } } } else if (xp == 4){ system("cls"); if (get [1][4] == false){Slowsay ("您尚未解锁这把武器!这把武器将在关卡 1 - 7 解锁!!\n"); Sleep (1500); shopping ();} else {color ("G"); Slowsay ("[精良] 淬烈刃\n\n");color ("W");Slowsay("属性:\n攻击力:45 智力:10\n --无特效-- \n\n价格:2250金币\n\n目前您的金币:");color ("Y");cout << money << endl;color ("W");Slowsay("\n输入1购买,输入0退出......\n"); cin >> xp; if (xp == 0) shopping (); else if (xp == 1){ if (money < 2250) {Slowsay ("您的金币不足!"); Sleep (1000); shopping ();} else { money -= 2250; Slowsay ("购买成功!一把 ");color ("G");Slowsay("[精良] 淬烈刃 ");color ("W");Slowsay("已经放入了你的仓库!");zhuangbei [1][4] ++;Sleep (1500); shopping (); } } } } else if (xp == 5){ system("cls"); if (get [1][5] == false){Slowsay ("您尚未解锁这把武器!这把武器将在关卡 2 - 5 解锁!!\n"); Sleep (1500); shopping ();} else {color ("C"); Slowsay ("[千锻] 烈光\n\n");color ("W");Slowsay("属性:\n攻击力:70 智力:20\n 特效:"); color ("B");Slowsay("烈光波------\n"); color ("W");Slowsay("攻击时有 20%概率多造成40%伤害,有10%概率造成溅射伤害! \n\n价格:5000金币\n\n目前您的金币:");color ("Y");cout << money << endl;color ("W");Slowsay("\n输入1购买,输入0退出......\n"); cin >> xp; if (xp == 0) shopping (); else if (xp == 1){ if (money < 5000) {Slowsay ("您的金币不足!"); Sleep (1000); shopping ();} else { money -= 5000; Slowsay ("购买成功!一把 ");color ("C");Slowsay("[千锻] 烈光 ");color ("W");Slowsay("已经放入了你的仓库!");zhuangbei [1][5] ++;Sleep (1500); shopping (); } } } } else if (xp == 6){ system("cls"); if (get [1][6] == false){Slowsay ("您尚未解锁这把武器!这把武器将在关卡 3 - 1 解锁!!\n"); Sleep (1500); shopping ();} else {color ("C"); Slowsay ("[千锻] 量子之剑\n\n");color ("W");Slowsay("属性:\n攻击力:90 智力:30\n 特效:"); color ("B");Slowsay("量子------\n"); color ("W");Slowsay("攻击时有 100%概率多造成 (敌人最大生命值 * 5%)(上限30)伤害,有50%概率造成敌人混乱! \n\n价格:10000金币\n\n目前您的金币:");color ("Y");cout << money << endl;color ("W");Slowsay("\n输入1购买,输入0退出......\n"); cin >> xp; if (xp == 0) shopping (); else if (xp == 1){ if (money < 10000) {Slowsay ("您的金币不足!"); Sleep (1000); shopping ();} else { money -= 10000; Slowsay ("购买成功!一把 ");color ("C");Slowsay("[千锻] 量子之剑 ");color ("W");Slowsay("已经放入了你的仓库!");zhuangbei [1][6] ++;Sleep (1500); shopping (); } } } } else if (xp == 7){ system("cls"); if (get [1][7] == false){Slowsay ("您尚未解锁这把武器!这把武器将在关卡 3 - 1 解锁!!\n"); Sleep (1500); shopping ();} else {color ("Y"); Slowsay ("[传说] 冰之叹息\n\n");color ("W");Slowsay("属性:\n攻击力:125 智力:40 吸血:10%\n特效:"); color ("C");Slowsay("极寒风暴------\n"); color ("W");Slowsay("攻击有 30% 几率对非BOSS单位造成[冰冻]效果!\n\n");color ("Y"); Slowsay("专属技能---零度の斩");color ("W"); Slowsay(" \n\n价格:19500金币\n\n目前您的金币:");color ("Y");cout << money << endl;color ("W");Slowsay("\n输入1购买,输入0退出......\n"); cin >> xp; if (xp == 0) shopping (); else if (xp == 1){ if (money < 19500) {Slowsay ("您的金币不足!"); Sleep (1000); shopping ();} else { money -= 19500; Slowsay ("购买成功!一把 ");color ("Y");Slowsay("[传说] 冰之叹息 ");color ("W");Slowsay("已经放入了你的仓库!");zhuangbei [1][7] ++;Sleep (1500); shopping (); } } } } else if (xp == 8){ system("cls"); if (get [1][8] == false){Slowsay ("您尚未解锁这把武器!这把武器将在关卡 3 - 7 解锁!!\n"); Sleep (1500); shopping ();} else {color ("Y"); Slowsay ("[传说] 沐风之刃\n\n");color ("W");Slowsay("属性:\n攻击力:150 智力:55 吸血:15%\n特效:"); color ("C");Slowsay("沐风------\n"); color ("W");Slowsay("沐风领域,攻击100%对至少2个非BOSS目标造成溅射伤害\n\n");color ("Y"); Slowsay("专属技能---(*/无双\\*)");color ("W"); Slowsay(" \n\n价格:32000金币\n\n目前您的金币:");color ("Y");cout << money << endl;color ("W");Slowsay("\n输入1购买,输入0退出......\n"); cin >> xp; if (xp == 0) shopping (); else if (xp == 1){ if (money < 32000) {Slowsay ("您的金币不足!"); Sleep (1000); shopping ();} else { money -= 32000; Slowsay ("购买成功!一把 ");color ("Y");Slowsay("[传说] 沐风之刃 ");color ("W");Slowsay("已经放入了你的仓库!");zhuangbei [1][8] ++;Sleep (1500); shopping (); } } } } else if (xp == 9){ system("cls"); if (get [1][9] == false){Slowsay ("您尚未解锁这把武器!这把武器将在关卡 4 - 4 解锁!!\n"); Sleep (1500); shopping ();} else {color ("R"); Slowsay ("[神级] 大天使之刃\n\n");color ("W");Slowsay("属性:\n攻击力:180 智力:70 吸血:20%\n特效:"); color ("R");Slowsay("(1)圣堂领域------\n"); color ("W");Slowsay("所有非BOSS敌方单位每回合扣除5%生命值\n");color("B");Slowsay ("(2) 神圣光辉\n");color ("W");Slowsay ("每回合所有友方单位回复5%生命值\n\n");color ("C"); Slowsay("专属技能---上位威压");color ("W"); Slowsay(" \n\n价格:54000金币\n\n目前您的金币:");color ("Y");cout << money << endl;color ("W");Slowsay("\n输入1购买,输入0退出......\n"); cin >> xp; if (xp == 0) shopping (); else if (xp == 1){ if (money < 54000) {Slowsay ("您的金币不足!"); Sleep (1000); shopping ();} else { money -= 54000; Slowsay ("购买成功!一把 ");color ("R");Slowsay("[神级] 大天使之刃 ");color ("W");Slowsay("已经放入了你的仓库!");zhuangbei [1][9] ++;Sleep (1500); shopping (); } } } } else if (xp == 10){ system("cls"); if (get [1][10] == false){Slowsay ("您尚未解锁这把武器!这把武器将在关卡 5 - 1 解锁!!\n"); Sleep (1500); shopping ();} else {color ("R"); Slowsay ("[神级] 泯灭之光\n\n");color ("W");Slowsay("属性:\n攻击力:215 智力:90 吸血:25%\n特效:"); color ("R");Slowsay("(1)泯灭------\n"); color ("W");Slowsay("敌方单位死亡后,武器持有者吞噬其25%的全属性\n");color("R");Slowsay ("(2) 死亡之光\n");color ("W");Slowsay ("当武器持有者生命值低于30%时,攻击有30%几率秒杀敌方,并造成10%属性提升\n\n");color ("R"); Slowsay("专属技能---死神降临");color ("W"); Slowsay(" \n\n价格:120000金币\n\n目前您的金币:");color ("Y");cout << money << endl;color ("W");Slowsay("\n输入1购买,输入0退出......\n"); cin >> xp; if (xp == 0) shopping (); else if (xp == 1){ if (money < 120000) {Slowsay ("您的金币不足!"); Sleep (1000); shopping ();} else { money -= 120000; Slowsay ("购买成功!一把 ");color ("R");Slowsay("[神级] 泯灭之光 ");color ("W");Slowsay("已经放入了你的仓库!");zhuangbei [1][10] ++;Sleep (1500); shopping (); } } } } } } else if (xp == 3){ cangku (); } } void fight (int number) { int moneys ; if (number == 1) { moneys = 1000; more = 3; for (int i = 1;i<= 2;i ++){ a [rushu + i].name = "哥布林战士";a [rushu + i].atk = 25, a [rushu + i].ddf = 10, a [rushu + i].iq = 10, a [rushu + i].now_hp = 150, a [rushu + i].hp = 150, a [rushu + i].guai = 1; } int i = 3;a [rushu + i].name = "哥布林投石手";a [rushu + i].atk = 40, a [rushu + i].ddf = 15, a [rushu + i].iq = 10, a [rushu + i].now_hp = 200, a [rushu + i].hp = 200, a [rushu + i].guai = 1; } else if (number == 2){ moneys = 1250;more = 3; for (int i = 1;i <= 2;i ++){ a [rushu + i].name = "哥布林投石手";a [rushu + i].atk = 40, a [rushu + i].ddf = 15, a [rushu + i].iq = 10, a [rushu + i].now_hp = 200, a [rushu + i].hp = 200, a [rushu + i].guai = 1; } int i = 3;a [rushu + i].name = "哥布林长老";a [rushu + i].atk = 20, a [rushu + i].ddf = 25, a [rushu + i].iq = 0, a [rushu + i].now_hp = 280, a [rushu + i].hp = 280, a [rushu + i].guai = 1; } else if (number == 3){ moneys = 1500;more = 2; for (int i = 1;i <= 2;i ++){ a [rushu + i].name = "草莽守卫者";a [rushu + i].atk = 50, a [rushu + i].ddf = 30, a [rushu + i].iq = 15, a [rushu + i].now_hp = 300, a [rushu + i].hp = 300, a [rushu + i].guai = 2; } } else if (number == 4){ money = 1800;more = 2; int i = 1;a [rushu + i].name = "草莽之王";a [rushu + i].atk = 50, a [rushu + i].ddf = 30, a [rushu + i].iq = 15, a [rushu + i].now_hp = 400, a [rushu + i].hp = 400, a [rushu + i].guai = 2; i = 2;a [rushu + i].name = "哥布林法老";a [rushu + i].atk = 60, a [rushu + i].ddf = 20, a [rushu + i].iq = 35, a [rushu + i].now_hp = 250, a [rushu + i].hp = 250, a [rushu + i].guai = 3; } else if (number == 5){ money = 1800;more = 1; int i = 1;a [rushu + i].name = "低级萨满";a [rushu + i].atk = 60, a [rushu + i].ddf = 30, a [rushu + i].iq = 50, a [rushu + i].now_hp = 400, a [rushu + i].hp = 400, a [rushu + i].guai = 4; } cout << "敌人------\n";Sleep (1000); for (int i = rushu + 1;i <= rushu + more;i ++){ Sleep (800); cout << a [i].name << " 攻击力:" << a [i].atk << " 防御力:" << a [i].ddf << " 智力:" << a [i].iq << " 生命值:" << a [i].hp << endl; } Sleep (1200); system("cls"); while (true ) { for (int i = 1;i <= rushu + more; i ++){ if (a [i].now_hp <= 0) continue; cout << endl; int j; if (i <= rushu) { while (true){ j = rand () % (rushu + more) + rushu + 1; if (a[j].now_hp > 0) break;} } else if (i > rushu){ while (true){ j = rand () % rushu + 1; if (a[j].now_hp > 0) break; } int fff = rand (); if (a [i].guai == 1) pugong (i , j); else if (a [i].guai == 2){if (fff % 3 == 1 || fff % 3 == 2) pugong (i , j);else huoqiushu (i , j);} else if (a [i].guai == 3){if (fff % 3 == 1 || fff % 3 == 2) bingdongshu (i , j);else pugong (i , j);} else if (a [i].guai == 4){if (fff % 3 == 1) pugong (i , j); else if (fff % 3 == 2) huoqiushu (i , j); else if (fff % 3 == 0) huifushu (i);} continue; } int fff = rand (); while (true){ if (fff % 10 == 8 && a [i].now_hp == a [i].hp) fff = rand (); else break; } if(fff % 10 == 1 || fff % 10 == 5 || fff % 10 == 4) pugong(i,j); if(fff % 10 == 0) xiaolifeidao(i,j); else if(fff % 10 == 2) huoqiushu(i,j); else if(fff % 10 == 3) leijishu(i,j); //else if(fff % 10 == 4) kuangbao(i); //else if(fff % 10 == 5) tiebishu(i); else if(fff%10==6) bingdongshu(i,j); else if(fff % 10 == 7||fff % 10 == 6) changqiongzhan(i,j); else if(fff % 10 == 8) huifushu(i); else if(fff % 10 == 9) shixueyiji(i,j); if (check2 () == true || check3 () == true) break ; cout << endl; } if (check2 () == true || check3 () == true) break ; } if (check2 () == true){ Sleep (500); cout << "很遗憾,玩家们失败了......" << endl ; return ; } else if (check3 () == true){ Sleep (500); cout << "游戏继续!玩家们踏上了新的征程!\n"; cout << "通关奖励:"<< moneys <<"金币。\n\n"; money += 1000; Sleep (1500); } } void Slowsay2 (string a , int b){ int len = a.size (); for (int i = 0;i <= len - 1;i ++){ cout << a [i]; Sleep (b); } } void lpppp (){ system("cls"); Sleep (1200); cout << "请等待。。正在加载中-----\n加载进度:\n"; Sleep (1200); for (int i = 1;i <= 100;i ++){ if (i <= 50) Sleep (40 + i * 3); else Sleep (120 - i); cout << "加载进度 "<< i << " % ......" << endl; } Sleep (1200); cout << "加载成功!正在自动更新资源包------\n"; Sleep (1500); for (int i = 1;i <= 100;i ++){ if (i <= 50) Sleep (40 + i * 3); else Sleep (120 - i); cout << "加载进度 "<< i << " % ......" << endl; } Slowsay ("资源包更新成功!输入 1 继续,输入其他退出......"); int pos; cin >> pos; if (pos != 1) main(); system("cls"); Slowsay2("第一章 落日之森", 200); Slowsay("\n\n\n"); Slowsay2("黑暗历1205年,神秘的紫金族向人族发起了进攻,顿时人类溃不成军,死伤无数,紫金族几乎将人类灭绝,紫金族在人类故土上建立了紫金深渊,作为它们的家园。它们的首领-----紫金领主,实力强大,从古至今有无数的人类强者前往去挑战它,但是结果都是惨烈的......\n",20); Sleep (1000);cout << "输入1继续......\n"; cin >> pos; Slowsay2("如今,黑暗历1405年,离当年人类被占领的屈辱岁月已经过去了整整200年. ",15);cout << rushu; Slowsay("位勇者"); for (int i = 1;i <= rushu;i ++){ Sleep (200); cout << a [i].name ; if (i != rushu){ Sleep (150); cout << ","; } } cout << endl ;Sleep (1000); Slowsay2("勇敢的勇士们,复兴人类,拯救人类的使命,就交在你们的身上!!!\n" ,15);cout << "输入1继续....."<<endl; cin >> pos; system("cls"); cout << "注意。本模式较为特殊,玩家属性与等级,战斗力等均不同于往常。\n\n"; for (int i = 1;i <= rushu ;i ++){ a [i].atk = 30 + rand () % 15, a [i].ddf = 20 + rand () % 10, a[i].iq = 30 + rand () % 15, a [i].now_hp = rand () % 50 + 200; a[i].hp = a [i].now_hp ; a[i].score = 0; } for (int i = 1;i <= rushu ;i ++){ Sleep (500); cout << a [i].name << " 攻击力:" << a [i].atk << " 防御力:" << a [i].ddf << " 智力:" << a[i].iq << " 生命值:" << a [i].now_hp << endl; } cout << endl << endl << "输入1继续......" << endl; cin >> pos ; system ("cls"); Slowsay2 ("第一章 落日之森\n第一关", 50); cout << endl << endl << endl << "以下为剧情" << endl; int man = rand () % rushu + 1;color ("C"); cout << a [man].name ;color ("W");Slowsay2 (" : 小心!已经进入落日之森了!可能随时出现怪物!\n\n", 20);Sleep (800); int man2 ; while (true){man2 = rand () % rushu + 1; if (man2 != man) break ;} color ("C"); cout << a [man2].name ;color ("W");Slowsay2(" : 谁说的?!你看这片森林多美丽,怎么会有怪物呢?\n\n",20);Sleep (800); Slowsay2 ("话音刚落......\n\n", 50); Sleep (500);color ("R"); cout << "哥布林们" ; color ("W");Slowsay2 (" : 有入侵者!把他们抓住,烤着吃!\n\n",20) ;Sleep (500); cout << "输入1继续......"; cin >> pos; system ("cls");Slowsay2 ("战斗开始!!!\n\n\n" , 100); fight (1); shopping (); system ("cls"); Slowsay2 ("第一章 落日之森\n第二关(1)", 50); cout << endl << endl << endl << "以下为剧情" << endl; color ("R"); cout << "哥布林们" ; color ("W");Slowsay(": 可恶的人类!快走!我们去通知长老!\n\n");Sleep (800); man = rand () % rushu + 1;color ("C"); cout << a [man].name ;color ("W");Slowsay2 (" : 哈哈哈,这群垃圾,还想阻拦我们!\n\n", 20);Sleep (800); while (true){man2 = rand () % rushu + 1; if (man2 != man) break ;} color ("C"); cout << a [man2].name ;color ("W");Slowsay2(" : 好了,别说了!我们先去休息吧!\n\n",20);Sleep (800); Slowsay2 ("40分钟以后......\n\n",20);Sleep(800);man = rand () % rushu + 1;color ("C"); cout << a [man].name ;color ("W");Slowsay2 (" : 喂,大伙们,你们看那是啥?\n\n", 20);Sleep (800);Slowsay2 ("前面是一个箱子,输入1打开它。\n\n",20); cin >> man;if (man == 1){ Slowsay2("箱子里有钱!\n\n",20);Sleep(800);man2 = rand () % 100 + 100; Slowsay2("您获得了",20);cout << man2 << "金币!\n\n"; Sleep (800); money += man2; } Slowsay ("就在这时......\n\n");color ("R");cout << "哥布林们" ; color ("W");Slowsay2 (" : 有入侵者!把他们抓住,烤着吃!\n\n",20) ;Sleep (800);man = 1; color ("C"); cout << a [man].name ;color ("W");Slowsay2 (" : Fuck!!!怎么又是这群哥布林?\n\n输入1继续......", 20);cin >> man; fight(2);shopping (); system ("cls");Slowsay2 ("第一章 落日之森\n第二关(2)", 50); cout << endl << endl << endl << "以下为剧情" << endl;color ("R");cout << "哥布林们" ; color ("W");Slowsay2 (" : 大哥,救命,有人欺负我们!\n\n",20) ;Sleep (800); color ("Y");cout << "草莽守护者" ; color ("W");Slowsay2 (" : 来了!!\n\n",20) ;Sleep (800);man = rand () % rushu + 1; color ("C"); cout << a [man].name ;color ("W");Slowsay2 (" : 小心,草莽守护者伤害与血量都很高!\n\n输入1继续......", 20);Sleep (800);cin >> man; fight(3);shopping (); system ("cls");Slowsay2 ("第一章 落日之森\n第三关", 50); cout << endl << endl << endl << "以下为剧情" << endl; color ("Y");cout << "草莽之王" ; color ("W");Slowsay2 (" : 本是同根生,\n\n",20) ;Sleep (800); color ("R");cout << "哥布林法老" ; color ("W");Slowsay2 (" : 相煎何太急?\n\n",20) ;Sleep (800); color ("Y");cout << "草莽之王" ; color ("W");Slowsay2 (" : 人类,你伤了我和我朋友的族人,准备受死吧!\n\n",20) ;Sleep (800);man = rand () % rushu + 1; color ("C"); cout << a [man].name ;color ("W");Slowsay2 (" : 切,你打的赢我们吗?\n\n输入1继续......", 20);Sleep (800);cin >> man; fight(4);shopping (); } void peoples1(){ Slowsay("请输入挑战的人数\n");cin>>rushu; for(int i=1;i<=rushu;i++){ Slowsay("请输入玩家");cout<<i;Slowsay("的名字!\n"); cin>>a[i].name; if(check(i)==false){ while(true){Slowsay("名字重复!请重新输入玩家");cout<<i;Slowsay("的名字!\n");cin>>a[i].name;if(check(i)==true) break;else continue;} } } } void moshi4 () { peoples1 (); int choosea; system("cls"); Slowsay("--------------请选择关卡-------------\n"); Slowsay("(1) 第一章 落日之森\n(2) 第二章 雷霆之城\n(3) 第三章 无尽蓝海\n(4) 第四章 紫金深渊\n"); while (true){ cin >> choosea ; if (choosea == 1 || choosea == 2 || choosea == 3 || choosea == 4) break; system("cls"); Slowsay("--------------请选择关卡-------------\n"); Slowsay("(1) 第一章 落日之森\n(2) 第二章 雷霆之城\n(3) 第三章 无尽蓝海\n(4) 第四章 紫金深渊\n"); } if (choosea == 1) lpppp (); } void write1 () { system("cls"); Slowsay ("上一次更新:2018/9/16\n--版本号2.0.5-- "); Slowsay (" 更新主要内容:\n(1) 开启【闯关模式】第一章---落日之森\n\n");Sleep (300); Slowsay ("上一次更新:2018/9/14\n--版本号2.0.4-- "); Slowsay (" 更新主要内容:\n(1) 新增BOSS 地狱领主(噩梦)\n\n");Sleep (300); Slowsay ("上一次更新:2018/9/10\n--版本号2.0.3-- "); Slowsay (" 更新主要内容:\n(1) 新增BOSS 雷神Tour \n(2) 新增BOSS 圣骑剑圣");Sleep (300); Sleep (500); cout << "\n\n输入1继续......";int a; cin >> a; main (); } void BOSS_skill10 (int j){ Sleep (500); if (a [rushu + 1].Tour_Skill == 3){ cout << endl; color ("R"); cout << "--地狱の召唤--"<<endl; Sleep (500); color ("W"); color ("B"); cout << " ----岩"; color ("G"); cout << "爆"; color ("R"); cout <<"术----" << endl; color ("W"); for (int i = 1;i <= rushu;i ++){ if (a [i].now_hp <= 0) continue ; int shanghai = a [i].hp / 4 + rand () % 40 + (200 - a [i].ddf) ; a [i].now_hp -= shanghai - 150 ;voids (); cout << "玩家 " << a [i].name << "受到了" ; color ("R") ; cout <<shanghai ; color ("C"); cout << " 火焰伤害" ; color ("W") ; cout << "目前剩余血量:" ; color ("B"); cout << a [i].now_hp; color ("W"); cout << "/"; color ("G"); cout << a[i].hp; color ("W"); Sleep (150); cout << endl ; } cout << endl; a [rushu + 1].Tour_Skill = 0; } else { int fgs = rand () % 10000; if (fgs % 5 != 10){ cout << endl; a [rushu + 1].Tour_Skill ++; cout << a [rushu + 1].name << "使用了---------" ; color ("R"); cout << "地岩突爆"; color ("W"); cout << "----(SS级技能)----!" <<endl; for (int i = 1;i <= 4;i ++){ Sleep (300); int v = 0; while (true){ j = rand () % rushu + 1; if (a [j].now_hp > 0) break; v ++; if (v == 10000) break; } int shanghai = a [rushu + 1].atk * 2 / 3 - a [j].ddf - rand () % 20; a [j].now_hp -= shanghai;voids (); cout << a [j].name ; color ("G"); cout << "被地岩刺中!"; color ("W"); cout << "受到了" ; color ("R");cout << shanghai ;color ("W");cout << "点伤害!" ;cout << "目前剩余血量:" ; color ("B"); cout << a [j].now_hp; color ("W"); cout << "/"; color ("G"); cout << a[j].hp; color ("W");cout << endl ; } cout << endl; } } } void BOSS_skill8(int j){ Sleep(500); if(a[rushu+1].Tour_Skill==3){ color("Y");cout<<"--千锤万载成剑心--"<<endl;Sleep(500);color("W"); cout<<a[rushu+1].name<<"使用了---神技---";color("R");cout<<"圣剑之禁·灭世的光芒";color("W");cout<<"-----"<<endl; for(int l=1;l<=5;l++){Sleep(800);int shanghai=rand()%100+100; if(check2()==true) break; if(l==1){color("B");cout<<"第一式---圣剑之刃";} else if(l==2){color("R");cout<<"第二式---圣剑之光";} else if(l==3){color("G");cout<<"第三式---圣剑之威";} else if(l==4){color("Y");cout<<"第四式---圣剑之锋";} else if(l==5){color("C");cout<<"第五式---圣剑之灭";} int ffff=rand()%rushu+1; while(true){ ffff=rand()%rushu+1;if(a[ffff].now_hp>0) break; }a[ffff].now_hp-=shanghai;voids(); cout<<endl;color("W");cout<<"玩家"<<a[ffff].name<<"受到了"<<shanghai<<" 点伤害,目前剩余血量:";color("Y");cout<<a[ffff].now_hp;color("W");cout<<"/";color("C");cout<<a[ffff].hp<<endl;color("W"); } a[rushu+1].Tour_Skill=0; } else{ int fff; while (true){ fff = rand (); if (fff % 3 != 2) break; else if (fff % 3 == 2 && doint1 == 0) break; } if (fff % 4 == 0){ cout<<a[rushu+1].name<<"使用了-----";color("C");cout<<"神圣斩击";color("W");cout<<"-----(S级技能)!"<<endl; int shanghai=a[rushu+1].atk-a[j].ddf+rand()%50; a[rushu+1].Tour_Skill++; a[j].now_hp-=shanghai;voids(); cout<<"玩家"<<a[j].name<<"受到了";color("R");cout<<shanghai;color("W");cout<<"点伤害,目前剩余血量:";cout<<a[j].now_hp;color("W");cout<<"/";color("C");cout<<a[j].hp<<endl;color("W"); } else if (fff % 4 == 1 ||fff % 4 == 3){ a [rushu+1].Tour_Skill ++; cout << a [rushu + 1].name << "使用了-----"; color ("Y"); cout << "剑刃风暴"; color ("W"); cout << "-----(S级技能)!" << endl; int aaa = 13 + (fff % 5); for (int i = 1;i <= aaa;i ++){ Sleep (150); int shanghai = 20 + rand ()% 10; while (true){ j = rand () % rushu + 1; if (a [j].now_hp > 0) break; } cout << "玩家" << a [j].name << "受到了 " ; color ("R"); cout << shanghai ; color ("W"); cout << " 点伤害!" ; a [j].now_hp -= shanghai ; voids (); cout << " 目前剩余血量:" ; color ("Y"); cout << a [j].now_hp ; color ("W"); cout << "/"; color ("C"); cout << a[j].hp; color ("W"); cout << endl; } } else if (fff % 4 == 2){ a [rushu+1].Tour_Skill ++; cout << a [rushu + 1].name << "使用了-----"; color ("B"); cout << "神圣剑阵" ; color ("W"); cout << "-----(S级技能)!" << endl ; cout << "生命值每回合回复 8%,持续3回合!" <<endl; Sleep (500); doint1 = 3; } } } void dead(){ for(int i=1;i<=rushu;i++){ if(a[i].dead==false&&a[i].now_hp<=0) cout<<endl<<"玩家 "<<a[i].name<<" 阵亡!!!"<<endl; a[i].dead=true; } } void BOSS_skill7(int j){ Sleep(500); if(a[rushu+1].Tour_Skill==4){ cout<<a[rushu+1].name<<" 已经汲取了足够的雷神精华,使用神技了!!"<<endl;Sleep(500); for(j=1;j<=rushu;j++){ if(a[j].now_hp<=0) continue; int shanghai=max(128,a[j].now_hp/2);a[j].now_hp-=shanghai;voids(); cout<<a[j].name<<"受到了"<<shanghai<<"点伤害,目前剩余血量:"; color("Y");cout<<a[j].now_hp;color("W");cout<<"/";color("C");cout<<a[j].hp<<endl; } a[rushu+1].Tour_Skill=0; } else{ int fff=rand()%10000; while(true){ if(fff%5==0&&a[rushu+1].now_hp==a[rushu+1].hp) fff=rand()%10000; else break; } if(fff%5==0){ cout<<a[rushu+1].name<<"使用了-----";color("B");cout<<"雷霆汲取";color("W");cout<<"-----(S级技能)!"<<endl;int get=min(500,(a[rushu+1].hp-a[rushu+1].now_hp)*3/10); cout<<a[rushu+1].name<<"恢复了已损失生命值的30%---(最多500)---";color("G");cout<<"---"<<get; color("W");cout<<" !!!"<<endl;Sleep(1200); cout<<"目前"<<a[rushu+1].name<<"剩余生命值为:";color("Y");cout<<" "<<a[rushu+1].now_hp;color("W");cout<<"/";color("R");cout<<a[rushu+1].hp<<endl;color("W"); a[rushu+1].Tour_Skill++;Sleep(500);color("C"); cout<<endl<<a[rushu+1].name<<" 吸收了1点雷神精华,目前雷神精华:" <<a[rushu+1].Tour_Skill<<" !!"<<endl;color("W"); } else if(fff%5==1||fff%5==2){ cout<<a[rushu+1].name<<"使用了-----";color("B");cout<<"雷霆一斩";color("W");cout<<"-----(S级技能)!"<<endl; int shanghai=a[rushu+1].atk/2+a[rushu+1].iq*3/4-a[j].ddf*3/2+rand()%30; cout<<a[j].name<<"受到了"; color("R");cout<<shanghai;color("W");cout<<"点伤害!并且由于麻痹一回合停止行动!"<<endl; a[j].used=true;a[j].now_hp-=shanghai;voids(); Sleep(500); a[rushu+1].Tour_Skill++; cout<<a[j].name<<"目前剩余血量:";cout<<" ";color("Y");cout<<a[j].now_hp;color("W");cout<<"/";color("C");cout<<a[j].hp<<endl;color("W"); Sleep(500);color("C"); cout<<a[rushu+1].name<<" 吸收了1点雷神精华,目前雷神精华:" <<a[rushu+1].Tour_Skill<<" !!"<<endl;color("W"); } else if(fff%5==3){ cout<<a[rushu+1].name<<"使用了-----";color("B");cout<<"连锁雷电";color("W");cout<<"-----(S级技能)!"<<endl; for(int l=1;l<=3;l++){ while(true){ j=rand()%rushu+1; if(a[j].now_hp>0) break; } Sleep(350); int shanghai=a[rushu+1].iq-a[j].ddf*3/2+rand()%20;a[j].now_hp-=shanghai;voids(); cout<<"玩家"<<a[j].name<<"受到了";color("R");cout<<shanghai;color("W");cout<<"点伤害!目前剩余血量: ";color("Y");cout<<a[j].now_hp;color("W");cout<<"/";color("C");cout<<a[j].hp<<endl;color("W"); } a[rushu+1].Tour_Skill++; cout<<a[rushu+1].name<<" 吸收了1点雷神精华,目前雷神精华:" <<a[rushu+1].Tour_Skill<<" !!"<<endl;color("W"); } else if(fff%5==4){ cout<<a[rushu+1].name<<"使用了-----";color("B");cout<<"雷神制裁";color("W");cout<<"-----(S级技能)!"<<endl; cout<<"所有人获得了 ";color("Y");cout<<"麻痹 ";color("W");cout<<"状态,持续3回合!!!"<<endl; for(int i=1;i<=rushu;i++){ if(a[i].now_hp>0) a[i].ma_bi=3; } a[rushu+1].Tour_Skill++; cout<<a[rushu+1].name<<" 吸收了1点雷神精华,目前雷神精华:" <<a[rushu+1].Tour_Skill<<" !!"<<endl;color("W"); } } } void peoples(){ Slowsay("请输入挑战BOSS的人数\n");cin>>rushu; for(int i=1;i<=rushu;i++){ Slowsay("请输入玩家");cout<<i;Slowsay("的名字!\n"); cin>>a[i].name; if(check(i)==false){ while(true){Slowsay("名字重复!请重新输入玩家");cout<<i;Slowsay("的名字!\n");cin>>a[i].name;if(check(i)==true) break;else continue;} } } } bool check2(){ for(int i=1;i<=rushu;i++) if(a[i].now_hp>0) return false; return true; } bool check3 () { for (int i = rushu + 1;i <= rushu + more;i ++) if (a [i].now_hp > 0) return false; return true ; } void BOSS(int p){ if(p==1){ a[rushu+1].name="萨满";a[rushu+1].atk=200;a[rushu+1].ddf=120;a[rushu+1].iq=200;a[rushu+1].hp=1000;a[rushu+1].now_hp=1000;a[rushu+1].su=10; }else if(p==2){ a[rushu+1].name="帝君肉山";a[rushu+1].atk=120;a[rushu+1].ddf=155;a[rushu+1].iq=30;a[rushu+1].hp=2500;a[rushu+1].now_hp=2500;a[rushu+1].su=10; }else if(p==3){ a[rushu+1].name="邪神satan";a[rushu+1].atk=300;a[rushu+1].ddf=65;a[rushu+1].iq=325;a[rushu+1].hp=1000;a[rushu+1].now_hp=1000;a[rushu+1].su=10; }else if(p==7){ a[rushu+1].name="雷神Tour";a[rushu+1].atk=250;a[rushu+1].ddf=108;a[rushu+1].iq=250;a[rushu+1].hp=3000;a[rushu+1].now_hp=3000;a[rushu+1].su=10;a[rushu+1].BOSs=7; }else if(p==8){ a[rushu+1].name="圣骑剑圣";a[rushu+1].atk=300;a[rushu+1].ddf=85;a[rushu+1].iq=20;a[rushu+1].hp=3500;a[rushu+1].now_hp=3500;a[rushu+1].su=10;a[rushu+1].BOSs=8; }else if(p==10){ a [rushu + 1].name="地狱领主";a [rushu + 1].atk = 400;a [rushu + 1].ddf = 140;a [rushu + 1].iq = 200;a [rushu + 1].hp = 1200;a[rushu + 1].now_hp = 1200; a [rushu + 1].su = 20;a [rushu + 1].BOSs = 10; } } void moshi2_boss(){ int choosex,choosep; Slowsay("欢迎来到挑战BOSS模式!在这里你会感受到被虐带来的无上快感!\n请选择BOSS难度\n"); while(true){ Slowsay("(1) 简单难度\n(2) 挑战难度\n(3) 困难难度\n(4) 噩梦难度\n"); cin>>choosex; if(choosex==1||choosex==2||choosex==3||choosex==4) break; system("cls"); } if(choosex==1){ system("cls"); Slowsay("您选择了[普通难度]!!\n"); Sleep(500); peoples(); Slowsay("\n请选择你想要挑战的BOSS\n"); Slowsay("(1) 萨满\n(2) 帝君肉山\n(3) 邪神Satan\n"); cin>>choosep; if(choosep==1) BOSS(1); else if(choosep==2) BOSS(2); else if(choosep==3) BOSS(3); } else if(choosex==2){ system("cls"); Slowsay("您选择了[挑战难度]!!\n"); Sleep(500); peoples(); Slowsay("\n请选择你想要挑战的BOSS\n"); Slowsay("(1) 鬼牙\n(2) 紫金守卫\n(3) 地狱龙\n"); cin>>choosep; if(choosep==1) BOSS(4); else if(choosep==2) BOSS(5); else if(choosep==3) BOSS(6); } else if(choosex==3){ system("cls"); Slowsay("您选择了[困难难度]!!\n"); Sleep(500); peoples(); Slowsay("\n请选择你想要挑战的BOSS\n"); Slowsay("(1) 雷神Tour\n(2) 圣骑剑圣\n(3) 紫金执法者\n"); cin>>choosep; if(choosep==1) BOSS(7); else if(choosep==2) BOSS(8); else if(choosep==3) BOSS(9); } else if (choosex == 4){ system("cls"); Slowsay("您选择了[地狱难度]!!\n"); Sleep(500); peoples(); Slowsay("\n请选择你想要挑战的BOSS\n"); Slowsay("(1) 地狱领主\n(2) 邪神萨满\n(2) 紫金领主\n"); cin >> choosep; if (choosep == 1) BOSS (10); else if(choosep==2) BOSS (11); else if(choosep==3) BOSS (12); } for(int i=1;i<=rushu;i++){ a[i].atk=rand()%50+70; a[i].ddf=rand()%30+50; a[i].hp=rand()%200+500; a[i].su=rand()%10+1; a[i].iq=rand()%40+70; a[i].zhan=a[i].atk*16+a[i].ddf*18+a[i].hp*3+a[i].su*5+a[i].iq*15; a[i].now_hp=a[i].hp; } for(int i=1;i<=rushu;i++) zhandui(i); for(int i=1;i<=rushu;i++){ if(a[i].zd==0) continue; else zhandui_xun(i); } for(int i=1;i<=rushu;i++) a[i].zhan=a[i].atk*16+a[i].ddf*18+a[i].hp*3+a[i].su*5+a[i].iq*15; a[rushu+1].zhan=a[rushu+1].atk*16+a[rushu+1].ddf*18+a[rushu+1].hp*3+a[rushu+1].su*5+a[rushu+1].iq*15; for(int i=1;i<=rushu+1;i++){ Sleep(500); cout<<endl; if(i==rushu+1){ cout<<"BOOS-----"<<a[i].name<<" 接受了挑战!属性为:"<<endl;Sleep(500); cout<<"攻击:"<<a[i].atk<<" 护甲:"<<a[i].ddf<<" 体力:"<<a[i].hp<<" 速度:"<<a[i].su<<" 智力:"<<a[i].iq<<endl;Sleep(500); cout<<a[i].name<<"战斗力为:"<<a[i].zhan; cout<<endl; break; } cout<<"玩家"<<i<<"的名字是:"<<a[i].name<<endl;Sleep(500); cout<<"攻击:"<<a[i].atk<<" 护甲:"<<a[i].ddf<<" 体力:"<<a[i].hp<<" 速度:"<<a[i].su<<" 智力:"<<a[i].iq<<endl;Sleep(500); cout<<a[i].name<<"战斗力为:"<<a[i].zhan; cout<<endl; } cout<<"\n\n"; Slowsay("\n输入1继续。。。\n");int u;cin>>u; if(u==2) rushu++; cout<<"出招顺序\n"; for(int i=1;i<=rushu;i++){ cout<<"No."<<i<<" "<<a[i].name<<"\n"; }int j,k=0; system("cls"); cout<<endl<<"----人神共愤"<<endl; Sleep(500); cout<<" 天诛地灭----"<<endl; Sleep(500); cout<<"战斗开始—————————————!!!"<<endl; Sleep(500); while(true){ for(int i=1;i<=rushu+1;i++){ if (check2 () == true) break; if(a[i].now_hp<=0) continue; if(a[i].used==true){a[i].used=false;continue;} if (a [rushu + 1].BOSs == 10){ int fg; while(true){fg=rand()%rushu+1;if(a[fg].now_hp>0) break;} BOSS_skill10 (fg); } if(a[i].ma_bi>0){ a[i].ma_bi--;a[i].now_hp-=50;voids(); cout<<endl<<"玩家"<<a[i].name<<"处于 麻痹 状态,收到了";color("B");cout<<50;color("W");cout<<" 点伤害!目前剩余血量:";color("Y");cout<<a[i].now_hp;color("W");cout<<"/";color("C");cout<<a[i].hp<<endl<<endl;color("W"); } if (i == rushu +1 && doint1 > 0){ Sleep (250); cout << endl; int shanghai = (int) a [rushu + 1].hp * 0.08;a [rushu + 1].now_hp += shanghai ; voids (); cout << a [rushu + 1].name << "恢复了" ; color ("G"); cout << shanghai; color ("W"); cout << " 点生命值! 目前剩余生命值:" ; color ("Y"); cout << a [rushu + 1].now_hp ; color ("W"); cout << "/"; color ("C"); cout << a [rushu + 1].hp ; color ("W"); doint1 --; cout << endl; } cout<<endl; if(i!=rushu+1) j=rushu+1; else if(i==rushu+1){ while(true){j=rand()%rushu+1;if(a[j].now_hp>0) break; if (check2 () == true) break;} } int fff=rand()%12000; if(a[rushu+1].now_hp<=0){k=1;break;} else if(check2()==true){k=1;break;} if(i==rushu+1&&a[i].BOSs==7) BOSS_skill7(j); else if(i==rushu+1&&a[i].BOSs==8) BOSS_skill8(j); else{ while(true){ if(fff%10==4&&a[i].atk_used==true) fff=rand()%12000; else if(fff%10==5&&a[i].ddf_used==true) fff=rand()%12000; else if((fff%10==8||fff%10==9)&&a[i].now_hp==a[i].hp) fff=rand()%12000; else break; } if(fff%10==1) pugong(i,j); if(fff%10==0) xiaolifeidao(i,j); else if(fff%10==2) huoqiushu(i,j); else if(fff%10==3) leijishu(i,j); else if(fff%10==4) kuangbao(i); else if(fff%10==5) tiebishu(i); //else if(fff%10==6) bingdongshu(i,j); else if(fff%10==7||fff%10==6) changqiongzhan(i,j); else if(fff%10==8) huifushu(i); else if(fff%10==9) shixueyiji(i,j); } cout<<endl; dead(); } if(a[rushu+1].now_hp<=0||check2()==true) break; } Slowsay("-----战斗结束!!!-----\n"); if(a[rushu+1].now_hp<=0) Slowsay("玩家们获胜!\n"); else if(check2()==true) Slowsay("BOSS获胜!\n"); } bool comp2(people x,people y){ return x.score>y.score;} void voids (){ for(int i=1;i<=rushu+more;i++){ if(a[i].now_hp>=a[i].hp) a[i].now_hp=a[i].hp; else if(a[i].now_hp<=0) a[i].now_hp=0; } } bool panduan(){ int f=0; for(int i=1;i<=rushu;i++) if(a[i].now_hp<=0) f++; if(f==rushu-1) return true; else return false; } bool comp(people x, people y){ return x.su>y.su;} bool check(int i){ if(i==1) return true; for(int s=1;s<=i-1;s++){ if(a[s].name == a[i].name) return false; } return true; } void moshi1(void){ Slowsay("请输入玩家人数(2~10001)\n"); cin>>rushu; for(int i=1;i<=rushu;i++){ Slowsay("请输入玩家");cout<<i;Slowsay("的名字!\n"); cin>>a[i].name; if(check(i)==false){ while(true){Slowsay("名字重复!请重新输入玩家");cout<<i;Slowsay("的名字!\n");cin>>a[i].name;if(check(i)==true) break;else continue;} } } for(int i=1;i<=rushu;i++){ a[i].atk=rand()%50+70; a[i].ddf=rand()%30+50; a[i].hp=rand()%200+400; a[i].su=rand()%10+1; a[i].iq=rand()%40+70; a[i].zhan=a[i].atk*16+a[i].ddf*18+a[i].hp*3+a[i].su*5+a[i].iq*15; a[i].now_hp=a[i].hp; } for(int i=1;i<=rushu;i++){ Sleep(500); cout<<endl; cout<<"玩家"<<i<<"的名字是:"<<a[i].name<<endl;Sleep(500); cout<<"攻击:"<<a[i].atk<<" 护甲:"<<a[i].ddf<<" 体力:"<<a[i].hp<<" 速度:"<<a[i].su<<" 智力:"<<a[i].iq<<endl;Sleep(500); cout<<a[i].name<<"战斗力为:"<<a[i].zhan; cout<<endl; } zhandui(1);zhandui(2); for(int i=1;i<=rushu;i++){ if(a[i].zd==0) continue; else zhandui_xun(i); } cout<<"\n\n"; Slowsay("输入1继续,输入0退出\n"); cin>>choose1; if(choose1==0) cout<<"结束!!"<<endl; else{ system("cls"); cout<<"即将开始,请等待3秒。。。"<<endl; Sleep(500); cout<<"3......"<<endl; Sleep(500); cout<<"2......"<<endl; Sleep(500); cout<<"1......"<<endl; cout<<"开始!!"<<endl<<endl<<endl; } int max_su=0; for(int i=1;i<=rushu;i++) max_su=max(max_su,a[i].su); sort(a+1,a+rushu+1,comp); cout<<"出招顺序\n"; for(int i=1;i<=rushu;i++){ cout<<"No."<<i<<" "<<a[i].name<<"\n"; } int ko=rand()%rushu+1; Sleep(500); cout<<endl<<endl<<a[ko].name<<"本局收到了神圣祝福!全属性加10%!"<<endl; a[ko].atk+=a[ko].atk/10; a[ko].ddf+=a[ko].ddf/10; a[ko].hp+=a[ko].hp/10; a[ko].iq+=a[ko].iq/10; a[ko].now_hp=a[ko].hp; system("cls"); cout<<endl<<"----人神共愤"<<endl; Sleep(500); cout<<" 天诛地灭----"<<endl; Sleep(500); cout<<"战斗开始——————————————!!!"<<endl; //system("cls"); Sleep(500); int pko=0; while(panduan()==false){ for(int i=1;i<=rushu;i++){ if(a[i].used==true){a[i].used=false;continue;} if(a[i].now_hp<=0) continue; cout<<endl<<endl; int fff=rand(),j; while(true){j=rand()%rushu+1;if(j!=i&&a[j].now_hp>0) break;} //cout<<fff<<endl; while(true){ if(fff%10==4&&a[i].atk_used==true) fff=rand()%12000; else if(fff%10==5&&a[i].ddf_used==true) fff=rand()%12000; else if((fff%10==8||fff%10==9)&&a[i].now_hp==a[i].hp) fff=rand()%12000; else break; } if(fff%10==1) pugong(i,j); if(fff%10==0) xiaolifeidao(i,j); else if(fff%10==2) huoqiushu(i,j); else if(fff%10==3) leijishu(i,j); else if(fff%10==4) kuangbao(i); else if(fff%10==5) tiebishu(i); else if(fff%10==6) bingdongshu(i,j); else if(fff%10==7) changqiongzhan(i,j); else if(fff%10==8) huifushu(i); else if(fff%10==9) shixueyiji(i,j); cout<<endl; if(panduan()==true){ Sleep(500); cout<<"\n\n"; cout<<"战斗结束!"<<endl; Slowsay("------------------得分表-------------------\n");int kol; for(int f=1;f<=rushu;f++) if(a[f].now_hp>0) kol=f; Slowsay("获胜者-------");cout<<a[kol].name<<"!!! 得分:"<<a[kol].score<<"\n"; Slowsay("-------------------------------------------\n"); Sleep(500); sort(a+1,a+1+rushu,comp2); for(int f=1;f<=rushu;f++){ Sleep(250); cout<<"名字:"<<a[f].name<<" 得分:"<<a[f].score<<endl; } } } } /*for(int i=1;i<=rushu;i++){ a[i].zhan=a[i].atk*16+a[i].ddf*18+a[i].hp*3+a[i].su*5+a[i].iq*15; Sleep(500); cout<<endl; cout<<"玩家"<<i<<"的名字是:"<<a[i].name<<endl; cout<<"攻击:"<<a[i].atk<<" 护甲:"<<a[i].ddf<<" 体力:"<<a[i].hp<<" 速度:"<<a[i].su<<" 智力:"<<a[i].iq<<endl; cout<<a[i].name<<"战斗力为:"<<a[i].zhan; cout<<endl; }*/ Slowsay("\n输入1继续。。。");int pop;cin>>pop; system("cls"); moshi1(); } void Slowsay(string s){ for(int i=0;s[i];i++){ cout<<s[i]; Sleep(10); } } void shixueyiji(int i,int j){ Sleep(500); int shanghai=a[i].atk*3/2+rand()%15; shanghai-=a[j].ddf*2/3; if(shanghai<=40) shanghai=40+rand()%15; cout<<a[i].name<<" 使用了-----";color("Y");cout<<"嗜血一击";color("W");cout<<"-----(A级技能)"<<endl; a[j].now_hp-=shanghai; a[i].now_hp+=shanghai/2; Sleep(500); cout<<a[j].name<<" 受到攻击,被造成了";color("R");cout<<shanghai<<endl;color("W"); cout<<a[i].name<<" 嗜血! 恢复了";color("G");cout<<shanghai/2<<endl;color("W"); Sleep(450);cout<<"目前两人剩余血量----- ";voids(); color("G");cout<<a[i].now_hp;color("W");cout<<"/"<<" ";color("Y");cout<<a[i].hp;color("W"); color("G");cout<<a[j].now_hp;color("W");cout<<"/"<<" ";color("Y");cout<<a[j].hp;color("W"); a[i].score+=shanghai*3/2; a[j].score+=shanghai/3; } void huifushu(int i){ Sleep(500); int shanghai=a[i].iq+a[i].atk/2; cout<<a[i].name<<"使用了-----";color("B");cout<<"恢复术";color("W");cout<<"-----(B级技能)"<<endl; a[i].now_hp+=shanghai; Sleep(900); cout<<"恢复了";color("G");cout<<shanghai;color("W");cout<<" 点血量!";voids(); cout<<"目前"<<a[i].name<<"剩余血量----- ";color("G");cout<<a[i].now_hp;color("W");cout<<"/";color("Y");cout<<a[i].hp;color("W"); a[i].score+=shanghai; } void changqiongzhan(int i,int j){ Sleep(500); cout<<"-----"; color("R");cout<<"神技降临";color("W");cout<<"-----"<<endl; Sleep(500); color("Y"); cout<<"-万-"<<endl;Sleep(500); color("G"); cout<<"-劫-"<<endl;Sleep(500); color("B"); cout<<"-不-"<<endl;Sleep(500); color("C") ;cout<<"-复-"<<endl;Sleep(500); int shanghai=a[i].atk+a[i].iq+rand()%20; cout<<a[i].name<<" 使用了-----"; color("Y");cout<<"苍穹斩!";color("W");cout<<"-----";color("R");cout<<"(神级技能)";color("W");cout<<"-----\n"; Sleep(800); color("Y");cout<<"流星赶月,神之一斩,撕裂苍穹!"<<endl;color("W"); Sleep(580); shanghai-=a[j].ddf; if(shanghai<=50) shanghai=50+rand()%20; a[j].now_hp-=shanghai; cout<<a[j].name<<" 受到了"; color("R");cout<<shanghai;color("W"); cout<<" 点伤害!--------" <<endl;voids(); cout<<"目前 "<<a[j].name<<" 剩余血量-----";cout<<a[j].now_hp;color("W");cout<<"/"<<" ";color("Y");cout<<a[j].hp;color("W"); a[i].score+=shanghai; a[j].score+=shanghai/3; } void zhandui(int i){ if(a[i].name=="xiongxingzhuang"){a[i].zd=1;} else if(a[i].name=="lizewen"){a[i].zd=2;} else if(a[i].name=="maozedong"||a[i].name=="李大钊同志"||a[i].name=="陈独秀同志"){a[i].zd=3;} else if(a[i].name=="satan") a[i].zd=4; else if(a[i].name=="god_down") a[i].zd=5; else if(a[i].name=="power") a[i].zd=6; else if(a[i].name=="zengchiye") a[i].zd=7; else if(a[i].name=="bangbangchui") a[i].zd=8; } void zhandui_xun(int i){ color("R"); Sleep(500); cout<<endl; cout<<"触发隐藏战队___系统!!!"<<endl;color("W"); Sleep(500); for(int j=1;j<=100;j++){ if(a[i].zd==j){ zhandui_xun2(j,i); break; } } } void zhandui_xun2(int j,int i){ cout<<a[i].name<<" ---- "; if(j==1){color("R");cout<<"priority_queue_战队";} else if(j==2){color("BULE");cout<<"Sir_战队";} else if(j==3){color("Y");cout<<"革命之星_战队";} else if(j==4){color("R");cout<<"死神联盟_SSRPOWER(BOSS集团)";} else if(j==5){color("R");cout<<"死神联盟_SSRPOWER(BOSS集团)";} else if(j==6){color("C");cout<<"无上神域__圣堂(BOSS集团)";} else if(j==7){color("Y");cout<<"神王&降临";} else if(j==8){color("Y");cout<<"神王&降临";} color("W"); Sleep(500); cout<<"-----"<<endl; Sleep(500); cout<<"战队特殊技能 : "; if(j==1){color("C");cout<<"先发制人-----效果:优先出手一次"<<endl;a[i].su+=10;a[i].atk+=120;a[i].iq+=120;a[i].now_hp+=2000;a[i].hp+=2000;a[i].ddf+=50;} else if(j==2){color("B");cout<<"绅士的力量-----效果:开局咸猪手(攻击力增加)"<<endl;a[i].atk+=15;} else if(j==3){color("B");cout<<"农村的力量-----效果:生命上限增加"<<endl;a[i].hp+=80;a[i].now_hp+=80;} else if(j==4){color("R");cout<<"BUG_BOSS_无法战胜!!----效果:全属性增加!"<<endl;a[i].now_hp+=1200;a[i].iq+=45;a[i].atk+=40;a[i].su+=5;a[i].ddf+=10;a[i].hp+=1200;} else if(j==5){color("R");cout<<"堕落--神圣祝福-- ^^^ 效果:攻击力增加,全属性降低"<<endl;a[i].atk=a[i].atk*3;a[i].ddf-=5;a[i].now_hp+=200;a[i].su+=10;a[i].iq+=120;a[i].hp+=200;} else if(j==6){color("B");cout<<"无上神域-----效果:生命上限增加,防御力增加"<<endl;a[i].hp+=1500;a[i].now_hp+=1500;a[i].ddf+=100;a[i].iq+=20;} else if(j==7){color("G");cout<<"上";color("R");cout<<"位";color("Y");cout<<"威";color("C");cout<<"压";color("B");cout<<"-----效果:全属性大幅度增强"; a[i].hp+=12000;a[i].now_hp+=5000;a[i].atk+=2600;a[i].iq+=3000;a[i].ddf+=1000;a[i].su+=100;} else if(j==8){color("G");cout<<"上";color("R");cout<<"位";color("Y");cout<<"威";color("C");cout<<"压";color("B");cout<<"-----效果:全属性大幅度增强"; a[i].hp+=30000;a[i].now_hp+=30000;a[i].atk+=1000;a[i].iq+=1000;a[i].ddf+=3000;} color("W"); cout<<endl; } void color(string i){ if(i=="B")SetConsoleTextAttribute(GetStdHa
by 信赖滴星辰 @ 2019-05-25 18:49:26


嗯?好像放不下
by 信赖滴星辰 @ 2019-05-25 18:50:09


@[信赖滴星辰](/space/show?uid=99403) tql
by noall @ 2019-05-25 18:52:55


@[信赖滴星辰](/space/show?uid=99403) tql,不过放不下
by _扶笙_ @ 2019-05-25 18:53:14


@[信赖滴星辰](/space/show?uid=99403) 您能把后半段发一下吗,求!
by loveJY @ 2019-05-25 18:56:42


~~这可能会成为单页最高的帖子??~~
by loveJY @ 2019-05-25 18:57:08


@[信赖滴星辰](/space/show?uid=99403) tql
by 已注销%Jm9VScx @ 2019-05-25 19:06:11


| 下一页