Check out the Pastebin Gadgets Shop. We have thousands of fun, geeky & affordable gadgets on sale :-)Want more features on Pastebin? Sign Up, it's FREE!

# Untitled

By: a guest on Nov 11th, 2012  |  syntax: Python  |  size: 6.51 KB  |  views: 678  |  expires: Never
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
1. import random
2. jonahint = random.randrange(1,21)+1
3. willint = random.randrange(1,21)+1
4. ianint = random.randrange(1,21)+2
5. benint = random.randrange(1,21)+3
6. liamint = random.randrange(1,21)+3
7.
8. howmany = input("how many monsters are there?")
9. if howmany == 1:
10.     mod1 = input("what is initiative mod for 1?")
11.     print "monster1:" + str(random.randrange(1,21)+mod1)
12. elif howmany == 2:
13.     mod1 = input("what is initiative mod for 1?")
14.     mod2 = input("what is initiative mod for 2?")
15.     print "monster1:" + str(random.randrange(1,21)+mod1)
16.     print "monster2:" + str(random.randrange(1,21)+mod2)
17. elif howmany == 3:
18.     mod1 = input("what is initiative mod for 1?")
19.     mod2 = input("what is initiative mod for 2?")
20.     mod3 = input("what is initiative mod for 3?")
21.     print "monster1:" + str(random.randrange(1,21)+mod1)
22.     print "monster2:" + str(random.randrange(1,21)+mod2)
23.     print "monster3:" + str(random.randrange(1,21)+mod3)
24. elif howmany == 4:
25.     mod1 = input("what is initiative mod for 1?")
26.     mod2 = input("what is initiative mod for 2?")
27.     mod3 = input("what is initiative mod for 3?")
28.     mod4 = input("what is initiative mod for 4?")
29.     print "monster1:" + str(random.randrange(1,21)+mod1)
30.     print "monster2:" + str(random.randrange(1,21)+mod2)
31.     print "monster3:" + str(random.randrange(1,21)+mod3)
32.     print "monster4:" + str(random.randrange(1,21)+mod4)
33. elif howmany == 5:
34.     mod1 = input("what is initiative mod for 1?")
35.     mod2 = input("what is initiative mod for 2?")
36.     mod3 = input("what is initiative mod for 3?")
37.     mod4 = input("what is initiative mod for 4?")
38.     mod5 = input("what is initiative mod for 5?")
39.     print "monster1:" + str(random.randrange(1,21)+mod1)
40.     print "monster2:" + str(random.randrange(1,21)+mod2)
41.     print "monster3:" + str(random.randrange(1,21)+mod3)
42.     print "monster4:" + str(random.randrange(1,21)+mod4)
43.     print "monster5:" + str(random.randrange(1,21)+mod5)
44. elif howmany == 6:
45.     mod1 = input("what is initiative mod for 1?")
46.     mod2 = input("what is initiative mod for 2?")
47.     mod3 = input("what is initiative mod for 3?")
48.     mod4 = input("what is initiative mod for 4?")
49.     mod5 = input("what is initiative mod for 5?")
50.     mod6 = input("what is initiative mod for 6?")
51.     print "monster1:" + str(random.randrange(1,21)+mod1)
52.     print "monster2:" + str(random.randrange(1,21)+mod2)
53.     print "monster3:" + str(random.randrange(1,21)+mod3)
54.     print "monster4:" + str(random.randrange(1,21)+mod4)
55.     print "monster5:" + str(random.randrange(1,21)+mod5)
56.     print "monster6:" + str(random.randrange(1,21)+mod6)
57. elif howmany == 7:
58.     mod1 = input("what is initiative mod for 1?")
59.     mod2 = input("what is initiative mod for 2?")
60.     mod3 = input("what is initiative mod for 3?")
61.     mod4 = input("what is initiative mod for 4?")
62.     mod5 = input("what is initiative mod for 5?")
63.     mod6 = input("what is initiative mod for 6?")
64.     mod7 = input("what is initiative mod for 7?")
65.     print "monster1:" + str(random.randrange(1,21)+mod1)
66.     print "monster2:" + str(random.randrange(1,21)+mod2)
67.     print "monster3:" + str(random.randrange(1,21)+mod3)
68.     print "monster4:" + str(random.randrange(1,21)+mod4)
69.     print "monster5:" + str(random.randrange(1,21)+mod5)
70.     print "monster6:" + str(random.randrange(1,21)+mod6)
71.     print "monster7:" + str(random.randrange(1,21)+mod7)
72. elif howmany == 8:
73.     mod1 = input("what is initiative mod for 1?")
74.     mod2 = input("what is initiative mod for 2?")
75.     mod3 = input("what is initiative mod for 3?")
76.     mod4 = input("what is initiative mod for 4?")
77.     mod5 = input("what is initiative mod for 5?")
78.     mod6 = input("what is initiative mod for 6?")
79.     mod7 = input("what is initiative mod for 7?")
80.     mod8 = input("what is initiative mod for 8?")
81.     print "monster1:" + str(random.randrange(1,21)+mod1)
82.     print "monster2:" + str(random.randrange(1,21)+mod2)
83.     print "monster3:" + str(random.randrange(1,21)+mod3)
84.     print "monster4:" + str(random.randrange(1,21)+mod4)
85.     print "monster5:" + str(random.randrange(1,21)+mod5)
86.     print "monster6:" + str(random.randrange(1,21)+mod6)
87.     print "monster7:" + str(random.randrange(1,21)+mod7)
88.     print "monster8:" + str(random.randrange(1,21)+mod8)
89. elif howmany == 9:
90.     mod1 = input("what is initiative mod for 1?")
91.     mod2 = input("what is initiative mod for 2?")
92.     mod3 = input("what is initiative mod for 3?")
93.     mod4 = input("what is initiative mod for 4?")
94.     mod5 = input("what is initiative mod for 5?")
95.     mod6 = input("what is initiative mod for 6?")
96.     mod7 = input("what is initiative mod for 7?")
97.     mod8 = input("what is initiative mod for 8?")
98.     mod9 = input("what is initiative mod for 9?")
99.     print "monster1:" + str(random.randrange(1,21)+mod1)
100.     print "monster2:" + str(random.randrange(1,21)+mod2)
101.     print "monster3:" + str(random.randrange(1,21)+mod3)
102.     print "monster4:" + str(random.randrange(1,21)+mod4)
103.     print "monster5:" + str(random.randrange(1,21)+mod5)
104.     print "monster6:" + str(random.randrange(1,21)+mod6)
105.     print "monster7:" + str(random.randrange(1,21)+mod7)
106.     print "monster8:" + str(random.randrange(1,21)+mod8)
107.     print "monster9:" + str(random.randrange(1,21)+mod9)
108. elif howmany == 10:
109.     mod1 = input("what is initiative mod for 1?")
110.     mod2 = input("what is initiative mod for 2?")
111.     mod3 = input("what is initiative mod for 3?")
112.     mod4 = input("what is initiative mod for 4?")
113.     mod5 = input("what is initiative mod for 5?")
114.     mod6 = input("what is initiative mod for 6?")
115.     mod7 = input("what is initiative mod for 7?")
116.     mod8 = input("what is initiative mod for 8?")
117.     mod9 = input("what is initiative mod for 9?")
118.     mod10 = input("what is initiative mod for 10?")
119.     print "monster1:" + str(random.randrange(1,21)+mod1)
120.     print "monster2:" + str(random.randrange(1,21)+mod2)
121.     print "monster3:" + str(random.randrange(1,21)+mod3)
122.     print "monster4:" + str(random.randrange(1,21)+mod4)
123.     print "monster5:" + str(random.randrange(1,21)+mod5)
124.     print "monster6:" + str(random.randrange(1,21)+mod6)
125.     print "monster7:" + str(random.randrange(1,21)+mod7)
126.     print "monster8:" + str(random.randrange(1,21)+mod8)
127.     print "monster9:" + str(random.randrange(1,21)+mod9)
128.     print "monster10:" + str(random.randrange(1,21)+mod10)
129. else
130.     print "This tool has no support for monster groups over 10"
131.
132. print "jonah:" + str(jonahint)
133. print "ben:" + str(benint)
134. print "will:" + str(willint)
135. print "ian:" + str(ianint)
136. print "liam:" + str(liamint)
clone this paste RAW Paste Data
Top