已经解决了原问题了
撒花*
欢迎大家尝试 一下这个小游戏
因为转格式总是不行,就只能这样贴上来了
#制作人:WT,Psychol
from tkinter import Tk,Label
import easygui
root=Tk()
root.title('模拟收容失效SCP-049')
root.geometry('700x650+205+180')
lblShow=Label(root,text='模拟收容失效\nSCP-049\n/不建议反复游玩/\n\n出品:ZX.WT and ZX.心理',
width=120,height=6)
lblShow.pack()
lblShow=Label(root,text='*****=======================*****',
width=120,height=1)
lblShow.pack()
easygui.msgbox('开始')
lblShow=Label(root,text='SCP基金会是一个收容异常事物的组织\n你是这个组织的一名普通职员\n你是site-19的一名研究员\n今天你负责值班SCP-049的收容室\n在一个普通又不普通的日情人节,你独自值着班',
width=120,height=5)
lblShow.pack()
easygui.msgbox('SCP基金会是一个收容异常事物的组织\n你是这个组织的一名普通职员\n你是site-19的一名研究员\n今天你负责值班SCP-049的收容室\n在一个普通又不普通的情人节,你的搭档过节去了,你独自值着班')
lblShow=Label(root,text='突然你听到铃响,出事了,SCP-049收容失效了!你需要立刻离开,向外面报告!!!',
width=120,height=1)
lblShow.pack()
easygui.msgbox('突然你听到铃响,出事了,SCP-049收容失效了!你需要立刻离开,向外面报告!!!')
xa=2
A=True
while True:
if xa==0 or xa==1:
break
elif xa ==2:
print(2)
text='你在工作桌前'
lblShow=Label(root,text=text,
width=120,height=1)
lblShow.pack()
x=easygui.buttonbox(text,
choices=['继续'])
xa=3
lblShow=Label(root,text=x,
width=120,height=1)
lblShow.pack()
print(3)
elif xa ==3:
text='桌上有一份文档与三级卡'
lblShow=Label(root,text=text,
width=120,height=1)
lblShow.pack()
x=easygui.buttonbox(text,
choices=['查看文档','拿走3级卡','离开'])
if x =='查看文档':
xa =9
print(9)
elif x =='拿走3级卡':
xa =24
print(24)
else:
xa =11
print(11)
lblShow=Label(root,text='你'+x,
width=120,height=1)
lblShow.pack()
elif xa ==4:
text='突然停电了,电梯在打开后停了'
lblShow=Label(root,text=text,
width=120,height=1)
lblShow.pack()
x=easygui.buttonbox(text,
choices=['出去','等待'])
if x=='出去':
xa =8
print(8)
else:
xa =13
print(13)
lblShow=Label(root,text=x,
width=120,height=1)
lblShow.pack()
elif xa ==5:
text='突然停电了\nps:紧急断电时电梯会打开并且停止运行'#
lblShow=Label(root,text=text,
width=120,height=2)
lblShow.pack()
easygui.msgbox('突然停电了\nps:紧急断电时电梯门会打开并且停止运行')
x=easygui.buttonbox('现在去',
choices=['收容室','储藏室','电力室','返回电梯'])
if x =='收容室':
xa =30
print(30)
elif x=='储藏室':
xa =15
print(15)
elif x=='电力室':
xa =16
print(16)
elif x=='返回电梯':
xa =22
print(22)
else:
print('抱歉')
lblShow=Label(root,text='你前往'+x,
width=120,height=1)
lblShow.pack()
elif xa ==6:
lblShow=Label(root,text='你把门关上了,现在.....',
width=120,height=1)
lblShow.pack()
x=easygui.buttonbox('开门',
choices=['开门'])
xa = 31
print(31)
lblShow=Label(root,text=x,
width=120,height=1)
lblShow.pack()
elif xa ==7:
lblShow=Label(root,text='你把门关上了,现在.....',
width=120,height=1)
lblShow.pack()
x=easygui.buttonbox('开门',
choices=['开门'])
lblShow=Label(root,text='电梯下降中......',
width=120,height=1)
x=easygui.buttonbox('出去',
choices=['出去'])
xa =4
print(4)
lblShow=Label(root,text=x,
width=120,height=1)
lblShow.pack()
elif xa ==8:
lblShow=Label(root,text='现在你根据记忆决定去往....',
width=120,height=1)
lblShow.pack()
x=easygui.buttonbox('开门',
choices=['储藏室','收容室','电力室','回电梯'])
if x==1:
xa=15
print(15)
elif x ==2:
xa =25
print(25)
elif x==3:
xa=14
print(14)
elif x==4:
xa =13
print(13)
else:
print('抱歉')
lblShow=Label(root,text='你在'+x,
width=120,height=1)
lblShow.pack()
elif xa ==9:
lblShow=Label(root,text='文档内容:\n项目编号:SCP-049\n项目等级:Euclid\n项目描述:SCP-049是一个19世纪鸟嘴医生衣着的人形个体.....',
width=120,height=5)
lblShow.pack()
easygui.msgbox('文档内容:\n项目编号:SCP-049\n项目等级:Euclid\n项目描述:SCP-049是一个19世纪鸟嘴医生衣着的人形个体.....')
easygui.msgbox('放下')
xa =3
lblShow=Label(root,text='你放下了文档',
width=120,height=1)
lblShow.pack()
elif xa ==10:
lblShow=Label(root,text='你到了电力室\n打开电源',
width=120,height=2)
lblShow.pack()
x=easygui.buttonbox('你到了电力室',
choices=['打开电源'])
xa =36
print(36)
elif xa ==11:
lblShow=Label(root,text='现在去....',
width=120,height=1)
lblShow.pack()
x=easygui.buttonbox('现在去....',
choices=['储藏室','收容室','电梯','电力室'])
if x =='储藏室':
xa =15
print(15)
elif x=='收容室':
xa =25
print(25)
elif x=='电梯':
xa=22
print(22)
elif x=='电力室':
xa=27
print(27)
else:
print('抱歉')
lblShow=Label(root,text=x,
width=120,height=1)
lblShow.pack()
elif xa ==12:
lblShow=Label(root,text='现在去....',
width=120,height=1)
lblShow.pack()
x=easygui.buttonbox('现在去....',
choices=['收容室','储藏室','电力室'])
if x =='收容室':
xa =26
print(26)
elif x=='储藏室':
xa =34
print(34)
elif x=='电力室':
xa =14
print(14)
else:
print('抱歉')
lblShow=Label(root,text=x,
width=120,height=1)
lblShow.pack()
elif xa ==13:
lblShow=Label(root,text='时间一分一秒的过去了,你听见了一阵脚步声\n查看',
width=120,height=2)
lblShow.pack()
x=easygui.buttonbox('时间一分一秒的过去了,你听见了一阵脚步声',
choices=['查看'])
xa=19
print(19)
elif xa ==14:
lblShow=Label(root,text='门有门禁\n离开',
width=120,height=2)
lblShow.pack()
x=easygui.buttonbox('门有门禁',
choices=['离开'])
xa=12
print(12)
elif xa ==15:
lblShow=Label(root,text='门打开的瞬间,你与SCP-049来了一个眼神交会\n逃跑',
width=120,height=2)
lblShow.pack()
x=easygui.buttonbox('门打开的瞬间,你与SCP-049来了一个眼神交会',
choices=['逃跑'])
xa=19
print(19)
elif xa ==16:
lblShow=Label(root,text='你来到电力室门口\n门口有门禁',
width=120,height=2)
lblShow.pack()
x=easygui.buttonbox('你来到电力室门口\n门口有门禁',
choices=['刷卡','离开'])
if x=='刷卡':
xa =31
print
elif x=='离开':
xa=13
print(13)
else:
print('抱歉')
lblShow=Label(root,text=x,
width=120,height=1)
lblShow.pack()
elif xa ==18:
lblShow=Label(root,text='收容室是空的\n继续',
width=120,height=2)
lblShow.pack()
easygui.msgbox('收容室是空的\n继续')
xa =30
print(30)
elif xa ==19:
#
text='"I have some good news and dad news for you."\nyou are die.\n你死于049的接触,你倒在了地上'
lblShow=Label(root,text=text,
width=120,height=3)
lblShow.pack()
easygui.msgbox(text)
print(0)
xa=0
A=0
elif xa ==20:
lblShow=Label(root,text='你碰到了SCP-049\n继续',
width=120,height=1)
lblShow.pack()
easygui.msgbox('你碰到了SCP-049\n继续')
xa =19
print(19)
elif xa ==21:
lblShow=Label(root,text='你进入了电梯\n上去',
width=120,height=2)
lblShow.pack()
easygui.msgbox('你进入了电梯\n上去')
xa=42
print(42)
elif xa ==22:
lblShow=Label(root,text='你向电梯走去....\n前方出现了一个身影\n继续',
width=120,height=3)
lblShow.pack()
easygui.msgbox('你向电梯走去....\n前方出现了一个身影\n继续')
xa =28
print(28)
elif xa ==24:
x=easygui.buttonbox('现在....',
choices=['查看文档','离开'])
if x=='查看文档':
xa=9
print(9)
lblShow=Label(root,text='你正在'+x,
width=120,height=1)
lblShow.pack()
easygui.msgbox('你正在'+x)
elif x=='离开':
xa =5
print(5)
lblShow=Label(root,text='你'+x,
width=120,height=1)
lblShow.pack()
easygui.msgbox('你'+x)
else:
print('抱歉')
elif xa ==25:
lblShow=Label(root,text='收容室门口躺着一具保安尸体\n现在.....',
width=120,height=2)
lblShow.pack()
x=easygui.buttonbox('收容室门口躺着一具保安尸体\n现在.....',
choices=['查看一旁的桌子','进入收容室'])
if x=='查看一旁的桌子':
xa =3
print(3)
elif x=='进入收容室':
xa=18
print(18)
else:
print('抱歉')
lblShow=Label(root,text=x,
width=120,height=1)
lblShow.pack()
elif xa ==26:
lblShow=Label(root,text='前方有一个身影',
width=120,height=2)
lblShow.pack()
x=easygui.buttonbox('前方有一个身影',
choices=['向前','离开'])
if x=='向前':
xa =19
print(19)
elif x=='离开':
xa=12
print(12)
else:
print('抱歉')
lblShow=Label(root,text=x,
width=120,height=2)
lblShow.pack()
elif xa ==27:
lblShow=Label(root,text='有门禁.....\n离开',
width=120,height=2)
lblShow.pack()
easygui.msgbox('有门禁.....\n离开')
xa=20
print(20)
elif xa ==28:
lblShow=Label(root,text='你看见你的脖子被扯断\nYou are die.\n你被SCP-049杀死',
width=120,height=4)
lblShow.pack()
easygui.msgbox('你看见你的脖子被扯断\nYou are die.\n你被SCP-049杀死')
xa=0
print(0)
A=0
elif xa ==29:
lblShow=Label(root,text='桌上有一张3级卡和一片纸片\n拿走3级卡',
width=120,height=2)
easygui.msgbox('桌上有一张3级卡和一片纸片\n拿走3级卡')
xa=17
print(17)
elif xa ==30:
lblShow=Label(root,text='储藏室的门打开了\nSCP049走了出来',
width=120,height=2)
lblShow.pack()
x=easygui.buttonbox('储藏室的门打开了\nSCP049走了出来',
choices=['逃往电梯','逃向电力室'])
if x=='逃往电梯':
xa=13
print(13)
elif x=='逃向电力室':
xa =41
print(41)
else:
print('抱歉')
lblShow=Label(root,text=x,
width=120,height=2)
lblShow.pack()
elif xa ==31:
lblShow=Label(root,text='你进入了电力室',
width=120,height=2)
lblShow.pack()
x=easygui.buttonbox('你进入了电力室',
choices=['关门','回复电力','离开'])
if x =='关门':
xa =6
print(6)
elif x=='回复电力':
print(32)
xa=32
elif x=='离开':
xa=40
print(40)
else:
print('抱歉')
lblShow=Label(root,text=x,
width=120,height=2)
lblShow.pack()
elif xa ==32:
lblShow=Label(root,text='有锁\n继续',
width=120,height=2)
lblShow.pack()
easygui.msgbox('有锁\n继续')
xa=31
print(31)
elif xa ==33:
lblShow=Label(root,text='你找到了一把钥匙',
width=120,height=2)
lblShow.pack()
x=easygui.buttonbox('你找到了一把钥匙\n现在......',
choices=['去电力室','去收容室','去电梯'])
if x=='去电力室':
xa=10
print(10)
elif x =='去收容室':
xa =28
print(28)
elif x =='去电梯':
xa=22
print(22)
else:
print('抱歉')
lblShow=Label(root,text=x,
width=120,height=2)
elif xa ==34:
lblShow=Label(root,text='你找到一把钥匙',
width=120,height=2)
x=easygui.buttonbox('你找到了一把钥匙\n现在......',
choices=['离开','拿走'])
if x=='离开':
xa =12
print(12)
elif x=='拿走':
xa=45
print(45)
else:
print('抱歉')
lblShow=Label(root,text=x,
width=120,height=2)
elif xa ==36:
lblShow=Label(root,text='电力恢复了,你听见了一阵脚步声',
width=120,height=2)
x=easygui.buttonbox('电力恢复了,你听见了一阵脚步声',
choices=['关门','离开'])
if x=='关门':
xa= 44
print(44)
elif x=='离开':
xa=20
print(20)
else:
print('抱歉')
lblShow=Label(root,text=x,
width=120,height=2)
elif xa ==38:
lblShow=Label(root,text='现在去....',
width=120,height=2)
x=easygui.buttonbox('现在去....',
choices=['去电梯','去收容室'])
if x=='去电梯':
xa=21
print(21)
elif x=='去收容室':
xa=43
print(43)
else:
print('抱歉')
lblShow=Label(root,text=x,
width=120,height=2)
elif xa ==40:
lblShow=Label(root,text=x,
width=120,height=2)
x=easygui.buttonbox('现在去....',
choices=['储藏室','收容室'])
if x=='储藏室':
xa=33
print(33)
elif x=='收容室':
xa=20
print(20)
else:
print('抱歉')
lblShow=Label(root,text=x,
width=120,height=2)
elif xa ==41:
lblShow=Label(root,text='门有门禁,没路了\n继续',
width=120,height=2)
easygui.msgbox('门有门禁,没路了\n继续')
xa=19
print(19)
elif xa ==42:
lblShow=Label(root,text='上升中....\n继续',
width=120,height=2)
easygui.msgbox('上升中....\n继续')
xa=46
print(46)
elif xa ==43:
lblShow=Label(root,text='SCP-049-2冒了出来\n继续',
width=120,height=2)
easygui.msgbox('SCP-049-2冒了出来\n继续')
xa=28
print(28)
elif xa ==44:
lblShow=Label(root,text='门关上来,然后.....\n出去',
width=120,height=2)
easygui.msgbox('门关上来,然后.....\n出去')
xa=38
print(38)
elif xa ==45:
lblShow=Label(root,text='现在去...',
width=120,height=2)
x=easygui.buttonbox('现在去...',
choices=['电力室','收容室'])
if x=='电力室':
xa=20
print(20)
elif x=='收容室':
xa=29
print(29)
else:
print('抱歉')
lblShow=Label(root,text=x,
width=120,height=1)
elif xa ==46:
lblShow=Label(root,text='叮。。到达....\n发射成功',
width=120,height=2)
easygui.msgbox('叮。。到达....\n发射成功')
xa =47
print(47)
elif xa ==47:
lblShow=Label(root,text='完成任务\n逃出生天',
width=120,height=2)
easygui.msgbox('完成任务\n达成结局:逃出生天')
xa =0
print(0)
else:
print('抱歉')
break