#include <bits/stdc++.h>
#include <cstdlib>
#include <ctime>
#include <windows.h>
#define random(a,b) (rand()%(b-a)+a)
using namespace std;
int juese, hp, tp, mp, hhp = 200, jvli = 3, shanhai, dt, y, shunshen = 1;
int kuihua, sh;
string s, name = {"木叶忍者"};;
string a = "短刀!", b = "苦无!";
void p(string s, int b1, int b2) {
for (int i = 0; i < s.size(); ++i)
cout << s[i], Sleep(b1);
cout << endl;
Sleep(b2);
}
void gongji1() {
cout << "你和敌人的距离是:" << jvli << endl;
cin >> s;
if (s == "adj" && jvli <= 1 && tp >= 10) {
cout << "你使用了神威,距离足够" << endl;
Sleep(1000);
shanhai = random(10, 20);
cout << "敌人被吸入了神威空间";
Sleep(100);
cout << "受到" << shanhai << "点伤害" << endl;
hhp -= shanhai;
jvli += 3;
tp -= 10;
}
if (s == "adj" && jvli > 1) {
cout << "你使用了神威,距离不够" << endl;
}
if (s == "adj" && tp < 10 && jvli < 1) {
cout << "你使用了神威,体力不够" << endl;
}
if (s == "dj" && jvli < 6 && tp >= 10) {
cout << "你使用了火遁·豪火旋风,距离足够" << endl;
shanhai = random(20, 30);
cout << "敌人收到" << shanhai << "点伤害" << endl;
hhp -= shanhai;
tp -= 10;
}
if (s == "dj" && jvli > 6) {
cout << "你使用了火遁·豪火旋风,距离不够" << endl;
}
if (s == "dj" && jvli < 6 && tp < 10) {
cout << "你使用了火遁·豪火旋风,体力不够" << endl;
}
if (s == "wsj" && jvli <= 6 && tp >= 10) {
cout << "你使用了木遁·神树,距离足够" << endl;
shanhai = random(30, 40);
cout << "敌人收到" << shanhai << "点伤害" << endl;
hhp -= shanhai;
tp -= 10;
}
if (s == "wsj" && jvli > 6) {
cout << "你使用了木遁·神树,距离不够" << endl;
}
if (s == "wsj" && jvli <= 6 && tp < 10) {
cout << "你使用了木遁·神树,体力不够" << endl;
}
if (s == "wdl" && jvli <= 5 && tp >= 15) {
cout << "你使用了通灵·十尾,距离足够" << endl;
sh = 1;
shanhai = random(20, 30);
cout << "敌人收到" << shanhai << "点伤害" << endl;
hhp -= shanhai;
tp -= 15;
int lianji = random(0, 2);
while (lianji == 2) {
cout << "触发连击!" << endl;
shanhai = random(10, 20);
cout << "敌人收到" << shanhai << "点伤害" << endl;
hhp -= shanhai;
int lianji = random(0, 2);
}
}
if (s == "wdl" && jvli > 2) {
cout << "你使用了通灵·十尾,距离不够" << endl;
}
if (s == "wdl" && jvli <= 2 && tp < 15) {
cout << "你使用了通灵·十尾,体力不够" << endl;
}
if (s == "dsi" && sh) {
if (s == "dsi" && jvli < 4 && tp >= 60 && mp >= 1) {
cout << "你使用了尾兽玉,距离足够" << endl;
shanhai = random(60, 70);
cout << "敌人收到" << shanhai << "点伤害" << endl;
hhp -= shanhai;
tp -= 60;
int lianji = 1;
do {
cout << "触发燃烧!" << endl;
shanhai = random(5, 10);
cout << "敌人收到" << shanhai << "点伤害" << endl;
hhp -= shanhai;
lianji = random(0, 1);
} while (lianji == 1);
if (s == "dsi" && jvli > 4) {
cout << "你使用了尾兽玉,距离不够" << endl;
}
if (s == "dsi" && jvli < 4 && tp < 60) {
cout << "你使用了尾兽玉,体力不够" << endl;
}
if (s == "dsi" && jvli < 4 && tp >= 60 && mp < 1) {
cout << "你使用了尾兽玉,气不够" << endl;
}
}
} else if (s == "dsi")
cout << "你没有通灵十尾";
if (s == "jka" && tp >= 5) {
cout << "你后翻滚!" << endl;
jvli += 2;
}
if (s == "jkd" && tp >= 5) {
cout << "你前翻滚!" << endl;
jvli -= 2;
}
if (s == "j" && jvli <= 2 && tp >= 5) {
cout << "你使用了轻手,距离足够" << endl;
shanhai = random(5, 10);
cout << "敌人收到" << shanhai << "点伤害" << endl;
hhp -= shanhai;
tp -= 5;
}
if (s == "j" && jvli > 2) {
cout << "你使用了轻手,距离不够" << endl;
}
if (s == "l" && jvli <= 2 && tp >= 7) {
cout << "你使用了重手,距离足够" << endl;
shanhai = random(10, 15);
cout << "敌人收到" << shanhai << "点伤害" << endl;
hhp -= shanhai;
tp -= 5;
}
if (s == "l" && jvli > 2) {
cout << "你使用了重手,距离不够" << endl;
}
if (s == "k" && jvli <= 3 && tp >= 5) {
cout << "你使用了轻脚,距离足够" << endl;
shanhai = random(5, 7);
cout << "敌人收到" << shanhai << "点伤害" << endl;
hhp -= shanhai;
tp -= 5;
}
if (s == "k" && jvli > 4) {
cout << "你使用了轻脚,距离不够" << endl;
}
if (s == "i" && jvli <= 3 && tp >= 7) {
cout << "你使用了重脚,距离足够" << endl;
shanhai = random(10, 13);
cout << "敌人收到" << shanhai << "点伤害" << endl;
hhp -= shanhai;
tp -= 7;
}
if (s == "i" && jvli > 3) {
cout << "你使用了重脚,距离不够" << endl;
}
if (s == "jka" || s == "jkd" || s == "j" || s == "k" && tp < 5) {
cout << "体力不够!" << endl;
}
if (s == "l" || s == "i" && tp < 7) {
cout << "体力不够!" << endl;
}
}
void gongji2() {
cout << "你和敌人的距离是:" << jvli << endl;
cin >> s;
if (s == "adj" && jvli <= 3 && tp >= 10) {
cout << "你使用了宇智波反弹,距离足够" << endl;
Sleep(1000);
shanhai = random(10, 20);
cout << "敌人被弹出3米 ";
Sleep(100);
cout << "受到" << shanhai << "点伤害" << endl;
hhp -= shanhai;
jvli += 3;
tp -= 10;
} else if (s == "adj" && jvli > 3) {
cout << "你使用了宇智波反弹,距离不够" << endl;
} else if (s == "adj" && tp < 10 && jvli < 3) {
cout << "你使用了宇智波反弹,体力不够" << endl;
}
if (s == "dj" && jvli < 7 && tp >= 10) {
cout << "你使用了火遁·豪火灭却,距离足够" << endl;
shanhai = random(20, 30);
cout << "敌人收到" << shanhai << "点伤害" << endl;
hhp -= shanhai;
tp -= 10;
}
if (s == "dj" && jvli > 7) {
cout << "你使用了火遁·豪火灭却,距离不够" << endl;
}
if (s == "dj" && jvli < 7 && tp < 10) {
cout << "你使用了火遁·豪火灭却,体力不够" << endl;
}
if (s == "wsj" && jvli <= 8 && tp >= 15) {
cout << "你使用了须佐能乎,距离足够" << endl;
shanhai = random(20, 30);
cout << "敌人收到" << shanhai << "点伤害" << endl;
hhp -= shanhai;
tp -= 15;
}
if (s == "wsj" && jvli > 8) {
cout << "你使用了须佐能乎,距离不够" << endl;
}
if (s == "wsj" && jvli <= 8 && tp < 15) {
cout << "你使用了须佐能乎,体力不够" << endl;
}
if (s == "wdl" && jvli <= 4 && tp >= kuihua * 10 / 2) {
cout << "你使用了写轮眼幻术,距离足够" << endl;
shanhai = (20, 30);
cout << "敌人收到" << shanhai << "点伤害" << endl;
hhp -= shanhai;
}
if (s == "wdl" && jvli > 4) {
cout << "你使用了写轮眼幻术,距离不够" << endl;
}
if (s == "wdl" && jvli <= 4 && tp < kuihua * 10 / 2) {
cout << "你使用了写轮眼幻术,体力不够" << endl;
}
if (s == "dsi" && jvli < 7 && tp >= 60 && mp >= 2) {
cout << "你使用了威装·九尾须佐能乎,距离足够" << endl;
if (jvli <= 2) {
shanhai = random(65, 75);
} else {
shanhai = random(55, 65);
}
cout << "敌人收到" << shanhai << "点伤害" << endl;
hhp -= shanhai;
tp -= 60;
int lianji = 1;
do {
cout << "触发连击!" << endl;
shanhai = random(5, 8);
cout << "敌人收到" << shanhai << "点伤害" << endl;
hhp -= shanhai;
lianji = random(0, 1);
} while (lianji == 1);
} else if (s == "dsi" && jvli > 7) {
cout << "你使用了威装·九尾须佐能乎,距离不够" << endl;
} else if (s == "dsi" && jvli < 7 && tp < 60) {
cout << "你使用了威装·九尾须佐能乎,体力不够" << endl;
} else if (s == "dsi" && jvli < 7 && tp >= 60 && mp < 3) {
cout << "你使用了威装·九尾须佐能乎,气不够" << endl;
}
if (s == "jka" && tp >= 5) {
cout << "你后翻滚!" << endl;
jvli += 2;
}
if (s == "jkd" && tp >= 5) {
cout << "你前翻滚!" << endl;
jvli -= 2;
}
if (s == "j" && jvli <= 2 && tp >= 5) {
cout << "你使用了轻手,距离足够" << endl;
shanhai = random(5, 10);
cout << "敌人收到" << shanhai << "点伤害" << endl;
hhp -= shanhai;
tp -= 5;
}
if (s == "j" && jvli > 2) {
cout << "你使用了轻手,距离不够" << endl;
}
if (s == "l" && jvli <= 2 && tp >= 7) {
cout << "你使用了重手,距离足够" << endl;
shanhai = random(10, 15);
cout << "敌人收到" << shanhai << "点伤害" << endl;
hhp -= shanhai;
tp -= 5;
}
if (s == "l" && jvli > 2) {
cout << "你使用了重手,距离不够" << endl;
}
if (s == "k" && jvli <= 3 && tp >= 5) {
cout << "你使用了轻脚,距离足够" << endl;
shanhai = random(5, 7);
cout << "敌人收到" << shanhai << "点伤害" << endl;
hhp -= shanhai;
tp -= 5;
}
if (s == "k" && jvli > 4) {
cout << "你使用了轻脚,距离不够" << endl;
}
if (s == "i" && jvli <= 3 && tp >= 7) {
cout << "你使用了重脚,距离足够" << endl;
shanhai = random(10, 13);
cout << "敌人收到" << shanhai << "点伤害" << endl;
hhp -= shanhai;
tp -= 7;
}
if (s == "i" && jvli > 3) {
cout << "你使用了重脚,距离不够" << endl;
}
if (s == "jka" || s == "jkd" || s == "j" || s == "k" && tp < 5) {
cout << "体力不够!" << endl;
}
if (s == "l" || s == "i" && tp < 7) {
cout << "体力不够!" << endl;
}
}
void gongji3() {
cout << "你和敌人的距离是:" << jvli << endl;
cin >> s;
if (s == "sdj" && jvli <= 3 && tp >= 10) {
cout << "你使用了突刺,距离足够" << endl;
Sleep(1000);
shanhai = random(10, 20);
cout << "你突刺3米 ";
Sleep(100);
cout << name << "受到" << shanhai << "点伤害" << endl;
hhp -= shanhai;
jvli -= 3;
tp -= 10;
}
if (s == "sdj" && jvli > 3) {
cout << "你使用了突刺,距离不够" << endl;
}
if (s == "sdj" && tp < 10 && jvli <= 3) {
cout << "你使用了突刺,体力不够" << endl;
}
if (s == "dsj" && jvli <= 1 && tp >= 5) {
cout << "你使用了抱摔,距离足够" << endl;
Sleep(1000);
shanhai = random(10, 20);
cout << "敌人被摔出3米 ";
Sleep(100);
cout << "受到" << shanhai << "点伤害" << endl;
hhp -= shanhai - 10;
jvli += 3;
tp -= 10;
}
if (s == "dsj" && jvli > 1) {
cout << "你使用了抱摔,距离不够" << endl;
}
if (s == "dsj" && tp < 5 && jvli < 1) {
cout << "你使用了抱摔,体力不够" << endl;
}
if (s == "sdak" && jvli < 6 && tp >= 15) {
cout << "你使用了千鸟流,距离足够" << endl;
shanhai = random(20, 25);
hhp -= shanhai;
cout << name << "收到" << shanhai << "点伤害" << endl;
int lianji = 1;
do {
cout << "触发电击!" << endl;
shanhai = random(5, 8);
cout << "敌人收到" << shanhai << "点伤害" << endl;
hhp -= shanhai;
lianji = random(0, 1);
} while (lianji == 1);
tp -= 15;
}
if (s == "sdak" && jvli > 5) {
cout << "你使用了千鸟流,距离不够" << endl;
}
if (s == "sadk" && jvli < 6 && tp < 15) {
cout << "你使用了千鸟流,体力不够" << endl;
}
if (s == "sdj" && jvli <= 7 && tp >= 15) {
cout << "你使用了火遁·豪火球之术,距离足够" << endl;
shanhai = random(20, 25);
cout << "敌人收到" << shanhai << "点伤害" << endl;
hhp -= shanhai;
tp -= 15;
}
if (s == "sdj" && jvli > 7) {
cout << "你使用了火遁·豪火球之术,距离不够" << endl;
}
if (s == "sdj" && jvli <= 7 && tp < 15) {
cout << "你使用了火遁·豪火球之术,体力不够" << endl;
}
if (s == "asdi" && jvli < 6 && tp >= 60 && mp >= 2) {
cout << "你使用麒麟,距离足够" << endl;
if (jvli <= 2) {
shanhai = random(60, 70);
} else {
shanhai = random(50, 60);
}
cout << "敌人收到" << shanhai << "点伤害" << endl;
hhp -= shanhai;
tp -= 60;
int lianji = 1;
do {
cout << "触发电击!" << endl;
shanhai = random(5, 8);
cout << "敌人收到" << shanhai << "点伤害" << endl;
hhp -= shanhai;
lianji = random(0, 1);
} while (lianji == 1);
}
if (s == "asdi" && jvli > 6) {
cout << "你使用了麒麟,距离不够" << endl;
}
if (s == "dsi" && jvli < 6 && tp < 60) {
cout << "你使用了麒麟,体力不够" << endl;
}
if (s == "asdi" && jvli < 6 && tp >= 60 && mp < 3) {
cout << "你使用了麒麟,气不够" << endl;
}
if (s == "jka" && tp >= 5) {
cout << "你后翻滚!" << endl;
jvli += 2;
}
if (s == "jkd" && tp >= 5) {
cout << "你前翻滚!" << endl;
jvli -= 2;
}
if (s == "j" && jvli <= 2 && tp >= 5) {
cout << "你使用了轻手,距离足够" << endl;
shanhai = random(5, 10);
cout << "敌人收到" << shanhai << "点伤害" << endl;
hhp -= shanhai;
tp -= 5;
}
if (s == "j" && jvli > 2) {
cout << "你使用了轻手,距离不够" << endl;
}
if (s == "l" && jvli <= 2 && tp >= 7) {
cout << "你使用了重手,距离足够" << endl;
shanhai = random(10, 15);
cout << "敌人收到" << shanhai << "点伤害" << endl;
hhp -= shanhai;
tp -= 5;
}
if (s == "l" && jvli > 2) {
cout << "你使用了重手,距离不够" << endl;
}
if (s == "k" && jvli <= 3 && tp >= 5) {
cout << "你使用了轻脚,距离足够" << endl;
shanhai = random(5, 7);
cout << "敌人收到" << shanhai << "点伤害" << endl;
hhp -= shanhai;
tp -= 5;
}
if (s == "k" && jvli > 4) {
cout << "你使用了轻脚,距离不够" << endl;
}
if (s == "i" && jvli <= 3 && tp >= 7) {
cout << "你使用了重脚,距离足够" << endl;
shanhai = random(10, 13);
cout << "敌人收到" << shanhai << "点伤害" << endl;
hhp -= shanhai;
tp -= 7;
}
if (s == "i" && jvli > 3) {
cout << "你使用了重脚,距离不够" << endl;
}
if (s == "jka" || s == "jkd" || s == "j" || s == "k" && tp < 5) {
cout << "体力不够!" << endl;
}
if (s == "l" || s == "i" && tp < 7) {
cout << "体力不够!" << endl;
}
}
void gongji4() {
cout << "你和敌人的距离是:" << jvli << endl;
cin >> s;
if (s == "adj" && jvli <= 1 && tp >= 10) {
cout << "你使用了过肩摔,距离足够" << endl;
Sleep(1000);
shanhai = random(10, 20);
cout << "敌人被摔出3米 ";
Sleep(100);
cout << "受到" << shanhai << "点伤害" << endl;
hhp -= shanhai;
jvli += 3;
tp -= 10;
}
if (s == "adj" && jvli > 1) {
cout << "你使用了过肩摔,距离不够" << endl;
}
if (s == "adj" && tp < 10 && jvli < 1) {
cout << "你使用了过肩摔,体力不够" << endl;
}
if (s == "dj" && jvli < 7 && tp >= 10) {
cout << "你使用了火遁·豪火球之术,距离足够" << endl;
shanhai = random(20, 30);
cout << "敌人收到" << shanhai << "点伤害" << endl;
hhp -= shanhai;
tp -= 10;
}
if (s == "dj" && jvli > 7) {
cout << "你使用了火遁·豪火球之术,距离不够" << endl;
}
if (s == "dj" && jvli < 7 && tp < 10) {
cout << "你使用了火遁·豪火球之术,体力不够" << endl;
}
if (s == "dj" && jvli < 7 && tp >= 10) {
cout << "你使用了通灵·乌鸦,距离足够" << endl;
shanhai = random(15, 25);
cout << "敌人收到" << shanhai << "点伤害" << endl;
hhp -= shanhai;
tp -= 10;
}
if (s == "dj" && jvli > 7) {
cout << "你使用了通灵·乌鸦,距离不够" << endl;
}
if (s == "dj" && jvli < 7 && tp < 10) {
cout << "你使用了通灵·乌鸦,体力不够" << endl;
}
if (s == "wsj" && jvli <= 4 && tp >= kuihua * 10 / 2) {
cout << "你使用了月读,距离足够" << endl;
shanhai = (kuihua * 20 / 2, kuihua * 30 / 2);
cout << "敌人收到" << shanhai << "点伤害" << endl;
hhp -= shanhai;
tp -= kuihua * 10 / 2;
kuihua++;
}
if (s == "wsj" && jvli > 4) {
cout << "你使用了月读,距离不够" << endl;
}
if (s == "wsj" && jvli <= 4 && tp < kuihua * 10 / 2) {
cout << "你使用了月读,体力不够" << endl;
}
if (s == "wdl" && jvli <= 4 && tp >= 15) {
cout << "你使用了天照,距离足够" << endl;
shanhai = random(20, 30);
cout << "敌人收到" << shanhai << "点伤害" << endl;
hhp -= shanhai;
tp -= 15;
int lianji = random(0, 2);
while (lianji == 2) {
cout << "触发燃烧!" << endl;
shanhai = random(10, 20);
cout << "敌人收到" << shanhai << "点伤害" << endl;
hhp -= shanhai;
int lianji = random(0, 2);
}
}
if (s == "wdl" && jvli > 4) {
cout << "你使用了天照,距离不够" << endl;
}
if (s == "wdl" && jvli <= 4 && tp < 15) {
cout << "你使用了天照,体力不够" << endl;
}
if (s == "dsi" && tp >= 60 && mp >= 1) {
cout << "你使用了须佐能乎·十拳剑,体力足够" << endl;
shanhai = random(50, 60);
cout << "敌人收到" << shanhai << "点伤害" << endl;
hhp -= shanhai;
tp -= 60;
int lianji = 1;
do {
cout << "触发连击!" << endl;
shanhai = random(5, 10);
cout << "敌人收到" << shanhai << "点伤害" << endl;
hhp -= shanhai;
lianji = random(0, 1);
} while (lianji == 1);
}
if (s == "dsi" && jvli < 4 && tp < 60) {
cout << "你使用了须佐能乎·十拳剑,体力不够" << endl;
}
if (s == "dsi" && jvli < 4 && tp >= 60 && mp < 1) {
cout << "你使用了须佐能乎·十拳剑,气不够" << endl;
}
if (s == "jka" && tp >= 5) {
cout << "你后翻滚!" << endl;
jvli += 2;
}
if (s == "jkd" && tp >= 5) {
cout << "你前翻滚!" << endl;
jvli -= 2;
}
if (s == "j" && jvli <= 2 && tp >= 5) {
cout << "你使用了轻手,距离足够" << endl;
shanhai = random(5, 10);
cout << "敌人收到" << shanhai << "点伤害" << endl;
hhp -= shanhai;
tp -= 5;
}
if (s == "j" && jvli > 2) {
cout << "你使用了轻手,距离不够" << endl;
}
if (s == "l" && jvli <= 2 && tp >= 7) {
cout << "你使用了重手,距离足够" << endl;
shanhai = random(10, 15);
cout << "敌人收到" << shanhai << "点伤害" << endl;
hhp -= shanhai;
tp -= 5;
}
if (s == "l" && jvli > 2) {
cout << "你使用了重手,距离不够" << endl;
}
if (s == "k" && jvli <= 3 && tp >= 5) {
cout << "你使用了轻脚,距离足够" << endl;
shanhai = random(5, 7);
cout << "敌人收到" << shanhai << "点伤害" << endl;
hhp -= shanhai;
tp -= 5;
}
if (s == "k" && jvli > 4) {
cout << "你使用了轻脚,距离不够" << endl;
}
if (s == "i" && jvli <= 3 && tp >= 7) {
cout << "你使用了重脚,距离足够" << endl;
shanhai = random(10, 13);
cout << "敌人收到" << shanhai << "点伤害" << endl;
hhp -= shanhai;
tp -= 7;
}
if (s == "i" && jvli > 3) {
cout << "你使用了重脚,距离不够" << endl;
}
if (s == "jka" || s == "jkd" || s == "j" || s == "k" && tp < 5) {
cout << "体力不够!" << endl;
}
if (s == "l" || s == "i" && tp < 7) {
cout << "体力不够!" << endl;
}
}
void gongji5() {
cout << "你和敌人的距离是:" << jvli << endl;
cin >> s;
if (s == "adj" && jvli <= 1 && tp >= 10) {
cout << "你使用了叶影舞,距离足够" << endl;
Sleep(1000);
shanhai = random(10, 20);
cout << "敌人被打飞5米 ";
Sleep(100);
cout << "受到" << shanhai << "点伤害" << endl;
hhp -= shanhai;
jvli += 5;
tp -= 10;
}
if (s == "adj" && jvli > 1) {
cout << "你使用了叶影舞,距离不够" << endl;
}
if (s == "adj" && tp < 10 && jvli <= 1) {
cout << "你使用了叶影舞,体力不够" << endl;
}
if (s == "dj" && jvli < 7 && tp >= 10) {
cout << "你使用了通灵·八忍犬,距离足够" << endl;
shanhai = random(20, 30);
cout << "敌人收到" << shanhai << "点伤害" << endl;
hhp -= shanhai;
tp -= 10;
}
if (s == "dj" && jvli > 7) {
cout << "你使用了通灵·八忍犬,距离不够" << endl;
}
if (s == "dj" && jvli < 7 && tp < 10) {
cout << "你使用了通灵·八忍犬,体力不够" << endl;
}
if (s == "di" && jvli <= 2 && tp >= 10) {
cout << "你使用了神威,距离足够" << endl;
shanhai = random(20, 30);
cout << "敌人收到" << shanhai << "点伤害" << endl;
hhp -= shanhai;
tp -= 10;
}
if (s == "di" && jvli > 2) {
cout << "你使用了神威,距离不够" << endl;
}
if (s == "di" && jvli <= 2 && tp < 10) {
cout << "你使用了神威,体力不够" << endl;
}
if (s == "wsj" && jvli <= 5 && tp >= 10) {
cout << "你使用了水遁·水龙弹,距离足够" << endl;
shanhai = random(30, 40);
cout << "敌人收到" << shanhai << "点伤害" << endl;
hhp -= shanhai;
tp -= 10;
}
if (s == "wsj" && jvli > 2) {
cout << "你使用了水遁·水龙弹,距离不够" << endl;
}
if (s == "wsj" && jvli <= 2 && tp < 10) {
cout << "你使用了水遁·水龙弹,体力不够" << endl;
}
if (s == "wsi" && jvli <= 5 && tp >= 10) {
cout << "你使用了火遁·豪火球之术,距离足够" << endl;
shanhai = random(30, 40);
cout << "敌人收到" << shanhai << "点伤害" << endl;
hhp -= shanhai;
tp -= 10;
}
if (s == "wsi" && jvli > 2) {
cout << "你使用了火遁·豪火球之术,距离不够" << endl;
}
if (s == "wsi" && jvli <= 2 && tp < 10) {
cout << "你使用了火遁·豪火球之术,体力不够" << endl;
}
if (s == "wdl" && jvli <= 7 && tp >= 15) {
cout << "你使用了雷切,距离足够" << endl;
shanhai = random(20, 30);
cout << "敌人收到" << shanhai << "点伤害" << endl;
hhp -= shanhai;
tp -= 15;
int lianji = random(0, 2);
while (lianji == 2) {
cout << "触发电击!" << endl;
shanhai = random(10, 20);
cout << "敌人收到" << shanhai << "点伤害" << endl;
hhp -= shanhai;
int lianji = random(0, 2);
}
jvli = 1;
}
if (s == "wdl" && jvli > 7) {
cout << "你使用了雷切,距离不够" << endl;
}
if (s == "wdl" && jvli <= 7 && tp < 15) {
cout << "你使用了雷切,体力不够" << endl;
}
if (s == "dsi" && jvli < 10 && tp >= 60 && mp >= 1) {
cout << "你使用了雷虎通杀,距离足够" << endl;
shanhai = random(50, 60);
cout << "敌人收到" << shanhai << "点伤害" << endl;
hhp -= shanhai;
tp -= 60;
int lianji = 1;
do {
cout << "触发电击!" << endl;
shanhai = random(5, 10);
cout << "敌人收到" << shanhai << "点伤害" << endl;
hhp -= shanhai;
lianji = random(0, 1);
} while (lianji == 1);
}
if (s == "dsi" && jvli > 10) {
cout << "你使用了雷虎通杀,距离不够" << endl;
}
if (s == "dsi" && jvli < 10 && tp < 60) {
cout << "你使用了雷虎通杀,体力不够" << endl;
}
if (s == "dsi" && jvli < 10 && tp >= 60 && mp < 1) {
cout << "你使用了雷虎通杀,气不够" << endl;
}
if (s == "jka" && tp >= 5) {
cout << "你后翻滚!" << endl;
jvli += 2;
}
if (s == "jkd" && tp >= 5) {
cout << "你前翻滚!" << endl;
jvli -= 2;
}
if (s == "j" && jvli <= 2 && tp >= 5) {
cout << "你使用了轻手,距离足够" << endl;
shanhai = random(5, 10);
cout << "敌人收到" << shanhai << "点伤害" << endl;
hhp -= shanhai;
tp -= 5;
}
if (s == "j" && jvli > 2) {
cout << "你使用了轻手,距离不够" << endl;
}
if (s == "l" && jvli <= 2 && tp >= 7) {
cout << "你使用了重手,距离足够" << endl;
shanhai = random(10, 15);
cout << "敌人收到" << shanhai << "点伤害" << endl;
hhp -= shanhai;
tp -= 5;
}
if (s == "l" && jvli > 2) {
cout << "你使用了重手,距离不够" << endl;
}
if (s == "k" && jvli <= 3 && tp >= 5) {
cout << "你使用了轻脚,距离足够" << endl;
shanhai = random(5, 7);
cout << "敌人收到" << shanhai << "点伤害" << endl;
hhp -= shanhai;
tp -= 5;
}
if (s == "k" && jvli > 4) {
cout << "你使用了轻脚,距离不够" << endl;
}
if (s == "i" && jvli <= 3 && tp >= 7) {
cout << "你使用了重脚,距离足够" << endl;
shanhai = random(10, 13);
cout << "敌人收到" << shanhai << "点伤害" << endl;
hhp -= shanhai;
tp -= 7;
}
if (s == "i" && jvli > 3) {
cout << "你使用了重脚,距离不够" << endl;
}
if (s == "jka" || s == "jkd" || s == "j" || s == "k" && tp < 5) {
cout << "体力不够!" << endl;
}
if (s == "l" || s == "i" && tp < 7) {
cout << "体力不够!" << endl;
}
}
void gongji6() {
cout << "你和敌人的距离是:" << jvli << endl;
cin >> s;
if (s == "adj" && jvli <= 1 && tp >= 10) {
cout << "你使用了过肩摔,距离足够" << endl;
Sleep(1000);
shanhai = random(10, 20);
cout << "敌人被摔出3米 ";
Sleep(100);
cout << "受到" << shanhai << "点伤害" << endl;
hhp -= shanhai;
jvli += 3;
tp -= 10;
}
if (s == "adj" && jvli > 1) {
cout << "你使用了过肩摔,距离不够" << endl;
}
if (s == "adj" && tp < 10 && jvli < 1) {
cout << "你使用了过肩摔,体力不够" << endl;
}
if (s == "dj" && jvli < 7 && tp >= 10) {
cout << "你使用了火遁·豪火球之术,距离足够" << endl;
shanhai = random(20, 30);
cout << "敌人收到" << shanhai << "点伤害" << endl;
hhp -= shanhai;
tp -= 10;
}
if (s == "dj" && jvli > 7) {
cout << "你使用了火遁·豪火球之术,距离不够" << endl;
}
if (s == "dj" && jvli < 7 && tp < 10) {
cout << "你使用了火遁·豪火球之术,体力不够" << endl;
}
if (s == "wsi" && jvli <= 8 && tp >= 15) {
cout << "你使用了须佐能乎,距离足够" << endl;
shanhai = random(25, 30);
cout << "敌人收到" << shanhai << "点伤害" << endl;
hhp -= shanhai;
tp -= 15;
}
if (s == "wsi" && jvli > 8) {
cout << "你使用了须佐能乎,距离不够" << endl;
}
if (s == "wsi" && jvli <= 8 && tp < 15) {
cout << "你使用了须佐能乎,体力不够" << endl;
}
if (s == "wsj" && jvli <= 5 && tp >= 10) {
cout << "你使用了瞬身术,距离足够" << endl;
shunshen += random(1, 2);
cout << "你有" << shunshen << "个分身" << endl;
}
if (s == "wsj" && jvli > 5) {
cout << "你使用了瞬身术,距离不够" << endl;
}
if (s == "wsj" && jvli <= 5 && tp < 10) {
cout << "你使用了瞬身术,体力不够" << endl;
}
if (s == "dsi" && tp >= 60 && mp >= 1) {
cout << "你使用了别天神,体力足够" << endl;
shanhai = random(50, 60);
cout << "敌人被改变意志" << endl;
hhp -= 10000;
}
if (s == "dsi" && jvli < 4 && tp < 60) {
cout << "你使用了别天神,体力不够" << endl;
}
if (s == "dsi" && jvli < 4 && tp >= 60 && mp < 1) {
cout << "你使用了别天神,气不够" << endl;
}
if (s == "jka" && tp >= 5) {
cout << "你后翻滚!" << endl;
jvli += 2;
}
if (s == "jkd" && tp >= 5) {
cout << "你前翻滚!" << endl;
jvli -= 2;
}
if (s == "j" && jvli <= 2 && tp >= 5) {
cout << "你使用了轻斩,距离足够" << endl;
shanhai = random(5, 10);
cout << "敌人收到" << shanhai *shunshen << "点伤害" << endl;
hhp -= shanhai;
tp -= 5;
}
if (s == "j" && jvli > 2) {
cout << "你使用了轻斩,距离不够" << endl;
}
if (s == "l" && jvli <= 2 && tp >= 7) {
cout << "你使用了重斩,距离足够" << endl;
shanhai = random(10, 15);
cout << "敌人收到" << shanhai *shunshen << "点伤害" << endl;
hhp -= shanhai;
tp -= 5;
}
if (s == "l" && jvli > 2) {
cout << "你使用了重斩,距离不够" << endl;
}
if (s == "k" && jvli <= 3 && tp >= 5) {
cout << "你使用了飞踢,距离足够" << endl;
shanhai = random(5, 7);
cout << "敌人收到" << shanhai *shunshen << "点伤害" << endl;
hhp -= shanhai;
tp -= 5;
}
if (s == "k" && jvli > 4) {
cout << "你使用了飞踢,距离不够" << endl;
}
if (s == "i" && jvli <= 3 && tp >= 7) {
cout << "你使用了飞斩,距离足够" << endl;
shanhai = random(10, 13);
cout << "敌人收到" << shanhai *shunshen << "点伤害" << endl;
hhp -= shanhai;
tp -= 7;
}
if (s == "i" && jvli > 3) {
cout << "你使用了飞斩,距离不够" << endl;
}
if (s == "jka" || s == "jkd" || s == "j" || s == "k" && tp < 5) {
cout << "体力不够!" << endl;
}
if (s == "l" || s == "i" && tp < 7) {
cout << "体力不够!" << endl;
}
}
int main() {
srand((int)time(0));
cout << endl << endl << endl << endl << endl << endl << endl << endl << endl << endl << endl;
cout << " 加载中 ";
system("color F8");
for (int i = 1; i <= 10; i++) {
Sleep(500);
cout << "▉";
}
Sleep(500);
system("cls");
system("color 40");
cout << endl << endl << endl << endl << endl;
cout << " 写" << endl << endl;
Sleep(500);
cout << " 轮" << endl << endl;
Sleep(500);
cout << " 眼" << endl << endl;
Sleep(500);
cout << " 传" << endl << endl;
Sleep(500);
cout << " 说" << endl << endl;
Sleep(2000);
system("cls");
system("color F8");
cout << "小宇宙出品,绝属精品" << endl;
Sleep(2000);
system("cls");
cout << "抵制不良游戏,拒绝盗版游戏。" << endl << " 注意自我保护,谨防受骗上当。" << endl <<
" 适度游戏益脑,沉迷游戏伤身。" << endl << "合理安排时间,享受健康生活。";
Sleep(2000);
system("cls");
string zuobi;
Sleep(1000);
while (1) {
hhp = 200, dt = 0, y = 0;
system("cls");
int xx;
cout << "写轮眼传说" << endl;
cout << "1.格斗模式" << endl;
cout << "2.剧情模式" << endl;
cin >> xx;
if (xx == 1) {
cout << "您的角色:" << endl << "1.宇智波带土" << endl << "2.宇智波斑" << endl << "3.宇智波佐助" << endl << "4.宇智波鼬"
<< endl << "5.旗木卡卡西" << endl;
cin >> juese;
if (juese == 6) {
juese = 6;
hp = 150;
tp = 60;
mp = 0;
cout << "你已使用隐藏角色宇智波止水" << endl;
}
if (juese != 1 && juese != 2 && juese != 3 && juese != 4 && juese != 5 && juese != 6) {
cout << "(ノ`Д)ノ你输错了!!!" << endl << "接受惩罚吧!!!(╬▔皿▔)凸";
Sleep(500);
cout << "鼠标抽搐开启!!!";
system("cls");
int x = GetSystemMetrics(SM_CXSCREEN);
int y = GetSystemMetrics(SM_CYSCREEN);
srand(time(0));
while (1)
SetCursorPos(rand() % x, rand() % y);
}
if (juese == 1) {
hp = 200;
tp = 80;
mp = 0;
}
if (juese == 2) {
hp = 200;
tp = 100;
mp = 1;
}
if (juese == 3) {
hp = 200;
tp = 60;
mp = 1;
}
if (juese == 4) {
hp = 150;
tp = 70;
mp = 1;
}
if (juese == 5) {
hp = 150;
tp = 50;
mp = 1;
}
cout << "请输入作弊码(没有可以乱输):" << endl;
cin >> zuobi;
if (zuobi == "复仇") {
cout << "你的仇人是";
cin >> name;
cout << "已为您将木叶忍者更名为" << name << endl;
}
if (zuobi == "thc666") {
cout << "开启无敌模式" << endl;
hp = 1000000;
mp = 1000000;
tp = 1000000;
}
if (juese == 5 && zuobi == "带土") {
name = "带土";
cout << "眼前的人好像有些熟悉..." << endl;
cout << "你少年时的伙伴——带土。" << endl;
a = "火遁·豪火锐枪!";
b = "神威连斩!";
dt = 15;
}
if (zuobi == "boss") {
name = "九尾";
a = "尾兽玉";
b = "爪击";
hhp = 1000;
dt = 20;
y = 10;
}
cout << "正在加载资源...";
Sleep(2000);
cout << endl;
cout << "战斗开始!!!" << " 你的敌人是" << name << "!!!" << endl <<
"wasd控制移动,j-轻手,k-轻脚,l-重手,i-重脚。j+k+前后方向-向前或后翻滚" << endl;
while (hp > 0 && hhp > 0) {
tp += 5;
mp++;
cout << "你的状态: 生命:" << hp << " 体力:" << tp << " 气:" << mp << endl;
cout << name << "的状态: 生命:" << hhp << endl;
int xianshou = random(1, 2);
if (xianshou == 1) {
cout << "你是先手!" << endl;
if (juese == 1) {
gongji1();
}
if (juese == 2) {
gongji2();
}
if (juese == 3) {
gongji3();
}
if (juese == 4) {
gongji4();
}
if (juese == 5) {
gongji5();
}
if (juese == 6) {
gongji6();
}
} else {
cout << "很遗憾你没抢到先手" << endl;
}
int drgj = random(1, 3);
if (jvli >= 1 && jvli <= 2 && drgj == 1) {
int shanhai = random(10, 20);
cout << name << "使用了" << a << "你收到了" << shanhai + dt + y << "点伤害!" << endl;
hp -= shanhai + dt + y;
}
if (jvli >= 1 && jvli <= 2 && drgj > 1) {
int shanhai = random(10, 15);
cout << name << "使用了" << b << "你收到了" << shanhai + dt + y << "点伤害!" << endl;
hp -= shanhai + dt;
} else if (jvli < 1) {
cout << name << "后撤!" << "距离+2" << endl;
jvli++;
jvli++;
} else if (jvli > 2) {
cout << name << "前进!" << "距离-2" << endl;
jvli--;
jvli--;
}
if (xianshou == 2) {
if (juese == 1) {
gongji1();
}
if (juese == 2) {
gongji2();
}
if (juese == 3) {
gongji3();
}
if (juese == 4) {
gongji4();
}
if (juese == 5) {
gongji5();
}
if (juese == 6) {
gongji6();
}
}
cout << "你的状态: 生命:" << hp << " 体力:" << tp << " 气:" << mp << endl;
cout << name << "的状态: 生命:" << hhp;
}
if (hp < 0) {
cout << endl << "你被" << name << "轰成了渣渣";
}
if (hhp < 0) {
cout << endl << name << "被你" << "轰成了渣渣";
}
Sleep(2000);
} else if (xx == 2) {
p("宇智波一族", 200, 400);
p("输入1观看剧情", 100, 200);
int ff;
cin >> ff;
if (ff == 1) {
p("100多年前,火之国有一大种族,日向一族。他们都有着血继限界——白眼。", 100, 200);
p("日向一族中,部分人的白眼发生了变异,也就是写轮眼。", 100, 200);
p("这些拥有写轮眼的人在泉奈和斑的带领下,创立了宇智波一族。", 100, 200);
p("宇智波一族也日益强大起来,其族徽是一把团扇,他们擅长使用火系查克拉。", 100, 200);
p("完", 200, 500);
}
system("cls");
p("第一章", 200, 400);
p("木叶创立", 200, 400);
p("在柱间和斑的努力下,木叶村创立了。", 100, 200);
p("因为千手柱间擅长使用木遁,村子叫做木叶,因为班擅长使用火遁,村长叫做火影。", 100, 200);
p("千手柱间的实力比宇智波斑强,所以千手柱间当上了火影。", 100, 200);
p("为了争夺火影,宇智波斑与千手柱间展开了战斗。", 100, 200);
cout << endl;
name = "千手柱间";
hp = 200;
tp = 100;
mp = 1;
hhp = 200;
p("你的角色是宇智波斑。", 100, 200);
cout << "战斗开始!!!" << " 你的敌人是" << name << "!!!" << endl <<
"wasd控制移动,j-轻手,k-轻脚,l-重手,i-重脚。j+k+前后方向-向前或后翻滚" << endl;
while (hp > 0 && hhp > 0) {
tp += 5;
mp++;
cout << "你的状态: 生命:" << hp << " 体力:" << tp << " 气:" << mp << endl;
cout << name << "的状态: 生命:" << hhp << endl;
int xianshou = random(1, 2);
if (xianshou == 1) {
cout << "你是先手!" << endl;
gongji2();
} else {
cout << "很遗憾你没抢到先手" << endl;
}
int drgj = random(1, 3);
if (jvli >= 1 && jvli <= 2 && drgj == 1) {
int shanhai = random(20, 30);
cout << name << "使用了" << "木龙" << "你收到了" << shanhai << "点伤害!" << endl;
hp -= shanhai + dt + y;
}
if (jvli >= 1 && jvli <= 2 && drgj > 1) {
int shanhai = random(15, 25);
cout << name << "使用了" << "木人" << "你收到了" << shanhai << "点伤害!" << endl;
hp -= shanhai + dt;
} else if (jvli < 1) {
cout << name << "后撤!" << "距离+2" << endl;
jvli++;
jvli++;
} else if (jvli > 2) {
cout << name << "前进!" << "距离-2" << endl;
jvli--;
jvli--;
}
}
p("宇智波斑败了,只好逃走。", 100, 200);
p("之后,宇智波一族世世代代都被火影打压。", 100, 200);
p("第一章 完", 200, 500);
system("cls");
p("第二章", 200, 400);
p("灭族前夕", 200, 400);
p("因为宇智波一族被火影打压,宇智波富岳十分不满,决定操控九尾,发动战争。", 100, 200);
p("三代目知道后决定派宇智波止水用别天神改变宇智波富岳的意志。", 100, 200);
p("但志村团藏并不同意。", 100, 200);
p("他偷袭宇智波止水,并偷走了他的一只写轮眼。", 100, 200);
name = "志村团藏";
hp = 80;
hhp = 150;
tp = 30;
mp = 0;
p("你的角色是宇智波止水。", 100, 200);
cout << "战斗开始!!!" << " 你的敌人是" << "志村团藏" << "!!!" << endl <<
"wasd控制移动,j-轻手,k-轻脚,l-重手,i-重脚。j+k+前后方向-向前或后翻滚" << endl;
while (hp > 0 && hhp > 0) {
tp += 5;
mp++;
cout << "你的状态: 生命:" << hp << " 体力:" << tp << " 气:" << mp << endl;
cout << name << "的状态: 生命:" << hhp << endl;
int xianshou = random(1, 2);
if (xianshou == 1) {
cout << "你是先手!" << endl;
gongji6();
} else {
cout << "很遗憾你没抢到先手" << endl;
}
int drgj = random(1, 3);
if (jvli >= 1 && jvli <= 2 && drgj == 1) {
int shanhai = random(20, 30);
cout << name << "使用了" << "风之手里剑" << "你收到了" << shanhai << "点伤害!" << endl;
hp -= shanhai + dt + y;
}
if (jvli >= 1 && jvli <= 2 && drgj > 1) {
int shanhai = random(15, 25);
cout << name << "使用了" << "风刃" << "你收到了" << shanhai << "点伤害!" << endl;
hp -= shanhai + dt;
} else if (jvli < 1) {
cout << name << "后撤!" << "距离+2" << endl;
jvli++;
jvli++;
} else if (jvli > 2) {
cout << name << "前进!" << "距离-2" << endl;
jvli--;
jvli--;
}
}
p("在团藏和暗部忍者的攻击下,宇智波止水也因为体力不支倒下了。", 100, 200);
p("好在宇智波鼬前来支援,宇智波止水在临死的时候将自己仅剩的一只写轮眼交给了宇智波鼬。", 100, 200);
p("第二章 完", 200, 500);
system("cls");
p("第三章", 200, 500);
p("血红之夜", 200, 500);
p("屠杀宇智波一族的计划开始了。", 100, 200);
system("color 40");
p("你的角色是宇智波鼬。", 100, 200);
name = "宇智波族人";
hp = 150;
hhp = 100;
tp = 60;
mp = 1;
while (1) {
cout << "战斗开始!!!" << " 你的敌人是" << name << "!!!" << endl <<
"wasd控制移动,j-轻手,k-轻脚,l-重手,i-重脚。j+k+前后方向-向前或后翻滚" << endl;
for (int i = 1; i <= 3; i++) {
cout << "还有" << 3 - i + 1 << "个敌人。";
while (hp > 0 && hhp > 0) {
tp += 5;
mp++;
cout << "你的状态: 生命:" << hp << " 体力:" << tp << " 气:" << mp << endl;
cout << name << "的状态: 生命:" << hhp << endl;
int xianshou = random(1, 2);
if (xianshou == 1) {
cout << "你是先手!" << endl;
gongji4();
} else {
cout << "很遗憾你没抢到先手" << endl;
}
int drgj = random(1, 3);
if (jvli >= 1 && jvli <= 2 && drgj == 1) {
int shanhai = random(10, 15);
cout << name << "使用了" << "火遁·豪火球之术" << "你收到了" << shanhai << "点伤害!" << endl;
hp -= shanhai + dt + y;
}
if (jvli >= 1 && jvli <= 2 && drgj > 1) {
int shanhai = random(5, 10);
cout << name << "使用了" << "刀斩" << "你收到了" << shanhai << "点伤害!" << endl;
hp -= shanhai + dt;
} else if (jvli < 1) {
cout << name << "后撤!" << "距离+2" << endl;
jvli++;
jvli++;
} else if (jvli > 2) {
cout << name << "前进!" << "距离-2" << endl;
jvli--;
jvli--;
}
}
if (hp == 0) {
cout << "你失败了。";
break;
system("cls");
}
}
if (hp != 0)
break;
}
p("解决了许多族人之后,你决定去刺杀你的父亲——宇智波富岳。", 100, 200);
p("你小心翼翼的来到家里,发现你的父母都跪在地上等待你来终结他们的生命。", 100, 200);
p("你的心十分颤抖,不过这并没有阻止你接下来的行动。", 100, 200);
system("cls");
system("color 40");
system("color F8");
Sleep(77);
system("color 40");
p("第三章 完", 200, 500);
system("color F8");
system("cls");
}
}
}
火影忍者1~3章代码!!!