-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyy.py
104 lines (97 loc) · 3.71 KB
/
pyy.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
import math
import random
import sys
def Have(Command, Causess, Vara):
if Command == "Have":
print(f"You Have Enought {Vara} for {Causes} {Vara}")
def game():
a = input("N?")
playtime = 0+1
Money = 1
HP = 100
Job = ["Not Job"]
Jobs = 1
JobsAvailable = ["Waiter","Asistent"]
playtime = 1
while True:
if playtime == 1:
print("Hello Welcome to the RPG made By Swif use Rob to Rob and make Money or Heal To Heal Work is for work and employmemt is for getting a job type commands to play-,")
playtime += 1
continue
rc = input("Command To Run>")
if rc == "Rob":
r = random.randint(25,1001)
ch = random.randint(1,5)
if ch == 1:
Money += r
print(f"You Stole {r} DD Why did you steal")
playtime += 1
continue
else:
if ch == 2:
chh = random.randint(1,Money)
print(f"You Got Caught And Arrested You Loose {chh}")
if Money != 0:
Money -= chh
else:
if ch == 3:
print("You did not Gain Money")
else:
if ch == 4:
print(f"You Lost 20Health")
HP -= 10
else:
if ch == 5:
print("Someone Saw You And Wants You to Employ For His Company")
else:
if rc == "Heal":
if Money >= 10:
if HP != 100:
HP = 100
Money -= 10
print("Healed")
playtime += 1
continue
else:
print("Full Health Reached")
playtime += 1
continue
else:
if rc == "Money":
print(f"{Money} Dollar")
playtime += 1
continue
else:
if rc == "Employment":
print(JobsAvailable)
print("Select")
t = input("Select Job>")
if t == "Waiter":
print("You Have Been Hiered")
Job = ["Waiter"]
else:
if t == "Asistent":
print("You Have Been Hiered")
Job = ["Asistent"]
else:
if rc == "work":
if Job == ["Waiter"]:
print("You Worked And Gained 250$")
Money += 250
playtime += 1
continue
else:
if Job == ["Asistent"]:
print("You Worked And Got 250$")
Money += 250
playtime += 1
continue
else:
if Job == ["Not Job"]:
print("You Dont Have A Job Use Employment")
continue
else:
if rc == "exit":
sys.exit
exit()
game()