原神周邊文字遊戲 拿去玩!
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("")
相關文章
- 原神vs黑神話:好遊戲進殿堂,壞遊戲上排行?遊戲
- 一家遊戲周邊公司的發展史遊戲
- 你會去玩一款“類XX”遊戲嗎?遊戲
- 測效能,拿周邊 OceanBase 3.1.2版本邀你來玩
- 測效能,拿周邊|OceanBase 3.1.2版本邀你來玩
- 每個都想要!盛趣遊戲2019ChinaJoy限定周邊大公開遊戲
- HTTP -- 周邊HTTP
- 話題挑戰賽開團,千元獎金周邊等你來拿
- 《原神》三測:遊戲內容愈發充實遊戲
- 萬字長文解剖《原神》龐大遊戲系統遊戲
- 《原神》遊戲音樂的幕後創作故事 | CGIAC遊戲
- 文字格鬥遊戲遊戲
- 目前最好的雲遊戲,我玩了幾天《雲·原神》,真香!遊戲
- 我發現了三款有點像《原神》的遊戲遊戲
- 邊寫 Javascript 程式碼邊玩遊戲 – WarriorJSJavaScript遊戲JS
- 米哈遊花1億美元打造的《原神》,上線首周就吸金超4億
- 馬蜂窩:2021年周邊遊資料包告
- 原神遊戲排行榜為什麼超越了王者榮耀 ?遊戲
- Google Play 2020遊戲獎出爐 《原神》拿下年度最佳Go遊戲
- AI神經網路可復原古希臘文字AI神經網路
- CSDN周賽第44期:贏《圖神經網路:基礎、前沿與應用》和定製周邊神經網路
- 重製遊戲主導了遊戲半邊天?遊戲
- 移動遊戲新趨勢:巨頭之下,“原神們”冉冉升起遊戲
- 邊學邊做的第一個Unity小遊戲Unity遊戲
- canvas strokeText() 文字描邊Canvas
- 《原神》全球公測開啟,Unity引擎賦能次世代遊戲體驗Unity遊戲
- java併發特性及其周邊Java
- win10系統打不開原神怎麼辦 win10原神遊戲無法開啟的解決步驟Win10遊戲
- 微信小程式-測試遊戲生成六邊多邊形微信小程式遊戲
- PlayCover Mac讓你在Mac上也能玩原神等iOS應用遊戲了!MaciOS遊戲
- 世界盃太精彩了,帶大家用Python做個足球遊戲,邊玩遊戲邊看比賽Python遊戲
- SVG 文字填充和描邊SVG
- 2021年「Twitter」平臺熱度曝光,國產手遊《原神》成討論度最高的遊戲遊戲
- 途家:2020年五一民宿出遊報告 “吸氧休閒”周邊遊成主流
- css刪除頁面周邊空白CSS
- win10遊戲全屏有黑邊怎麼辦_win10遊戲全屏有黑邊怎麼去掉Win10遊戲
- 神馬?你想去做遊戲策劃?遊戲
- TGA:2021獲獎名單彙總 國產手遊《原神》獲得最佳移動遊戲獎項遊戲