This repository has been archived by the owner on Mar 11, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.pyw
99 lines (83 loc) · 4.22 KB
/
main.pyw
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
from tkinter import *
import random
'''
VERSION 1.1.3
CONTRIBUTORS:
-Vhou-Atroph
'''
#Lists
questTypes=['Low Rank','High Rank','Master Rank'] #I admit, World was my first Monster Hunter. I thought I would like the non-separated LR>HR>G format a lot better than jumping from Village to Hub, but I actually think Rise's quest system was a lot more fun! I miss investigations from World tho
lrMonsters=['Anjanath','Barroth','Diablos','Great Girros','Great Jagras','Jyuratodus','Kirin','Kulu-Ya-Ku','Legiana','Odogaron','Paolumu','Pukei-Pukei','Radobaan','Rathalos','Rathian','Tobi-Kadachi','Tzitzi-Ya-Ku']
hrMonsters=['Anjanath','Barroth','Diablos','Great Girros','Great Jagras','Jyuratodus','Kirin','Kulu-Ya-Ku','Legiana','Odogaron','Paolumu','Pukei-Pukei','Radobaan','Rathalos','Rathian','Tobi-Kadachi','Tzitzi-Ya-Ku',
#HR Exclusives:
'Ancient Leshen','Bazelgeuse','Behemoth','Deviljho','Black Diablos','Dodogama','Kulve Taroth','Kushala Daora','Lavasioth','Leshen','Lunastra','Nergigante','Azure Rathalos','Pink Rathian','Teostra','Uragaan','Vaal Hazak','Xeno\'Jiiva','Zorah Magdaros']
mrMonsters=['Anjanath','Barroth','Diablos','Great Girros','Great Jagras','Jyuratodus','Kirin','Kulu-Ya-Ku','Legiana','Odogaron','Paolumu','Pukei-Pukei','Radobaan','Rathalos','Rathian','Tobi-Kadachi','Tzitzi-Ya-Ku','Black Diablos','Dodogama','Kulve Taroth','Kushala Daora','Lavasioth','Lunastra','Azure Rathalos','Pink Rathian','Teostra','Uragaan',
#MR Exclusives:
'Alatreon','Fulgur Anjanath','Banbaro','Barioth','Frostfang Barioth','Seething Bazelgeuse','Beotodus','Brachydios','Raging Brachydios','Savage Deviljho','Fatalis','Glavenus','Acidic Glavenus','Shrieking Legiana','Namielle','Nargacuga','Ruiner Nergigante','Ebony Odogaron','Nightshade Paolumu','Coral Pukei-Pukei','Rajang','Furious Rajang','Silver Rathhalos','Gold Rathian','Safi\'Jiiva','Shara Ishvalda','Tigrex','Brute Tigrex','Viper Tobi-Kadachi','Blackveil Vaal Hazak','Velkhana','Yian Garuga','Scarred Yian Garuga','Zinogre','Stygian Zinogre']
weapons=['Hammer','Charge Blade','Greatsword','Hunting Horn','Longsword','Lance','Gunlance','Insect Glaive','Switch Axe','Dual Blades','Sword and Shield','Bow','Light Bowgun','Heavy Bowgun']
#Window
global window
window=Tk()
window.title("MHWorld: Random Hunt Chooser")
window.geometry('350x175')
window.resizable(0,0)
window.iconbitmap("icons/aptonoth.ico")
#Options
options=Frame(window) #Options feels like a better word than 'selections.'
questChoice=StringVar(window)
questChoice.set('Low Rank')
choose=OptionMenu(options,questChoice,*questTypes)
wep=IntVar(window)
wepCheck=Checkbutton(options, text="Random weapon", variable=wep, onvalue=1, offvalue=0)
rollBtn=Button(options,text="Roll Hunt")
#Chosen Hunt
results=Frame(options)
hunt=Label(results,font=('Arial',8,'bold'),width=20)
questMonster=Label(results,text="Your rolled hunt \nwill go here!")
wepLabel=Label(results,font=('Arial',8,'bold'),width=20)
wepRoll=Label(results)
#Monster Icons
defaultIcon=PhotoImage(file='icons/Unknown.png')
ico=Label(window,image=defaultIcon)
#Hunt Command
def rolltime():
if questChoice.get()=='Low Rank':
monster=random.choice(lrMonsters)
newIcon=PhotoImage(file='icons/'+monster+'.png')
ico.configure(image=newIcon)
ico.image=newIcon
hunt.configure(text="Low Rank:")
questMonster.configure(text=monster)
if questChoice.get()=='High Rank':
monster=random.choice(hrMonsters)
newIcon=PhotoImage(file='icons/'+monster+'.png')
ico.configure(image=newIcon)
ico.image=newIcon
hunt.configure(text="High Rank:")
questMonster.configure(text=monster)
if questChoice.get()=='Master Rank':
monster=random.choice(mrMonsters)
newIcon=PhotoImage(file='icons/'+monster+'.png')
ico.configure(image=newIcon)
ico.image=newIcon
hunt.configure(text="Master Rank:")
questMonster.configure(text=monster)
if wep.get()==1:
wepLabel.configure(text="Weapon:")
wepRoll.configure(text=random.choice(weapons))
else:
wepLabel.configure(text="")
wepRoll.configure(text="\n")
rollBtn.configure(command=rolltime)
#Pack
options.pack(pady=2,padx=2, side=LEFT)
choose.pack()
wepCheck.pack()
rollBtn.pack(pady=2)
results.pack()
hunt.pack()
questMonster.pack()
wepLabel.pack()
wepRoll.pack()
ico.pack(side=RIGHT)
window.mainloop()