-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstatgen.html
181 lines (170 loc) · 8.06 KB
/
statgen.html
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!--
XML data was compiled by a reddit community for use with the "Fight Club 5" app.
Google "5e xml files" for more info.
Feel free to use, edit, and redistribute this as you wish.
I don't own any of the XML data anyway.
-->
<title>Statgen - 5etools</title>
<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" href="css/style.css">
<link rel="icon" href="favicon.png">
<script type="text/javascript" src="lib/js-cookie.js"></script>
<style id="dynamicStyle"></style> <!-- populated with JS -->
<script type="text/javascript" src="js/styleswitch.js"></script>
</head>
<body>
<header class="hidden-xs hidden-sm">
<div class="container">
<h1>Statgen</h1>
<p>Change method on the left, refer to method that appears on the right.</p>
</div>
</header>
<nav class="container">
<ul class="nav nav-pills ">
<li role="presentation"><a href="5etools.html">5eTools</a></li>
<li role="presentation"><a href="rules.html">Rules</a></li>
<li role="presentation" class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">Player Options <span class="caret"></span></a>
<ul class="dropdown-menu">
<li role="presentation"><a href="classes.html">Classes</a></li>
<li role="presentation"><a href="backgrounds.html">Backgrounds</a></li>
<li role="presentation"><a href="feats.html">Feats</a></li>
<li role="presentation"><a href="races.html">Races</a></li>
</ul>
</li>
<li role="presentation" class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">DM Tools <span class="caret"></span></a>
<ul class="dropdown-menu">
<li role="presentation"><a href="crcalculator.html">CR Calculator</a></li>
<li role="presentation"><a href="http://kobold.club" target="_blank" title="I could literally never build something better than Kobold Fight Club">Encounter Builder</a></li>
<li role="presentation"><a href="encountergen.html">Encounter Generator</a></li>
<li role="presentation"><a href="lootgen.html">Loot Generator</a></li>
</ul>
</li>
<li role="presentation" class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">References <span class="caret"></span></a>
<ul class="dropdown-menu">
<li role="presentation"><a href="bestiary.html">Bestiary</a></li>
<li role="presentation"><a href="conditions.html">Conditions</a></li>
<li role="presentation"><a href="cults.html">Cults</a></li>
<li role="presentation"><a href="items.html">Items</a></li>
<li role="presentation"><a href="rewards.html">Other Rewards</a></li>
<li role="presentation"><a href="psionics.html">Psionics</a></li>
<li role="presentation"><a href="spells.html">Spells</a></li>
<li role="presentation"><a href="variantrules.html">Variant Rules</a></li>
</ul>
</li>
<li role="presentation" class="active"><a href="statgen.html">Statgen</a></li>
<li role="presentation" class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">Utilities<span class="caret"></span></a>
<ul class="dropdown-menu">
<li role="presentation"><a href="converter.html">Stat Block to JSON</a></li>
<li role="presentation"><a href="editor.html">WYSIWYG Editor</a></li>
</ul>
</li>
<li role="presentation">
<a class="nightModeToggle" href="#" onclick="styleSwitcher.toggleActiveStyleSheet(); return false;"><script>document.write(styleSwitcher.getActiveStyleSheet() === StyleSwitcher.STYLE_DAY ? "Night Mode" : "Day Mode")</script></a>
</li>
</ul>
</nav>
<main class="container bodyContent">
<div class="row">
<div class="col-sm-3">
<nav>
<ul class="nav" id="rolltabs">
<li role="presentation"><a href="#rolled">Rolling</a></li>
<li role="presentation"><a href="#array">Array</a></li>
<li role="presentation"><a href="#pointbuy">Point Buy</a></li>
</ul>
</nav>
</div>
<div class="col-sm-9 statmethod" id="rolled">
<h3>Rolled Stats</h3>
<button type="button" id="rollbutton" class="btn btn-default">Roll Stats</button>
<h3 id="rolls">
</h3>
<p>Click the button to roll for your stats. 4d6 are rolled with the lowest of the set discarded. This is done for each ability score. Assign these numbers to your abilities as desired. As this is based on your browser's JavaScript random number generator,
it cannot be considered at all "truly" random, but for most purposes can be considered "random enough."</p>
</div>
<div class="col-sm-9 statmethod" id="array">
<h3>Standard Array</h3>
<h4>15, 14, 13, 12, 10, 8</h4>
<p>Assign these numbers to your abilities as desired.</p>
</div>
<div class="col-sm-9 statmethod" id="pointbuy">
<h3>Point Buy</h3>
<label>Budget: <input id="budget" type="number" min="10" value="27"></label>
<label>Remaining: <input id="remaining" type="number" min="10" value="27" readonly></label>
<table>
<tr><td></td><td>Base</td><td>Racial</td><td>Total</td><td>Mod</td><td class="choose"></td></tr>
<tr id="str">
<td>STR</td>
<td><input type="number" min="8" max="15" value="8" data-prev="8" class="base"></td>
<td><input type="number" class="racial" readonly></td>
<td><input type="number" readonly></td>
<td><input type="number" readonly></td>
<td><input type="checkbox" class="choose"></td>
</tr>
<tr id="dex">
<td>DEX</td>
<td><input type="number" min="8" max="15" value="8" data-prev="8" class="base"></td>
<td><input type="number" class="racial" readonly></td>
<td><input type="number" readonly></td>
<td><input type="number" readonly></td>
<td><input type="checkbox" class="choose"></td>
</tr>
<tr id="con">
<td>CON</td>
<td><input type="number" min="8" max="15" value="8" data-prev="8" class="base"></td>
<td><input type="number" class="racial" readonly></td>
<td><input type="number" readonly></td>
<td><input type="number" readonly></td>
<td><input type="checkbox" class="choose"></td>
</tr>
<tr id="int">
<td>INT</td>
<td><input type="number" min="8" max="15" value="8" data-prev="8" class="base"></td>
<td><input type="number" class="racial" readonly></td>
<td><input type="number" readonly></td>
<td><input type="number" readonly></td>
<td><input type="checkbox" class="choose"></td>
</tr>
<tr id="wis">
<td>WIS</td>
<td><input type="number" min="8" max="15" value="8" data-prev="8" class="base"></td>
<td><input type="number" class="racial" readonly></td>
<td><input type="number" readonly></td>
<td><input type="number" readonly></td>
<td><input type="checkbox" class="choose"></td>
</tr>
<tr id="cha">
<td>CHA</td>
<td><input type="number" min="8" max="15" value="8" data-prev="8" class="base"></td>
<td><input type="number" class="racial" readonly></td>
<td><input type="number" readonly></td>
<td><input type="number" readonly></td>
<td><input type="checkbox" class="choose"></td>
</tr>
</table>
<select id="race"></select>
<p id="choose"></p>
</div>
</div>
</main>
<!--
All the embedded crap.
Would load it in but I want this for offline use too
-->
<script type="text/javascript" src="js/utils.js"></script>
<script type="text/javascript" src="js/statgen.js"></script>
<script type="text/javascript" src="lib/droll.js"></script>
<script type="text/javascript" src="lib/jquery.js"></script>
<script type="text/javascript" src="lib/bootstrap.js"></script>
</body>
</html>