-
Notifications
You must be signed in to change notification settings - Fork 56
/
Copy pathcharCreateCHEAT.py
66 lines (62 loc) · 2.05 KB
/
charCreateCHEAT.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
# Character creator program
skills = {"Strength":0, "Wisdom":0, "Health":0, "Dextarity":0}
points=int(30)
player=""
while player != "e":
print("Welcome to your character\n")
print("You have ",points," avaliable.")
print("1. Add points.")
print("2. Remove Points")
print("3. Show current status")
print("Type exit to quit")
print("------------------")
selection = input(">")
if selection == "1":
pts2 = 0
pts=int(input("how many points would you like to apply?"))
if pts > points:
pts = 0
print("ha, nice try")
else:
pts2=input("To what attribute would you like to apply? 1. Strength 2. Health 3. Dextarty, or 4. Wisdom?")
if pts2 == "1":
skills["Strength"] += pts
points -= pts
if pts2 == "2":
skills["Health"] += pts
points -= pts
if pts2 == "3":
skills["Dextarity"] += pts
points -= pts
if pts2 == "4":
skills["Wisdom"] += pts
points -= pts
if selection == "2":
rmv = int(input("How many points would you like back?"))
rmv2 = input("From where? 1. Strength 2. Health 3. Dextarty, or 4. Wisdom?")
if rmv2 == "1":
if rmv < skills["Strength"]:
skills["Strength"] -= rmv
points += rmv
else:
print("no")
if rmv2 == "2":
if rmv < skills["Health"]:
skills["Health"] -= rmv
points += rmv
else:
print("no")
if rmv2 == "3":
if rmv < skills[Dextarity]:
skills["Dextarity"] -= rmv
points += rmv
else:
print("No")
if rmv2 == "4":
if rmv < skills[Wisdom]:
skills["Wisdom"] -= rmv
points += rmv
else:
print("No")
if selection == "3":
print (skills)