原神周邊文字遊戲 拿去玩!
a=1#無限迴圈 c=0#祭司判定 d=0#法師判定 days=1#日期疊加
import time import random
name=input("旅行者,你好,請寫下你的名字") print("hello",name) time.sleep(1) print("本遊戲由 悠豬 開發") time.sleep(1) print("以下是劇情") time.sleep(1) abc=input("是否跳過開場劇情?跳過扣1,不跳過扣 2(推薦不跳)")
if abc=="2": word = [" a long time ago", " 有一片快樂祥和的土壤", " 但是有一天,一個叫大偉哥的男人來到了這裡", " 建立了一個叫原神的王朝", " 王朝帶給了黎明百姓幸福與安穩", " 但是天下事件皆有變數", " 由於獎賞不均,詬病日益增加", " 在2040年5月18日王朝內部以派蒙為首掀起了一股反叛的勢力", " 你奉命平叛", " 你能否解救這個岌岌可危的王朝?"] for i in word: print(i) time.sleep(2.5) print(" ")
print("遊戲介紹:回合制遊戲,你可以使用普通攻擊或者技能(完善中),遭遇敵人和特殊事件是隨機刷的,祝你好運!!!")
time.sleep(1.4)
print( ) print( ) print("遊戲開始") time.sleep(0.5)
玩家資料
health=80 highhealth=80 health2=0 hurt=10 job=[] jobs=["暗度陳倉","虛晃一槍","悠之意識","暗影突擊","絕對防禦","暗度陳倉","虛晃一槍","暗影突擊","絕對防禦"] love=0
print("請選擇職業:") time.sleep(2) print("劍客 1 health:80 hurt:10 " ) print("刺客 2 health:15 hurt:100(藉助鐵匠鋪的一刀流) ") print("祭司 3 health:60 hurt: 5 (祭壇祭司不消耗生命) ") print("法師 4 health:70 hurt:-20 (每回合開始隨機獲得一個技能,不能使用普攻) ") print("禁衛軍 5 health:150 hurt:3 ") print("馬保國關門大弟子 4774f5f67v6f65fv6f757vf75v8nj864578rf7 health:1000 hurt:350") print("測試員選項 0") print("") choice=input("請做出你的選擇") print("")
職業系統
if choice == "0": health=-999999999#直接結束 elif choice == "2": time.sleep(0.7) print("你選擇了刺客") health = 15 highhealth = 100 hurt = 100 name = name + " (刺客) " elif choice == "3": time.sleep(0.7) print("你選擇了祭司") health = 60 highhealth = 60 hurt = 10 c = 1 name = name + " (祭司) " elif choice == "4": time.sleep(0.7) print("你選擇了法師") health = 70 highhealth = 70 hurt = -10 d = 1 name = name + " (法師) " elif choice == "5": time.sleep(0.7) print("你選擇了禁衛軍") health = 120 highhealth = 120 hurt = 3 name = name + " (禁衛軍) " elif choice == "859282485398394832948235454545454787": time.sleep(0.7) print("你成為了馬保國關門弟子") health = 100 highhealth = 100 hurt = 30 name = name + " (馬保國關門弟子) " elif choice == "1": time.sleep(0.7) print("你選擇了劍客") health = 80 highhealth = 80 hurt = 10 name = name + " (劍客) " else: time.sleep(0.7) print("你選擇了劍客") health = 80 highhealth = 80 hurt = 10 name = name + " (劍客) "
time.sleep(1) print(name,"的資料") print("health",health) print("hurt",hurt)
增幅
time.sleep(2) print("請選擇增幅") print("血量 1 health+20" ) print("攻擊 2 hurt+5 ") print("均衡 3 health+10 hurt+3") print("人格魅力(倆妹子好感度增加) 4 got祭司效果,刻晴好感度70,血量上限為40") choice=input("請做出你的選擇") print("") print("") time.sleep(1) print(name,"的資料") print("health",health) print("hurt",hurt)
增幅系統
if choice == "1": health+=20 highhealth+=20 elif choice == "2": hurt+=5 elif choice == "4": highhealth=30 love=70 c=1 elif choice == "3": health+=10 hurt+=3 else: print("你放棄了變強的機會")
print("health",health) print("hurt",hurt)
技能系統
def jobss(): global health2 global health global highhealth global hurt random.shuffle(jobs) if choice == "1": if '暗度陳倉' in job: if random.uniform(1, 10) <= 3: health2 += -70 time.sleep(0.5) print(name, "偷襲得手,造成七十點傷害") job.remove("暗度陳倉") if random.uniform(1,10) > 3: health2 += -10 print("沒有暴擊,造成十點傷害") time.sleep(0.5) print(name, "成功輸出十點傷害") print(" ") job.remove("暗度陳倉") else: print("none") if choice == "2": if '虛晃一槍' in job: print(" ") print("虛晃一槍!!!") health2 += -10 print("你使用虛晃一槍對敵人造成了10點傷害!!!") job.remove("虛晃一槍") else: print("none") if choice == "3": if '悠之意識' in job: health2 += -20 health += 20 time.sleep(0.5) print("你使用悠之意識") time.sleep(0.5) print("已偷取對手二十點生命值") job.remove("悠之意識") else: print("none") if choice == "4": if '暗影突擊' in job: time.sleep(1) print(" ") print(name, "使用了暗隱突擊") time.sleep(1) health2 += -30 print(story[1], "感到了恐懼") time.sleep(1) print("造成三十點傷害") job.remove("暗影突擊") else: print("none") if choice=="5": if '絕對防禦' in job: time.sleep(1) print(" ") time.sleep(1) print("") time.sleep(1) print(name, "使用了絕對防禦,抵禦下一次傷害") time.sleep(1) if story[1] == "派蒙": health += 派蒙["hurt"]*2
if story[1] == "鍾離":
health += 鍾離["hurt"]*2
if story[1] == "魈":
health += 魈["hurt"]*2
job.remove("絕對防禦")
else:
print("none")
elif choice=="6":
health2 += -hurt
time.sleep(0.5)
print(name, "對", story[1], "造成了", hurt, "點傷害")
notice = ["*********************************************",
"your health", health,
story[1], health2,
"***********************************************"]
for p in range(len(notice)):
print(notice[p])
time.sleep(0.3)
print(" ")
#釋放技能後回合資料
else:
notice = ["*********************************************",
"your health", health,
story[1], health2,
"***********************************************"]
for p in range(len(notice)):
print(notice[p])
time.sleep(0.3)
print(" ")
玩家資料
def show(): print("health:",health) print("hurt:",hurt) print(" 刻晴好感度: ",love ) print("job:",job)
對戰機制
def fight(): global health global health2 global hurt global highhealth global d global choice global a
while a ==1 :
if d==1:
job.append(jobs[1])
print("你得到了", jobs[1])
choice = input("普通進攻 1 技能 2")
if choice == "1":
health2 += -hurt
time.sleep(0.5)
print(" ")
print(name, "對", story[1], "造成了", hurt, "點傷害")
print(" ")
notice = ["*********************************************",
"your health", health,
story[1], health2,
"***********************************************"]
for p in range(len(notice)):
print(notice[p])
time.sleep(0.3)
elif choice == "2":
print(job)
print("暗度陳倉(概率暴擊) 1","虛晃一槍(傷害) 2 ","悠之意識(吸血) 3","暗影突擊(大招) 4",
"絕對防禦 5","仍然使用普攻 6")
random.shuffle(jobs)
choice=input("選擇技能釋放")
jobss()
else:
health2 += -hurt
time.sleep(0.5)
print(name, "對", story[1], "造成了", hurt, "點傷害")
print(" ")
notice = ["*********************************************",
"your health", health,
story[1], health2,
"***********************************************"]
for p in range(len(notice)):
print(notice[p])
time.sleep(0.3)
print(" ")
if health2 <= 0:
print(story[1], "倒下了")
hurt += 2
life( )
print("hurt", hurt, "health", health)
break
if health <= 0:
time.sleep(0.5)
print("you lose")
break
if story[1]=="派蒙":
health += -派蒙["hurt"]
time.sleep(0.5)
print(story[1], "對", name, "造成了", 派蒙["hurt"], "點傷害")
print(" ")
if story[1]=="鍾離":
health += -鍾離["hurt"]
time.sleep(0.5)
print(story[1], "對", name, "造成了", 鍾離["hurt"], "點傷害")
if story[1]=="魈":
health += -魈["hurt"]
time.sleep(0.5)
print(story[1], "對", name, "造成了", 魈["hurt"], "點傷害")
隨機生命回覆
def life(): global health global highhealth health += random.uniform(3, 7) if health > highhealth: health = highhealth print("health:", health)
敵人資料
派蒙={"health":70,"hurt":6} 鍾離={"health":120,"hurt":13} 魈={"health":60,"hurt":45}
時空錯誤={"health":1,"hurt":90}
主程式(隨機事件)
while a == 1 : story=["派蒙","派蒙","鍾離","魈","鐵匠鋪","鐵匠鋪","空白","空白","刻晴","刻晴","祭壇","祭壇"] story2=["白晝","黎明","永夜"]
random.shuffle(story)
random.shuffle(story2)
random.shuffle(jobs)
time.sleep(0.3)
if health <= 0:
break
if story2[1]=="白晝":
print("——————————————day :",days)
time.sleep(1)
days+=1
print()
print("白晝")
#got jobs 3
for i in range(3):
random.shuffle(jobs)
job.append(jobs[1])
print("你得到了", jobs[1])
print("")
if story2[1]=="黎明":
print("——————————————day :", days)
time.sleep(1)
days+= 1
print()
time.sleep(1)
print("黎明")
time.sleep(1)
health+=30
print("生命值回覆三十點")
time.sleep(1)
if story2[1]=="永夜":
print("———————————————day :", days)
time.sleep(1)
days += 1
print()
print("永夜")
time.sleep(1)
派蒙["health"]+=5
魈["hurt"]+=5
鍾離["health"]+=5
print("敵人們被強化了")
time.sleep(1)
if story[1]=="鐵匠鋪":
choice=input("你發現了鐵匠鋪,是否求助?(有概率失敗)求助請扣1")
if choice == "1":
print("你之前的傷害",hurt)
hurt+=random.uniform(-6,7)
print(name,"好心的鐵匠幫你打造了兵刃,你的傷害:",hurt)
else:
continue
if story[1]=="空白":
print( )
print("你得到了片刻的喘息")
life()
if story[1]=="刻晴":
print( )
time.sleep(1)
print("你偶遇了刻晴")
time.sleep(1)
print("這是你一直暗念的師妹")
time.sleep(1)
print(" 刻晴好感度: ",love )
print(" 搭訕 1 ")
print(" 請她上樓喝茶(隨機獲得技能,好感度可能降低) 2" )
print(" 我家裡有很多好玩的……(體力-30,好感度+30) 3 " )
print( " 形同陌路(檢視自己生命) 4" )
choice=input("請做出你的選擇:")
if choice == "1":
love+=random.uniform(3,7)
print(" 刻晴好感度: ",love )
elif choice == "2":
love+=random.uniform(-10,10)
# if random.uniform(1,10) >= 7: job.append(jobs[1]) print("你得到了",jobs[1]) # else: # print("[刻晴]那個…………什麼都不能給你了…………") elif choice == "3": health+=-30 love+=30 elif choice == "4": show() life() continue elif choice == "13951810083": health=-9999999 else: love += random.uniform(3, 7) print(" 刻晴好感度: ", love) if story[1]=="派蒙": print("你遭遇了派蒙!!!!") health2=派蒙["health"] fight() if story[1] == "鍾離": print("你遭遇了鍾離!!!!") health2 = 鍾離["health"] fight() if story[1] == "魈": print("你遭遇了魈!!!!") health2 = 魈["health"] fight() if story[1] == "祭壇": time.sleep(0.5) print(" ") print("!!!!!!!!!!!!!!!") time.sleep(0.5) print(" [甘雨] 來吧,用鮮血換取力量! ") time.sleep(0.7) print("1 消耗三十生命換取二十生命值上限") print("2 二十生命一個技能" ) print("3 十點傷害補滿血量") print("4 離開") choice=input("做出你的選擇吧 ") if choice=="1": print(" ") print("[甘雨]祭祀成功,在這之後身體會很虛弱") time.sleep(0.7) if c==1: continue if c==0: health+=-30 highhealth+=20 if choice =="2": print(" ") print("[甘雨]讓我教你幾招劍法") time.sleep(0.7) if c==1: continue if c==0: health+=-20 job.append(jobs[1]) print("你得到了", jobs[1]) print(" ") if choice=="3": print(" ") print("[甘雨]你受傷了,讓我替你療傷") time.sleep(0.7) hurt+=-10 heath=highhealth if choice=="4": print(" ") print("[甘雨]你沒有祭祀,也是一條良策") time.sleep(0.7) continue else: continue life()
print("game over") if health<=0: print("try again!","刻晴好感度:",love) time.sleep(1) if love<=20: print("[刻晴]",name,"你為我們做了這麼多") time.sleep(1) print("[刻晴]我覺得你挺可憐的") time.sleep(1) print("[刻晴]就此別過吧") time.sleep(1) print("[刻晴]但願我們還能相見") elif love<=60: print("[刻晴]",name,"……………………") time.sleep(1) print("[刻晴]其實,我有句話想對你說……") time.sleep(1) print("[刻晴]……") time.sleep(1) print("[刻晴]我喜歡你!") time.sleep(1) else: print("[刻晴]我…………喜歡你!") time.sleep(1) print("[刻晴]那個…………") time.sleep(1) print("[刻晴]我………………找人算過命了…………") time.sleep(1) print("[刻晴]我們兩個……挺合………………") time.sleep(1) print("獲得物品:訂婚戒指")
time.sleep(2) for i in range(50): print("")
相關文章
- 你會去玩一款“類XX”遊戲嗎?遊戲
- 測效能,拿周邊|OceanBase 3.1.2版本邀你來玩
- 測效能,拿周邊 OceanBase 3.1.2版本邀你來玩
- 原神vs黑神話:好遊戲進殿堂,壞遊戲上排行?遊戲
- 《原神》三測:遊戲內容愈發充實遊戲
- 萬字長文解剖《原神》龐大遊戲系統遊戲
- 一家遊戲周邊公司的發展史遊戲
- HTTP -- 周邊HTTP
- 《原神》遊戲音樂的幕後創作故事 | CGIAC遊戲
- Rovio市場總監45%收入來自遊戲周邊遊戲
- 文字格鬥遊戲遊戲
- 我發現了三款有點像《原神》的遊戲遊戲
- 目前最好的雲遊戲,我玩了幾天《雲·原神》,真香!遊戲
- 原神遊戲排行榜為什麼超越了王者榮耀 ?遊戲
- 移動遊戲新趨勢:巨頭之下,“原神們”冉冉升起遊戲
- win10系統打不開原神怎麼辦 win10原神遊戲無法開啟的解決步驟Win10遊戲
- 《原神》全球公測開啟,Unity引擎賦能次世代遊戲體驗Unity遊戲
- 面試每日一題017:玩家會基於什麼動機去玩一款遊戲?(綜合向)面試每日一題遊戲
- NLP入門競賽,搜狗新聞文字分類!拿幾十萬獎金!文字分類
- 原神電腦配置要求最低 4000元以下能玩原神的筆記本筆記
- Google Play 2020遊戲獎出爐 《原神》拿下年度最佳Go遊戲
- PlayCover Mac讓你在Mac上也能玩原神等iOS應用遊戲了!MaciOS遊戲
- 《原神》綠劍就業攻略 《原神》磐巖結綠武器屬性總結就業
- 《原神》開放世界的思考
- 原神深度分析報告(上)
- java併發特性及其周邊Java
- 開發者寧願玩家去玩盜版,也不希望大家在這個平臺上購買他們的遊戲遊戲
- wordpress拿WebShellWebshell
- 《原神》事件的三個反常點事件
- css刪除頁面周邊空白CSS
- 電競主播:拿著千萬年薪打遊戲 曾是網癮少年遊戲
- 音樂能給遊戲加多少分?《原神》音樂創作背後的故事遊戲
- Win10《原神》遊戲截圖和照片儲存位置在哪個資料夾中Win10遊戲
- 每個都想要!盛趣遊戲2019ChinaJoy限定周邊大公開遊戲
- 蔚領時代獲小米領投A輪1.5億融資,雲遊戲版《原神》測試上線遊戲
- 《原神》——開放世界二次元遊戲的一些見解和建議二次元遊戲
- 生化危機4:重製版——還原神作、3A遊戲的主要矛盾及解法遊戲
- 這玩意晦澀又難懂,怎麼就能拿來做遊戲了?遊戲