-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEchos-of-Eternity.py
97 lines (91 loc) · 3.07 KB
/
Echos-of-Eternity.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
#Echos of Eternity
#imports
import time
import os
import random
#constants
player_1 = {
"name": "player 1",
"state": None,
"level": 1,
"xp":0,
"money": 0,
"species": "",
"class": "",
#player stats
"strength": 0, "speed": 0,"health max":0, "health":0, "stamina max":0, "stamina":0, "mana max":0, "mana":0,
#inventory: {wpn name:[sprite/img/symbol], qty, dmg, price}
"inventory": {
"kratos": ['✠', 0, 0, 0],
"knights Sword": ['🗡', 0, 0, 0],
"biezelbub": ['⬤', 0, 0, 0],
"zues": ['ϟ', 0, 0, 0],
"andromeda":['❃', 0, 0, 0]
},
"equip": {
"weapon": "",
"moves": []
}
}
player_2 = {
"name": "player 2",
"state": None,
"level": 1,
"xp":0,
"money": 0,
"species": "",
"class": "",
#player stats
"strength": 0, "speed": 0,"health max":0, "health":0, "stamina max":0, "stamina":0, "mana max":0, "mana":0,
#inventory: {wpn name:[sprite/img/symbol], qty, dmg, price}, max size is 50
"inventory": {
"kratos": ['✠', 0, 0, 'God Slayer', 'Spinning Axe', 0],
"knights Sword": ['🗡', 0, 0, 'Dark Blade', 0],
"biezelbub": ['⬤', 0, 0, 0],
"zues": ['ϟ', 0, 0, 0],
"andromeda":['❃', 0, 0, 0]
},
"equip": {
"weapon": "",
"moves": []
}
}
active = player_1
other = player_2
def species_select(active):
global player_1, player_2
while active["species"] == "":
os.system('cls')
print("select the name of the species from the following: ")
print("1. Human \n2. Dragon \n3. Shifter \n4. Druid")
print("\nto veiw information about the species type 'info- <name of the species>'")
choice = input(">>>").strip().lower()
os.system('cls')
back = "this is a place holder"
if choice == "info- human":
print("lore will be added")
back = input("to go back to selecting your species, press enter or type 'yes'\n>>>>").strip().lower()
elif choice == "info- dragon":
print("lore will be added")
back = input("to go back to selecting your species, press enter or type 'yes'\n>>>>").strip().lower()
elif choice == "info- shifter":
print("lore will be added")
back = input("to go back to selecting your species, press enter or type 'yes'\n>>>>").strip().lower()
elif choice == "info- druid":
print("lore will be added")
back = input("to go back to selecting your species, press enter or type 'yes'\n>>>>").strip().lower()
if back == "" or back == "yes":
continue
else:
if choice not in ["human", "dragon", "shifter", "druid"]:
print("it seems that you didnt enter the name propely, please eneter it again correctly")
time.sleep(2)
continue
else:
active["species"] = choice
break
def menu(active):
#this is the starting menue
if active["species"] == "":
species_select(active)
menu(active)