-
Notifications
You must be signed in to change notification settings - Fork 0
/
dndMain.py
69 lines (57 loc) · 1.5 KB
/
dndMain.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
import sys
import random
import os
import dice
import character_load as loadChar
import create_character as create
def playWithCharacter():
characters = loadChar.loadCharacterSelect()
print(characters)
characterName = loadChar.characterSelectMenu(characters)
if characterName != None:
print(characterName)
else:
print("RETURNING TO MAIN MENU")
def createCharacter():
create.start()
def main():
print("+++++++++++++++++++++++++++++++")
print("-----WELCOME TO DND PLAYER-----")
print("+++++++++++++++++++++++++++++++")
print("-------------------------------")
print("+++++++++++++++++++++++++++++++")
print("")
print "shiiiiit"
mainMenu()
return
def mainMenu():
goodSelection = False
selection = ""
while goodSelection == False:
print("+++++++++++++++++++++++++++++++")
print("-----------MAIN MENU-----------")
print("+++++++++++++++++++++++++++++++")
print("1. CREATE CHARACTER (NOT DONE)")
print("2. PLAY WITH EXISTING CHARACTER (NOT DONE)")
print("3. EDIT CHARACTER (NOT DONE")
print("4. SIMPLE DICE ROLLER (NOT DONE)")
print("5. EXIT")
print("+++++++++++++++++++++++++++++++")
selection = input("ENTER NUMERIC COMMAND: ")
try:
command = int(selection)
if command == 1:
createCharacter()
elif command == 2:
playWithCharacter()
elif command == 3:
print("edit character")
elif command == 4:
dice.diceRoller()
elif command == 5:
print("exiting")
goodSelection = True
except:
goodSelection = False
if __name__ == '__main__':
main()