-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathwfrp-4th-edition-random-character.html
1957 lines (1922 loc) · 96.6 KB
/
wfrp-4th-edition-random-character.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
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<style>
th, td {
padding: 5px;
text-align: center;
}
th {
background-color: black;
color: white;
}
.custom-dialog {
display: none;
position: fixed;
z-index: 1;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.4);
}
.custom-dialog-content {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: white;
padding: 20px;
border-radius: 5px;
display: flex;
flex-direction: column;
gap: 10px;
max-height: 80%; /* Limits the height to 80% of the screen */
width: 50%; /* Adjust width as needed */
overflow-y: auto; /* Adds a scroll bar if content exceeds max-height */
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.custom-dialog-buttons {
display: flex;
justify-content: space-around;
margin-top: 10px;
}
.custom-dialog-buttons button {
background-color: #4caf50;
border: none;
color: white;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 14px;
width: 100px;
height: 30px;
line-height: 30px;
border-radius: 5px;
cursor: pointer;
}
.custom-dialog-buttons button:hover {
background-color: #45a049;
}
</style>
<head><title>WFRP 4th Edition Random character</title>
<script>
//<![CDATA[
function roll1d10(){
"use strict";
return Math.floor(Math.random() * 10) + 1;
}
function rollXd10(x) {
return Array.from({ length: x }, roll1d10).reduce((a, b) => a + b);
}
function roll2d10(){
"use strict";
return rollXd10(2);
}
function roll1d100(){
"use strict";
return Math.floor(Math.random() * 100) + 1;
}
function randPick(myArray) {
var l = myArray.length;
var i = Math.floor(Math.random() * l);
return myArray[i];
}
function createPDF () {
var sTable = document. getElementById ('characterPrint').innerHTML;
var style = "<style>";
style = style + "table {width: 100%;font: 17px Calibri;}";
style = style + "table, th, td {border: solid 1px #DDD; border-collapse: collapse;";
style = style + "padding: 2px 3px;text-align: center;}";
style = style + "</style>";
// CREATE A WINDOW OBJECT.
var win = window. open ('', '', 'height=700,width=700');
win.document.write('<html><head>');
win.document.write('<title>Profile</title>'); // <title> FOR PDF HEADER.
win.document.write(style); // ADD STYLE INSIDE THE HEAD TAG.
win.document.write('</head>');
win.document.write('<body>');
win.document.write(sTable); // THE TABLE CONTENTS INSIDE THE BODY TAG.
win.document.write('</body></html>');
win.document. close (); // CLOSE THE CURRENT WINDOW.
win. print (); // PRINT THE CONTENTS.
}
async function showCustomDialog(message, buttonLabels = ['Yes', 'No']) {
return new Promise((resolve) => {
const customDialog = document.getElementById('customDialog');
const customDialogText = document.getElementById('customDialogText');
const customDialogButtons = document.getElementById('customDialogButtons');
customDialogText.textContent = message;
// Clear existing buttons and add new ones
customDialogButtons.innerHTML = '';
buttonLabels.forEach((label, index) => {
const button = document.createElement('button');
button.textContent = label;
button.onclick = () => {
customDialog.style.display = 'none';
resolve(index);
};
customDialogButtons.appendChild(button);
});
customDialog.style.display = 'block';
});
}
async function showSelectionDialog(options, title) {
return new Promise((resolve) => {
const dialog = document.getElementById('selectionDialog');
const form = document.getElementById('selectionForm');
const submitButton = document.getElementById('selectionDialogSubmit');
const titleElement = document.getElementById('selectionDialogTitle');
// Set the dialog title dynamically
titleElement.textContent = title;
// Clear the form and add radio buttons for the given options
form.innerHTML = '';
options.forEach((option, index) => {
const radioButton = document.createElement('input');
radioButton.type = 'radio';
radioButton.name = 'selection';
radioButton.value = index;
radioButton.id = `selection${index}`;
const label = document.createElement('label');
label.htmlFor = `selection${index}`;
label.textContent = option;
form.appendChild(radioButton);
form.appendChild(label);
form.appendChild(document.createElement('br'));
});
// Select the first radio button by default
if (form.elements.length > 0) {
form.elements[0].checked = true;
}
submitButton.onclick = () => {
dialog.style.display = 'none';
const selectedIndex = parseInt(form.elements['selection'].value, 10);
resolve(selectedIndex);
};
dialog.style.display = 'block';
});
}
// ["WS","BS","S","T","I","AG","DEX","INT","WP","FEL","M","W"];
const StatsName = ["WS","BS","S","T","Ag","I","Dex","Int","WP","Fel"];
const StatsBonusName = ["WSB","BSB","SB","TB","AgB","IB","DexB","IntB","WPB","FelB"];
const ST_WS = 0;
const ST_BS = 1;
const ST_S = 2;
const ST_T = 3;
const ST_I = 4;
const ST_AG = 5;
const ST_DEX = 6;
const ST_INT = 7;
const ST_WP = 8;
const ST_FEL = 9;
const ST_M = 10;
const ST_W = 11;
async function generateChar(SpeciesChoice) {
"use strict";
var Name = "";
var NameTxt = "";
var extraXP = parseInt(document.getElementById("extraXPInput").value) || 0; // Get extra XP value, default to 0 if empty or invalid
var xp = 0;
xp += extraXP; // Add the extra XP to the total XP
var xpSpend = 0;
var XpTxt = "";
var SpeciesTxt ="";
var SpeciesN;
var SpeciesAll = ["Human","Dwarf","Halfling","High Elf","Wood Elf","Gnome"];
var Sex = 0;
var NamesHumanMale = ["Armin", "Adolf", "Adolphus", "Albrecht", "Alexander", "Aldred", "Alfred",
"Anders", "Anton", "Axel", "Bernard", "Bernd", "Bert", "Boris", "Bruno",
"Chedwic", "Christian", "Christoph", "Claus", "Clemons", "Conrad", "Konrad",
"Dahlbert", "Detlef", "Dieter", "Dirk", "Erberhardt", "Erik", "Erich",
"Ernst", "Erwin", "Erzbet", "Felix", "Franz", "Friedrich", "Fredrick",
"Fritz", "Georg", "Gerd", "Gotz", "Gregor", "Gunter", "Gunther", "Gustav",
"Hannes", "Hans", "Hanzi", "Heiner", "Heinrich", "Heinz", "Hieronymus",
"Helmut", "Henri", "Holger", "Ingo", "Jens", "Joachim", "Johann", "Johannes",
"Jonas", "Jorg", "Josef", "Jurgen", "Kaster", "Karl", "Klaus", "Knud",
"Konrad", "Kurt", "Lou", "Luitpold", "Manfred", "Marius", "Max (Maximilian)",
"Mathieu", "Matthias", "Mikhail", "Mortmore", "Nathaniel", "Nicholas",
"Nicholaus", "Nikolaus", "Norbert", "Oswald", "Otto", "Paulus", "Peter",
"Rainer", "Reiner", "Rolf", "Rudger", "Rudolf", "Rudolph", "Ruy", "Sepp",
"Siegfried", "Stefan", "Sven", "Thadius", "Theodor", "Udo", "Ulrich", "Ulrike",
"Volker", "Werner", "Wiesel", "Wilhelm", "Wim", "Wolf", "Wolfgang", "Adalbert",
"Adam", "Adolf", "Adolphus", "Albert", "Albrecht", "Aldred", "Alexander",
"Axel", "Alfons", "Alfred", "Alois", "Aloisius", "Andreas", "Anders", "Anton",
"Antonius", "Armin", "Arnold", "Arthur", "August", "Augustus", "Balthasar",
"Benedikt", "Bernhard", "Benno", "Bernd", "Berthold", "Bartolomeus", "Bertram",
"Bonifatius", "Clemens", "Cyrilus", "Daniel", "David", "Detlef", "Dettel",
"Dieter", "Dieterich", "Dirk", "Eberhard", "Edgar", "Edler", "Edmund", "Eduard",
"Ede", "Egolf", "Egon", "Eitel", "Elmar", "Elmer", "Emil", "Emilius", "Erhard",
"Erich", "Erik", "Ernst", "Erwin", "Eugen", "Fabian", "Felix", "Ferdinand",
"Ferdl", "Florian", "Frank", "Franz", "Francius", "Friedrich", "Frieder",
"Fritz", "Gabriel", "Georg", "Gerhard", "Gerd", "Götz", "Gregor", "Gunter",
"Gustav", "Gustavus", "Harald", "Heinrich", "Heiner", "Heinz", "Herbert",
"Heribert", "Hermann", "Arminius", "Hieronymus", "Holger", "Hubert", "Hugo",
"Ignaz", "Ignatius", "Isidor", "Jakob", "Jacobus", "Joachim", "Achim", "Jochen",
"Johannes", "Hans", "Hannes", "Jonas", "Jonathan", "Jorg", "Josef", "Josephus",
"Sepp", "Julius", "Jurgen", "Karl", "Carolus", "Kasimir", "Kaster", "Castor",
"Kaspar", "Kasper", "Caspar", "Knut", "Konrad", "Conrad", "Konz", "Konstantin",
"Kurt", "Laurenz", "Lorenz", "Laurentius", "Leonhard", "Leo", "Ludwig",
"Lodeweik", "Luitpold", "Lutz", "Manfred", "Marius", "Markus", "Martin",
"Mathias", "Mattheus", "Maximilian", "Max", "Melchior", "Michael", "Michel",
"Moritz", "Nathan", "Nikolaus", "Niklas", "Klaus", "Norbert", "Olaf", "Oskar",
"Oswald", "Otto", "Paul", "Paulus", "Peter", "Petrus", "Philipp", "Philippus",
"Pius", "Raimund", "Reimund", "Rainer", "Reiner", "Richard", "Robert", "Bert",
"Roland", "Rudiger", "Rudger", "Roger", "Rudolf", "Rolf", "Rudi", "Ruprecht",
"Rupert", "Samuel", "Siegfried", "Silvester", "Simon", "Stefan", "Stephan",
"Steffen", "Sven", "Thadeus", "Theodor", "Theo", "Thomas", "Timotheus",
"Titus", "Tobias", "Udo", "Ulrich", "Valentin", "Veit", "Viktor", "Volkmar",
"Volker", "Walter", "Wendel", "Werner", "Wolfgang", "Wolf", "Wilhelm", "Wili",
"Zacharias"];
var NamesDwarfMale = ["Adrik","Alberich","Baern","Barendd", "Brouor", "Bruenor",
"Dain", "Darrak", "Delg", "Eberk", "Einkil", "Fargrim", "Flint", "Gardain",
"Harbek", "Kildrak", "Morgran", "Orsik", "Oskar", "Rangrim", "Rurik", "Taklinn",
"Thoradin", "Thorin", "Tordek", "Traubon", "Travok", "Ulfgar", "Veit", "Vondal",
"Alrik", "Bronda", "Dimzad", "Fenna", "Gottri", "Gudrun", "Snorri"];
var NamesHalflingMale = ["Alton","Ander","Cade","Corrin", "Eldon", "Errich,",
"Finnan", "Garret", "Lindal", "Lyle", "Merrie", "Milo", "Osborn", "Perrin",
"Reed", "Roscoe", "Wellby", "Ferdinand", "Heironymus", "Maximillian",
"Theodosius"];
var NamesElfMale = ["Adran", "Aelar", "Aramil", "Arannis", "Aust", "Beiro",
"Berrian", "Carrie", "Enialis", "Erdan", "Erevan", "Galinndan", "Hadarai",
"Heian", "Himo", "Immeral", "Ivellios", "Laucian", "Mindartis", "Paelias",
"Peren", "Quarion", "Riardol", "Rolen", "Soveliss", "Thamior", "Tharivol",
"Theren", "Varis"];
var NamesGnomeMale = ["Breward", "Daveth", "Gwinear", "Mawnan", "Meriasek", "Nivet",
"Talan", "Ytel"];
var NamesHumanFemale = ["Andrea", "Angelika", "Anita", "Anna-Lise", "Astrid", "Brigid", "Brigitte",
"Camilla", "Celeste", "Charlotte", "Christa", "Christiane", "Clementine",
"Cordula", "Daniele", "Doris", "Eva", "Edda", "Edith", "Elga", "Elisabeth",
"Elixabet", "Ellen", "Etti", "Frances", "Frieda", "Gabriel e", "Gaby", "Gerd",
"Gertrud", "Gisela", "Gloria", "Hanna", "Hanni", "Hannelore", "Heidi", "Helena",
"Helene", "Helga", "Helke", "Helma", "Henriette", "Ingrid", "Karin", "Karina",
"Katharina", "Kathe", "Katrin", "Julianne", "Lena", "Lile", "Lilian", "Lisa",
"Liv", "Magdalene", "Margret", "Margarethe", "Magrit", "Maria", "Mariann",
"Marianne", "Marlene", "Marthe", "Mel ory", "Monika", "Nadja", "Nastassja",
"Natja", "Oliva", "Rena", "Rosa", "Ruth", "Sybil e", "Tatjana", "Uli", "Ursula",
"Vera", "Veronika", "Winifred", "Yella", "Yvette", "Dagmar", "Adelheid",
"Heide", "Agathe", "Agatha", "Agnes", "Alexandra", "Alexa", "Alix", "Andrea",
"Angelika", "Anna", "Anne", "Anneliese", "Annette", "Antonia", "Augusta",
"Beata", "Beate", "Bertha", "Berthe", "Brigitte", "Gitte", "Britta", "Cacilie",
"Camila", "Carola", "Karola", "Charlotte", "Lotte", "Claudia", "Clementine",
"Cordula", "Cornelia", "Kornelia", "Daniela", "Dora", "Doris", "Dorothea",
"Edda", "Edith", "Eleonore", "Elisabeth", "Elsbeth", "Elsa", "Lisbeth", "Elke",
"Elen", "Else", "Elvira", "Emilie", "Emilia", "Erika", "Esther", "Eugenie",
"Eva", "Felicitas", "Franka", "Franza", "Franziska", "Franzi", "Frieda",
"Friederike", "Gabriele", "Gerda", "Gertraud", "Gertraut", "Gertrude",
"Gisela", "Gloria", "Hanna", "Hannelore", "Hedwig", "Helene", "Helena",
"Helga", "Helma", "Henriette", "Hildegard", "Hilde", "Ida", "Ilse", "Ina",
"Ingrid", "Isabela", "Isadora", "Isolde", "Johanna", "Josephine", "Judith",
"Jutta", "Juliane", "Julia", "Karin", "Karla", "Karoline", "Katharina", "Kathe",
"Kathrin", "Leonore", "Liliane", "Lore", "Luise", "Luzia", "Magda",
"Magdalene", "Lene", "Lena", "Margarete", "Margareta", "Gretel", "Margit",
"Margot", "Marie", "Marianne", "Marion", "Marlene", "Martha", "Marthe",
"Mathilde", "Michaela", "Monika", "Nadja", "Ottilie", "Paula", "Petra",
"Rebekka", "Regina", "Regine", "Renate", "Renata", "Rikarda", "Rosa", "Ruth",
"Sabine", "Sibyle", "Silvia", "Sophie", "Stefanie", "Stephanie", "Susanne",
"Susanna", "Therese", "Ulrike", "Ursula", "Ursel", "Valentina", "Verena",
"Vera", "Veronika", "Viktoria", "Wilhelmine", "Winifred"];
var NamesDwarfFemale = ["Amber", "Artin", "Audhild", "Bardryn", "Dagnal",
"Diesa", "Eldeth", "Falkrunn", "Finellen", "Gunnloda", "Gurdis", "Helja",
"Hlin", "Kathra", "Kristryd", "Hilde", "Liftrasa", "Mardred", "Riswynn",
"Sannl", "Torbera", "Torgga", "Vistra"];
var NamesHalflingFemale = ["Andry", "Bree", "Callie", "Cora", "Euphemia", "Jillian", "Kithri", "Lavinia",
"Lidda", "Meda", "Nedda", "Paela", "Portia", "Seraphina", "Shaena", "Trym",
"Vani", "Verna", "Antoniella", "Esmerelda", "Thomasina"];
var NamesElfFemale = ["Adrie", "Althaea", "Anastrianna,", "Andraste", "Antinua",
"Bethrynna", "Birel", "Caelynn,", "Drusilia", "Enna", "Felosial", "Ielenia",
"Jelenneth", "Keyleth", "Leshanna", "Lia", "Meriele", "Mialee", "Naivara",
"Quelenna", "Quillathe", "Sariel", "Shanairra", "Shava", "Silaqui",
"Theirastra", "Thia", "Vadania", "Valanthe", "Xanaphia"];
var NamesGnomeFemale = ["Elowen", "Ia", "Kerra", "Ladoca", "Metheven", "Morren",
"Steren", "Tryfena"];
var NamesAllMale = [ NamesHumanMale, NamesDwarfMale, NamesHalflingMale,
NamesElfMale, NamesElfMale, NamesGnomeMale];
var NamesAllFemale = [ NamesHumanFemale, NamesDwarfFemale, NamesHalflingFemale,
NamesElfFemale, NamesElfFemale, NamesGnomeFemale];
var NamesAll = [NamesAllMale, NamesAllFemale];
var SurnamesHuman = ["Abel", "Abend", "Abendrot", "Achenbach", "Ackermann", "Adler", "Albers",
"Alendorf", "Alsheimer", "Alt", "Arndt", "Aschendorf", "Baer", "Baumann",
"Berger", "Biedenkopf", "Blacher", "Blech", "Blum", "Bockenheim", "Bohm",
"Bohne", "Bohnen", "Bol", "Bormann", "Bornheim", "Brandauer", "Brahms",
"Bratsch", "Braun", "Bremer", "Bruck", "Brunkhorst", "Brustelin", "Buchwald",
"Carow", "Castel", "Clausewitz", "Clemm", "Cloos", "Delschaft", "Dickopf",
"Dietrich", "Diffring", "Dissel", "Dornbusch", "Dreckspatz", "Dabisch", "Damm",
"Datz", "Daube", "Denker", "Diestelmeyer", "Dippel", "Dirnbach", "Dolinger",
"Donner", "Dreyer", "Duster", "Dastein", "Eberlein", "Ebert", "Eckstein",
"Edel", "Eibl", "Eifer", "Eiferer", "Eigenbrot", "Eckmann", "Emmel", "Engels",
"Ensslin", "Erbach", "Eschenheim", "Fabel", "Faler", "Fassbinder", "Fassnacht",
"Feder", "Feiler", "Feldmann", "Feuerbach", "Feyerabend", "Fischer",
"Fleischer", "Frei", "Freihof", "Fritsch", "Fuchs", "Ganz", "Gehweiler",
"Geissler", "Gickel", "Glaubrecht", "Goetz", "Goldstein", "Gottschalk",
"Grau", "Grasser", "Griem", "Grobschnitt", "Gronemeyer", "Gschwendtner",
"Guhne", "Gunzberg", "Gutmann", "Haak", "Hack", "Harnisch", "Hartwig",
"Hasen", "Hasener", "Hassel", "Heinemann", "Helfrich", "Hermann", "Hinfalig",
"Hintz", "Hockschwarzer", "Hofbauer", "Hoffmann", "Hoger", "Holzkrug", "Holt",
"Horn", "Jaeger", "Jackel", "Junghans", "Kahl", "Kannicher", "Kant", "Karge",
"Kaufmann", "Keler", "Keush", "Keilgeld", "Kier", "Klammer", "Kleist", "Kluge",
"Knopp", "Kochel", "Kohl", "Konigs", "Kopp", "Korff", "Korte", "Kortner",
"Krauss", "Kreuzer", "Kroetz", "Kronenhof", "Kruck", "Krug", "Kruger", "Kummer",
"Ladengast", "Lang", "Langen", "Laubrich", "Lauschen", "Leinweber", "Leipnitz",
"Lenz", "Lesch", "Liebenfels", "Lochner", "Lommel", "Lupenrein", "Mack",
"Macken", "Magen", "Maier", "Mankau", "Manzel", "Marx", "Mattes", "Meier",
"Melinger", "Messner", "Moseke", "Moos", "Moser", "Muler", "Murnau", "Nagel",
"Nass", "Neubauer", "Nieden", "Nol", "Nutzniesser", "Oberlander", "Offen",
"Olbricht", "Oldenhaler", "Osten", "Otterbach", "Pabst", "Palenberg", "Panke",
"Patzer", "Peilstock", "Pfeffer", "Plotz", "Pommer", "Praunheim", "Raab",
"Rabeneck", "Radmacher", "Reich", "Reitsmann", "Reitz", "Reusse", "Rommel",
"Rotlander", "Rudiger", "Rupp", "Sagebrecht", "Sander", "Sauber", "Schaden",
"Schaake", "Schauble", "Schenk", "Scheydt", "Schnel", "Schondorff", "Schubert",
"Schmidt", "Schwanenheim", "Semmelrogge", "Sierck", "Silber", "Sinkel",
"Speilhalter", "Steinhoff", "Stratz", "Stumpfnase", "Tauber", "Tetzel",
"Tiele", "Tietmeyer", "Tischer", "Trapp", "Treuer", "Trommler", "Ulmann",
"Uebele", "Ulbricht", "Unverzagt", "Unzeit", "Veigl", "Vieweg", "Viertel",
"Vocken", "Vogel", "Vogler", "Wagner", "Weinrich", "Weizsacker", "Wennemann",
"Wegener", "Weyrauch", "Wiene", "Winkler", "Winterstein", "Witzen",
"Wolkenstein", "Zech", "Zieren", "Zimmermann", "Zischer", "Zopf", "Zweifel",
"Klauen", "Karge", "Shcatten", "Mittel", "Drakens", "Grau", "Axtschlagpass",
"Gross", "Reik", "Meut", "Niderreik", "Dunkelfeuerpass", "Schwarz", "Duster",
"Dach", "Welten"];
var SurnamesDwarf = ["Balderk", "Battlehammer", "Brawnanvil", "Dankil", "Fireforge", "Frostbeard",
"Gorunn", "Holderhek", "Ironfist", "Loderr", "Lutgehr", "Rumnaheim",
"Strakelin", "Torunn", "Ungart", "Baragraz", "Durak", "Galazil", "Gnoldok",
"Nazril", "Okri", "Ardrungan", "Bryntok", "Gazani", "Gromheld", "Harrazlings",
"Unboki", "Dokkintroll", "Ganvalgger", "Kvitang", "Thrungtak", "Wyrgrinti",
"Zankonk"];
var SurnamesHalfling = ["Brushgather","Goodbarrel","Greenbottle","High-hill",
"Hilltopple", "Leagallow", "Tealeaf", "Thorngage", "Tosscobble", "Underbough",
"Ashfield", "Brandysnap", "Hayfoot", "Rumster", "Shortbottom", "Thorncobble"];
var SurnamesElf = ["Amakiir(Gemflower)","Amastacia(Starflower)",
"Galanodel(Moonwhisper)","Holimion(Diamonddew)", "Ilphelkiir(Gemblossom)",
"Liadon(Silverfrond)", "Meliamne(Oakenheel)", "Natlo(Nightbreeze)",
"Siannodel(Moonbrook)", "Xiloscient(Goldpetal)", "Emberfell", "Fireborn",
"Foamheart", "Goldenhair", "Silverspray", "Spellsign", "Fleetriver",
"Shadowstalker", "Treeshaper", "Weavewatcher", "Willowlimb", "Windrunner"];
var SurnamesGnome = ["annearil", "Fraine", "Hawken", "Landweth", "Peddlar", "Scantleburn",
"Thorne", "Trethewey"];
var SurnamesAll = [ SurnamesHuman, SurnamesDwarf, SurnamesHalfling, SurnamesElf, SurnamesElf, SurnamesGnome];
var SurnameSuffixHumanNoble = ["burg","berg","stein","stock","wald"];
var SurnameSuffixDwarvenMale = ["sson","sson","sson","snev"];
var SurnameSuffixDwarvenFemale = ["sdottir","sdottir","sdottir","sniz"];
var SurnameSuffixDwarvenAll = [SurnameSuffixDwarvenMale, SurnameSuffixDwarvenFemale];
var ClassN;
var ClassAll = ["Academic","Burgher","Courtier","Peasant","Ranger","Riverfolk",
"Rogue","Warrior"];
var CareerN;
var CareerName;
var CareerAll = ["Apothecary","Engineer","Lawyer","Nun",
"Physician","Priest","Scholar","Wizard",
"Agitator","Artisan","Beggar","Investigator",
"Merchant","Rat Catcher","Townsman","Watchman",
"Advisor","Artist","Duellist","Envoy",
"Noble","Servant","Spy","Warden",
"Bailiff","Hedge Witch","Herbalist","Hunter",
"Miner","Mystic","Scout","Villager",
"Bounty Hunter","Coachman","Entertainer","Flagellant",
"Messenger","Pedlar","Roadwarden","Witch Hunter",
"Boatman","Huffer","Riverwoman","Riverwarden",
"Seaman","Smuggler","Stevedore","Wrecker",
"Bawd","Charlatan","Fence","Grave Robber",
"Outlaw","Racketeer","Thief","Witch",
"Cavalryman","Guard","Knight","Pit Fighter",
"Protagonist","Soldier","Troll Slayer","Warrior Priest"];
var CareerHuman = [1,2,3,5,6,11,13,14,15,17,19,20,21,23,26,27,28,29,30,31,32,35,
36,37,38,39,40,42,43,44,45,50,51,52,54,56,57,58,59,60,62,63,66,68,70,71,73,74,
76,77,78,79,83,86,87,88,90,92,93,94,95,99,-1,100];
var CareerDwarf = [1,4,6,-1,7,-1,9,-1,11,17,18,20,25,-1,31,34,36,37,38,40,41,42,
43,45,47,-1,-1,49,54,-1,55,56,60,61,63,-1,65,67,-1,-1,69,70,72,-1,73,75,77,78,
-1,-1,79,-1,82,83,84,-1,-1,87,-1,90,93,96,100,-1];
var CareerHalfling = [1,2,4,-1,6,-1,8,-1,10,15,19,21,25,28,31,33,34,36,-1,37,-1,
43,44,46,47,-1,50,52,53,-1,54,57,58,60,63,-1,65,67,68,-1,69,70,73,74,75,79,84,-1,
85,86,87,88,89,93,94,-1,-1,96,-1,97,-1,100,-1,-1];
var CareerHElf = [2,-1,6,-1,8,-1,12,16,-1,19,-1,21,26,-1,28,29,31,32,34,37,40,-1,
43,45,-1,-1,47,50,-1,-1,56,-1,59,-1,62,-1,63,-1,-1,-1,64,-1,-1,-1,79,80,-1,-1,
82,85,-1,-1,88,-1,-1,-1,92,94,95,97,98,100,-1,-1];
var CareerWElf = [-1,-1,-1,-1,-1,-1,1,5,-1,10,-1,-1,-1,-1,-1,-1,14,18,-1,25,31,
-1,35,-1,-1,-1,42,53,-1,57,68,-1,70,-1,78,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
79,-1,-1,-1,-1,85,-1,-1,-1,90,92,94,96,-1,100,-1,-1];
var CareerGnome = [
1,-1,2,-1,4,5,7,14,
15,17,18,19,21,22,28,29,
30,31,-1,32,33,35,40,42,
43,-1,44,46,54,-1,58,62,
63,-1,68,-1,69,75,-1,-1,
76,-1,80,-1,-1,83,-1,-1,
85,90,91,-1,92,94,98,-1,
-1,99,-1,-1,-1,100,-1,-1];
var CareerSpeciesAll = [CareerHuman, CareerDwarf, CareerHalfling, CareerHElf, CareerWElf, CareerGnome];
var CareerSpecies = [];
var CareerTxt ="";
var CareerAdvance = [ [3,6,7],[1,6,7],[5,6,7],[6,7,9],
[6,7,8],[3,4,8],[3,7,8],[0,7,8],
[1,7,9],[2,3,6],[3,4,9],[5,4,7],
[4,8,9],[0,1,8],[4,7,9],[0,2,9],
[3,5,4],[2,5,6],[0,5,4],[3,4,9],
[0,5,6],[2,3,4],[4,8,9],[2,3,8],
[0,5,8],[3,5,6],[3,5,4],[2,3,6],
[2,3,8],[5,6,9],[3,5,4],[2,3,4],
[0,3,4],[1,3,8],[4,6,9],[0,2,3],
[3,5,4],[3,6,8],[1,3,5],[3,5,8],
[2,3,4],[0,3,5],[3,4,6],[1,2,9],
[4,6,9],[4,6,8],[0,3,5],[0,2,5],
[4,6,9],[5,4,9],[5,4,9],[2,5,8],
[0,2,3],[5,4,8],[0,2,3],[0,3,8],
[0,2,4],[0,3,4],[2,5,4],[0,2,3],
[2,3,4],[0,2,8],[0,3,8],[0,8,9]
];
var CareerSocial = ["Brass 3","Brass 4","Brass 4","Brass 1",
"Brass 4","Brass 2","Brass 3","Brass 3",
"Brass 1","Brass 2","Brass 0","Silver 1",
"Silver 2","Brass 2","Silver 1","Brass 3",
"Silver 2","Silver 1","Silver 3","Silver 2",
"Gold 1","Silver 1","Brass 3","Silver 1",
"Silver 1","Brass 1","Brass 2","Brass 2",
"Brass 2","Brass 1","Brass 3","Brass 2",
"Silver 1","Silver 1","Brass 3","Brass 0",
"Brass 3","Brass 1","Brass 5","Silver 1",
"Silver 1","Brass 4","Brass 2","Silver 1",
"Silver 1","Brass 2","Brass 3","Brass 2",
"Brass 1","Brass 3","Silver 1","Brass 2",
"Brass 1","Brass 1","Brass 3","Brass 1",
"Silver 2","Silver 1","Silver 3","Brass 4",
"Brass 2","Brass 2","Silver 1","Brass 2"];
var StatsTxt = "";
var StatsR = [0,0,0,0,0,0,0,0,0,0];
var StatsHuman = [20,20,20,20,20,20,20,20,20,20,20];
var StatsDwarf = [30,20,20,30,10,20,30,20,40,10];
var StatsHalfling = [10,30,10,20,20,20,30,20,30,30];
var StatsHElf = [30,30,20,20,30,40,30,30,30,20];
var StatsWElf = [30,30,20,20,30,40,30,30,30,20];
var StatsGnome = [20,10,10,15,30,30,30,30,40,15];
var StatsAll = [StatsHuman, StatsDwarf, StatsHalfling, StatsHElf, StatsWElf, StatsGnome];
var StatsCareer = [0,0,0,0,0,0,0,0,0,0];
var StatsAdvance = [0,0,0,0,0,0,0,0,0,0];
var StatsBase = [0,0,0,0,0,0,0,0,0,0];
var StatsTalents = [0,0,0,0,0,0,0,0,0,0];
var FateResilienceTxt = "";
var StatsExtraName = ["W","M","Fate","Resilience", "Extra"];
var StatsExtraHuman = [ 0, 4, 2, 1, 3];
var StatsExtraDwarf = [ 0, 3, 0, 2, 2];
var StatsExtraHalfling = [ 0, 3, 0, 2, 3];
var StatsExtraHElf = [ 0, 5, 0, 0, 2];
var StatsExtraWElf = [ 0, 5, 0, 0, 2];
var StatsExtraGnome = [ 0, 3, 2, 0, 2];
var StatsExtraAll = [StatsExtraHuman, StatsExtraDwarf, StatsExtraHalfling, StatsExtraHElf, StatsExtraWElf, StatsExtraGnome];
var StatsExtraBase = [ 0, 0, 0, 0, 0 ];
var StatsExtra = [ 0, 0, 0, 0, 0 ];
var SkillStartHuman= ["Animal Care",
"Charm",
"Cool",
"Evaluate",
"Gossip","Haggle",
"Language (Bretonnian)",
"Language (Wastelander)",
"Leadership",
"Lore (Reikland)",
"Melee (Basic)",
"Ranged (Bow)"];
var SkillStartDwarf = ["Consume Alcohol",
"Cool",
"Endurance",
"Entertain (Storytelling)",
"Evaluate",
"Intimidate",
"Language (Khazalid)",
"Lore (Dwarfs)",
"Lore (Geology)",
"Lore (Metallurgy)",
"Melee (Basic)",
"Trade (Any one)"];
var SkillStartHalfling = ["Charm",
"Consume Alcohol",
"Dodge",
"Gamble",
"Haggle",
"Intuition",
"Language (Mootish)",
"Lore (Reikland)",
"Perception",
"Sleight of Hand",
"Stealth (Any one)",
"Trade (Cook)"];
var SkillStartHElf = ["Cool",
"Entertain (Sing)",
"Evaluate",
"Language (Eltharin)",
"Leadership",
"Melee (Basic)",
"Navigation",
"Perception",
"Play (Any one)",
"Ranged (Bow)",
"Sail",
"Swim"];
var SkillStartWElf = ["Athletics",
"Climb",
"Endurance",
"Entertain (Sing)",
"Intimidate",
"Language (Eltharin)",
"Melee (Basic)",
"Outdoor Survival",
"Perception",
"Ranged (Bow)",
"Stealth (Rural)",
"Track"];
var SkillStartGnome = ["Channeling (Ulgu)",
"Charm",
"Consume Alcohol",
"Dodge",
"Entertain (Any one)",
"Gossip",
"Haggle",
"Language (Ghassally)",
"Language (Magick)",
"Language (Wastelander)",
"Outdoor Survival",
"Stealth (Any one)"];
var SkillStartAll = [SkillStartHuman,
SkillStartDwarf, SkillStartHalfling,
SkillStartHElf, SkillStartWElf,
SkillStartGnome];
var SkillTxt ="";
var SkillStart;
var SkillNames = [];
var SkillValues = [];
var SkillCareer = [];
var TalentStartHuman = ["Doomed","Savvy or Suave","Random","Random","Random" ];
var TalentStartDwarf = ["Magic Resistance","Night Vision","Read/Write or Relentless","Resolute or Strong-Minded","Sturdy"];
var TalentStartHalfling = ["Acute Sense (Taste)", "Night Vision", "Resistance (Chaos)", "Small", "Random", "Random"];
var TalentStartHElf = ["Acute Sense (Vision)", "Coolheaded or Savvy", "Night Vision", "Second Sight or Sixth Sense", "Read/Write"];
var TalentStartWElf = ["Acute Sense (Vision)", "Hardy or Second Sight", "Night Vision", "Read/Write or Very Resilient", "Rover"];
var TalentStartGnome = ["Beneath Notice or Suffuse with Ulgu", "Luck or Mimic", "Night Vision", "Fisherman or Read/Write", "Second Sight or Sixth Sense", "Small"];
var TalentStartAll = [TalentStartHuman,
TalentStartDwarf,TalentStartHalfling,
TalentStartHElf,TalentStartWElf,
TalentStartGnome];
var TalentTxt ="";
var TalentNames = [];
var TalentValues = [];
var TalentRandom = [3, 6, 9, 12, 15, 18, 21, 24, 28, 31, 34, 38, 41, 44, 47, 50, 52, 55, 58, 62, 65, 68, 71, 74, 78, 81, 84, 87, 91, 94, 97, 100];
var TalentRandomName = ["Acute Sense (Any one)",
"Ambidextrous",
"Animal Affinity",
"Artistic",
"Attractive",
"Coolheaded",
"Craftsman (Any one)",
"Flee!",
"Hardy",
"Lightning Reflexes",
"Linguistics",
"Luck",
"Marksman",
"Mimic",
"Night Vision",
"Nimble Fingered",
"Noble Blood",
"Orientation",
"Perfect Pitch",
"Pure Soul",
"Read/Write",
"Resistance (Any one)",
"Savvy",
"Sharp",
"Sixth Sense",
"Strong Legs",
"Sturdy",
"Suave",
"Super Numerate",
"Very Resilient",
"Very Strong",
"Warrior Born"];
var CareerTalents = [ ["Concoct","Craftsman (Apothecary)","Etiquette (Scholar)","Read/Write"],
["Artistic","Gunner","Read/Write","Tinker"],
["Blather","Etiquette (Scholar)","Read/Write","Speedreader"],
["Bless (Any one)","Stone Soup","Panhandle","Read/Write"],
["Bookish","Field Dressing","Read/Write","Strike to Stun"],
["Bless (Any one)","Holy Visions","Read/Write","Suave"],
["Carouser","Read/Write","Savvy","Super Numerate"],
["Aethyric Attunement","Petty Magic","Read/Write","Second Sight"],
["Blather","Gregarious","Panhandle","Read/Write"],
["Artistic","Craftsman (Any one)","Strong Back","Very Strong"],
["Panhandle","Resistance (Disease)","Stone Soup","Very Resilient"],
["Alley Cat","Beneath Notice","Read/Write","Sharp"],
["Blather","Dealmaker","Read/Write","Suave"],
["Night Vision","Resistance (Disease)","Strike Mighty Blow","Strike to Stun"],
["Alley Cat","Beneath Notice","Etiquette (Servants)","Sturdy"],
["Drilled","Hardy","Strike to Stun","Tenacious"],
["Beneath Notice","Etiquette (Any one)","Gregarious","Read/Write"],
["Artistic","Sharp","Strong Back","Tenacious"],
["Beat Blade","Distract","Feint","Step Aside"],
["Blather","Etiquette (Nobles)","Read/Write","Suave"],
["Etiquette (Nobles)","Luck","Noble Blood","Read/Write"],
["Beneath Notice","Strong Back","Strong-minded","Sturdy"],
["Blather","Carouser","Gregarious","Shadow"],
["Menacing","Night Vision","Sharp","Strike to Stun"],
["Embezzle","Numismatics","Strong Back","Tenacious"],
["Fast-Hands","Petty Magic","Rover","Strider (Woodlands)"],
["Acute Sense (Taste)","Orientation","Rover","Strider (Any one)"],
["Hardy","Rover","Strider (Any one)","Trapper"],
["Rover","Strider (Rocky)","Sturdy","Tenacious"],
["Attractive","Luck","Second Sight","Suave"],
["Orientation","Rover","Sharp","Strider (Any one)"],
["Rover","Strong Back","Strong-minded","Stone Soup"],
["Break and Enter","Shadow","Strike to Stun","Suave"],
["Animal Affinity","Seasoned Traveller","Trick-Riding","Tenacious"],
["Attractive","Mimic","Public-Speaking","Suave"],
["Berserk Charge","Frenzy","Read/Write","Stone Soup"],
["Flee!","Fleet Footed","Sprinter","Step Aside"],
["Fisherman","Flee!","Rover","Tinker"],
["Coolheaded","Embezzle","Marksman","Numismatics"],
["Coolheaded","Menacing","Read/Write","Resolute"],
["Dirty Fighting","Fisherman","Strong Back","Strong Swimmer"],
["Fisherman","Night Vision","Orientation","Waterman"],
["Strong Swimmer","Strong Back","Very Strong","Waterman"],
["Fisherman","Gregarious","Strider (Marshes)","Strong Swimmer"],
["Fisherman","Strider (Coastal)","Strong Back","Strong Swimmer"],
["Criminal","Fisherman","Strider (Marshes)","Strong Back"],
["Dirty Fighting","Strong Back","Sturdy","Very Strong"],
["Break and Enter","Criminal","Fisherman","Strong Back"],
//Class Rogues
["Attractive","Alley Cat","Blather","Gregarious"],
["Cardsharp","Diceman","Etiquette (Any one)","Luck"],
["Alley Cat","Cardsharp","Dealmaker","Gregarious"],
["Alley Cat","Criminal","Flee!","Strong Back"],
["Combat Aware","Criminal","Rover","Flee!"],
["Criminal","Etiquette (Criminals)","Menacing","Strike Mighty Blow"],
["Alley Cat","Criminal","Etiquette (Criminals)","Flee!"],
["Criminal","Menacing","Petty Magic","Instinctive Diction"],
//Class Warriors
["Combat Aware","Crack the Whip","Lightning Reflexes","Roughrider"],
["Diceman","Etiquette (Servants)","Strike to Stun","Tenacious"],
["Etiquette (Any one)","Roughrider","Sturdy","Warrior Born"],
["Dirty Fighting","In-fighter","Iron Jaw","Reversal"],
["In-fighter","Dirty Fighting","Menacing","Warrior Born"],
["Diceman","Marksman","Strong Back","Warrior Born"],
["Duel Wielder","Fearless (Everything)","Frenzy","Slayer"],
["Bless (Any one)","Etiquette (Cultists)","Read/Write","Strong-minded"] ];
var CareerSkill = [
//Class Academics
["Consume Alcohol","Heal","Language (Classical)","Lore (Chemistry)","Lore (Medicine)","Lore (Plants)","Trade (Apothecary)","Trade (Poisoner)"],
["Consume Alcohol","Cool","Endurance","Language (Classical)","Lore (Science)","Perception","Ranged (Blackpowder)","Trade (Engineer)"],
["Consume Alcohol","Endurance","Haggle","Language (Classical)","Lore (Law)","Lore (Theology)","Perception","Research"],
["Art (Calligraphy)","Cool","Endurance","Entertain (Storyteller)","Gossip","Heal","Lore (Theology)","Pray"],
["Bribery","Cool","Drive","Endurance","Gossip","Heal","Perception","Sleight of Hand"],
["Athletics","Cool","Endurance","Intuition","Lore (Theology)","Perception","Pray","Research"],
["Consume Alcohol","Entertain (Storytelling)","Gamble","Gossip","Haggle","Language (Classical)","Lore (Any one)","Research"],
["Channelling","Dodge","Intuition","Language (Magick)","Lore (Magic)","Melee (Basic)","Melee (Polearm)","Perception"],
["Art (Writing)","Bribery","Charm","Consume Alcohol","Gossip","Haggle","Lore (Politics)","Trade (Printing)"],
["Athletics","Cool","Consume Alcohol","Dodge","Endurance","Evaluate","Stealth (Urban)","Trade (Any one)"],
["Athletics","Charm","Consume Alcohol","Cool","Dodge","Endurance","Intuition","Stealth (Urban)"],
["Charm","Climb","Cool","Gossip","Intuition","Perception","Stealth (Urban)","Track"],
["Animal Care","Bribery","Charm","Consume Alcohol","Drive","Gamble","Gossip","Haggle"],
["Athletics","Animal Training (Dog)","Charm Animal","Consume Alcohol","Endurance","Melee (Basic)","Ranged (Sling)","Stealth (Underground or Urban)"],
["Charm","Climb","Consume Alcohol","Drive","Dodge","Gamble","Gossip","Haggle"],
["Athletics","Climb","Consume Alcohol","Dodge","Endurance","Gamble","Melee (Basic)","Perception"],
["Bribery","Consume Alcohol","Endurance","Gossip","Haggle","Language (Classical)","Lore (Politics)","Perception"],
["Art (Any one)","Cool","Consume Alcohol","Evaluate","Endurance","Gossip","Perception","Stealth (Urban)"],
["Athletics","Dodge","Endurance","Heal","Intuition","Language (Classical)","Melee (Any one)","Perception"],
["Athletics","Charm","Drive","Dodge","Endurance","Intuition","Ride (Horse)","Row"],
["Bribery","Consume Alcohol","Gamble","Intimidate","Leadership","Lore (Heraldry)","Melee (Fencing)","Play (Any one)"],
["Athletics","Climb","Drive","Dodge","Endurance","Intuition","Perception","Stealth (Any one)"],
["Bribery","Charm","Cool","Gamble","Gossip","Haggle","Perception","Stealth (Any one)"],
["Athletics","Charm Animal","Consume Alcohol","Cool","Endurance","Intuition","Perception","Trade (Any one)"],
["Cool","Dodge","Endurance","Gossip","Haggle","Intimidate","Melee (Basic)","Perception"],
["Channelling","Endurance","Intuition","Lore (Folklore)","Lore (Herbs)","Outdoor Survival","Perception","Trade (Charms)"],
["Charm Animal","Climb","Endurance","Lore (Herbs)","Outdoor Survival","Perception","Swim","Trade (Herbalist)"],
["Charm Animal","Climb","Endurance","Lore (Beasts)","Outdoor Survival","Perception","Ranged (Sling)","Set Trap"],
["Cool","Endurance","Intuition","Lore (Local)","Melee (Two-handed)","Outdoor Survival","Perception","Swim"],
["Charm","Entertain (Fortune Telling)","Dodge","Gossip","Haggle","Intuition","Perception","Sleight of Hand"],
["Charm Animal","Climb","Endurance","Gossip","Lore (Local)","Melee (Basic)","Outdoor Survival","Perception"],
["Animal Care","Athletics","Consume Alcohol","Endurance","Gossip","Melee (Brawling)","Lore (Local)","Outdoor Survival"],
["Bribery","Charm","Gossip","Haggle","Intuition","Melee (Basic)","Outdoor Survival","Perception"],
["Animal Care","Charm Animal","Climb","Drive","Endurance","Perception","Ranged (Entangling)","Ride (Horse)"],
["Athletics","Charm","Entertain (Any one)","Gossip","Haggle","Perform (Any one)","Play (Any one)","Sleight of Hand"],
["Dodge","Endurance","Heal","Intimidate","Intuition","Lore (Theology)","Melee (Flail)","Outdoor Survival"],
["Athletics","Climb","Dodge","Endurance","Gossip","Navigation","Perception","Melee (Brawling)"],
["Charm","Endurance","Entertain (Storytelling)","Gossip","Haggle","Intuition","Outdoor Survival","Stealth (Rural or Urban)"],
["Bribery","Consume Alcohol","Gamble","Gossip","Haggle","Melee (Basic)","Perception","Ranged (Crossbow)"],
["Charm","Consume Alcohol","Heal","Intimidate","Intuition","Lore (Torture)","Melee (Basic)","Perception"],
["Consume Alcohol","Dodge","Endurance","Gossip","Melee (Basic)","Row","Sail","Swim"],
["Consume Alcohol","Gossip","Intuition","Lore (Local)","Lore (Riverways)","Perception","Row","Swim"],
["Athletics","Consume Alcohol","Dodge","Endurance","Gossip","Outdoor Survival","Row","Swim"],
["Athletics","Dodge","Endurance","Melee (Basic)","Perception","Row","Sail","Swim"],
["Climb","Consume Alcohol","Gamble","Gossip","Row","Melee (Brawling)","Sail","Swim"],
["Athletics","Bribery","Cool","Consume Alcohol","Row","Sail","Stealth (Rural or Urban)","Swim"],
["Athletics","Climb","Consume Alcohol","Dodge","Endurance","Gossip","Melee (Basic)","Swim"],
["Climb","Consume Alcohol","Dodge","Endurance","Row","Melee (Basic)","Outdoor Survival","Swim"],
["Bribery","Charm","Consume Alcohol","Entertain (Any one)","Gamble","Gossip","Haggle","Intimidate"],
["Bribery","Consume Alcohol","Charm","Entertain (Storytelling)","Gamble","Gossip","Haggle","Sleight of Hand"],
["Charm","Dodge","Evaluate","Gamble","Gamble","Gossip","Haggle","Melee (Basic)"],
["Climb","Cool","Dodge","Drive","Gossip","Intuition","Perception","Stealth (Any one)"],
["Athletics","Consume Alcohol","Cool","Endurance","Gamble","Intimidate","Melee (Basic)","Outdoor Survival"],
["Athletics","Climb","Cool","Dodge","Endurance","Intuition","Perception","Stealth (Urban)"],
["Consume Alcohol","Cool","Dodge","Endurance","Intimidate","Lore (Local)","Melee (Brawling)","Stealth (Urban)"],
["Channelling","Cool","Endurance","Gossip","Intimidate","Language (Magick)","Sleight of Hand","Stealth (Rural)"],
//Class Warriors
["Animal Care","Charm Animal","Endurance","Language (Battle)","Melee (Basic)","Outdoor Survival","Perception","Ride (Horse)"],
["Consume Alcohol","Endurance","Entertain (Storytelling)","Gamble","Gossip","Intuition","Melee (Basic)","Perception"],
["Athletics","Animal Care","Charm Animal","Heal","Lore (Heraldry)","Melee (Cavalry)","Ride (Horse)","Trade (Farrier)"],
["Athletics","Cool","Dodge","Endurance","Gamble","Intimidate","Melee (Any one)","Melee (Brawling)"],
["Athletics","Dodge","Endurance","Entertain (Taunt)","Gossip","Haggle","Intimidate","Melee (Any one)",""],
["Athletics","Climb","Cool","Dodge","Endurance","Language (Battle)","Melee (Basic)","Play (Drum or Fife)"],
["Consume Alcohol","Cool","Dodge","Endurance","Gamble","Heal","Lore (Trolls)","Melee (Basic)"],
["Cool","Dodge","Endurance","Heal","Leadership","Lore (Theology)","Melee (Any one)","Pray"]
];
var ThyDemise = [
"thy death",
"thy demise",
"thy destruction",
"thy dying",
"thy doom",
"thy downfall",
"thine end",
"thy fall"
];
var ThyDemiseUpper = [
"Thy death",
"Thy demise",
"Thy destruction",
"Thy dying",
"Thy doom",
"Thy downfall",
"Thine end",
"Thy fall"
];
var ShallBe = [
"shall be",
"shall be",
"shall be",
"shall annunce",
"shall mark",
"shall herald"
];
var DoomingTxt = "";
var DoomingsAll = [
//List from http://www.bindslet.dk/rpg/wfrpdoom.html
randPick(ThyDemiseUpper)+" shalt be a sticky one.","Briny waters are poison to thy tongue"
,"When abandoned and alone, Morr shalt befriend thee.","Beasts of the field have eyes for thee."
,"Workings of the Witchling Star are "+randPick(ThyDemise)+".","A stalled blade bringeth a sharp end."
,"The written word shall spell "+randPick(ThyDemise)+".","Thy body shalt break after thy spirit is crushed."
,"Be not curious, only in ignorance art thou safe.","Lack of breath fills thy last moments."
,"Tie not the ribbon, nor the feather wear; yea, the peacock is thine enemy."
,"Be not like Gnuthus, for thy master counts thy days.","Three is thy number."
,"A beast of brass bellows for thee.","Ulric's cold hand shall lead thee to Morr."
,"Watch for the cloven hoof, it is thine enemy.","Eat neither the chitterlings nor the meat with tubes."
,"As thee began, so shalt thou end.",""+randPick(ThyDemiseUpper)+" already knows thee, though knows it not."
,"A stranger shalt bring thee more than a gift.","Beware the young, the child, yea, even the babe."
,"Take heed of Mammit and Mummit, for both see to lay thee low."
,"Beware the purse, the sack, the velvet bag.","The raven answers to Verena's call, yea, but Her scales are weighted."
,"The tiniest of Taal's children shalt feast upon thy gut."
,"The limner's line shalt be false.","The holy day "+randPick(ShallBe)+" thy last day."
,"Thou shalt die in bed, but not thine own!","Thou shalt feed the barren soil with thy blood."
,"When thy need is greatest, Shallya shalt turn Her back to thee.","The scythe shall reap thy flesh."
,"Thy soul, consumed with anger, shall be blinded to the unseen enemy."
,"A friend in need brings "+randPick(ThyDemise)+" with speed.","Thy last breath is drawn by Morrleib's light."
,"Rats wearing the Horns of Taal shalt bite at thy heels.","The sword shalt bring no justice, only suffering."
,"The twin-tailed comet doth soar as thou dost fall.","Water of all kinds is thy nemesis. "
,""+randPick(ThyDemiseUpper)+" lieth hidden in the gloaming.","High places promise a low end."
,"Thy last exclamation is love.","Beware the man that is not a man!","Beware the Blind Maiden for Her scales shalt weight thy soul."
,"Thy broken cart shalt herald "+randPick(ThyDemise)+".","The bun, the pastry, and the pie, yea, they art Morr's dishes!"
,"When the bell doth toll, it doth toll for thee.","The laurel wreath hides a poisoned thorn."
,"Longer not upon the privvie, nor the long drop neither.","Cacklefax grips tight to coins of they doom."
,"The hourglass shatters before thy last grain falls. ","From the darkness cometh the raven."
,"High-born blood shalt spill thine own.","From above comes "+randPick(ThyDemise)+"."
,"Plague and dark disease shalt bring thee to thine knees."
,"Beware skin of green, it shalt afflict thee."
,"Beware the verdant depths, within doth lie disaster."
,"Be like the dancer for rude words bring Morr to thy side."
,"The darkest rot shall eat thee from within."
,"The Gods watch over "+randPick(ThyDemise)+"."
,"Heed not the smith, in his artifice lies "+randPick(ThyDemise)+"."
,"Wear not Grugni's baldric, for it shall carry "+randPick(ThyDemise)+"."
,"Ready your coins on the thirteenth chime."
,"The drummer beats out "+randPick(ThyDemise)+"."
,"Katya's eye and vanity shalt speed thee to death."
,""+randPick(ThyDemiseUpper)+" burns with flames unseen."
,"An ill reputation shalt an ill man make."
,"Morr finds thee naked as the day of thy birth."
,"One bullock is safe, two bullocks bringeth the raven."
,"Thirst not for blood, for it thirst for thee."
,"In thy surest moment, thou shalt fail."
,"Beware the beast in the wood, it is Morr's Messenger."
,"Thou shalt sup from the cup of corruption."
,"Fear the workings of the bonesaw, they are the source of "+randPick(ThyDemise)+"."
,"Thy generosity bringeth tuppence and a sword in return."
,"The withering eye is thy reward, and "+randPick(ThyDemise)+"."
,"Torture and pain echo "+randPick(ThyDemise)+"."
,"Follow not the steps of Dragomas."
,""+randPick(ThyDemiseUpper)+" is wrought of violence."
,"Those born of Rhy's cauldron shalt build thee a ravenstone."
,"Absence makes thy heart grow weaker."
,"The Mymidian spring is thy poison."
,"Beware the crow, honour the raven."
,"A greased goat is safer than keeping secrets."
,"Manann's folk shalt love thee not."
,"When thou art thrice haunted, Morr brings peace."
,"Walk with Vobist, for certainty shall take thy breath."
,"Beware the Lord of Murder's barb - it awaits to strike at thee from the darkness."
,"The flashing blade shalt carve "+randPick(ThyDemise)+"."
,"Fearsome engines belch forth fires of "+randPick(ThyDemise)+"."
,"Thy end is not the end!"
, ""+randPick(ThyDemiseUpper)+" is not "+randPick(ThyDemise)+"!"
,"As the piper plays his tune thy heart shall break."
,"Green shalt undo thee."
,"As dark news comes knocking, Morr shalt surely follow."
,"Thou shalt stand like Wymund until Shallya courts thy enemies."
,"Ranald shalt abandon thee."
,"Think not beyond thy station, for change is the herald of Morr."
,"Morr sends a maiden."
,"Without the big cross, thou shalt make the wrong decision."
,"Just before he uttered your doom, the doomsayer died, his face frozen in a mask of horror."
// added
,"When the beasts fall silent, "+randPick(ThyDemise)+" is near."
// from http://www.windsofchaos.com/wp-content/uploads/encroachment/expanded-characters-module.pdf
,"A beast shall end thee, but the beast shall die first."
,"A blunt knife will cause "+randPick(ThyDemise)+"."
,"A child shall be Morr's herald."
,"A consequence of lust will end ye."
,"A curse "+randPick(ShallBe)+" "+randPick(ThyDemise)+"."
,"A drunken blunder shall end your comedy."
,"A four legged beast "+randPick(ShallBe)+" "+randPick(ThyDemise)+"."
,"A helmet "+randPick(ShallBe)+" your undoing."
,"A hero slays thee and with a good reason."
,"A kiss shall end thy days."
,"A passion that is forbidden to you "+randPick(ShallBe)+" your undoing."
,"A raging fire shall claim thee."
,"As sharp sting and then nothing."
,"A short life but a merry one."
,"A slip, a trip or a fall."
,"A small misfortune leads to a bigger misfortune which leads to "+randPick(ThyDemise)+"."
,"A spear will pass through your belly and you will linger long in pain before "+randPick(ThyDemise)+"."
,"A sweet song accompanies thy dying breath."
,"A terrible stench precedes "+randPick(ThyDemise)+"."
,"A warriors's death, be thee warrior or not."
,"Absence makes thy heart grow weaker."
,"Accidents will happen."
,"All is not as it seems."
,"A great celebration you shall leave this world."
,"An unmarked grave shall house thy bone."
,"Arrogance will provide "+randPick(ThyDemise)+"."
,"As dark clous gather, "+randPick(ThyDemise)+" looms over thee."
,"As the leaves fall, so shall you."
// http://www.windsofchaos.com Chargens
,"A black cat."
,"A blunt knife will cause "+randPick(ThyDemise)+"."
,""+randPick(ThyDemise)+", a brutal finish."
,"A child shall be Morr's herald."
,"A consequence of lust shall end thee."
,"A coward's death, you shall suffer."
,"A drunken blunder shall end thy comedy."
,"A fear unnamed shall claim you."
,"A filthy rat-thing "+randPick(ShallBe)+" "+randPick(ThyDemise)+"."
,"A forbidden passion shall lay thee low."
,"A great fish "+randPick(ShallBe)+" "+randPick(ThyDemise)+"."
,"A green-skinned defiler "+randPick(ShallBe)+" "+randPick(ThyDemise)+"."
,"A hero slays thee, and with good reason."
,"A howling in the night announces "+randPick(ThyDemise)+"."
,"Among a great celebration shall you leave this world."
,"An ancient horror shall drag thee to madness before death."
,"Another shall die so that you may live, but it is for nought."
,"An unmarked grave is to be yours."
,"A person of virtue shall slay thee."
,"A profanity "+randPick(ShallBe)+" "+randPick(ThyDemise)+"."
,"A raging fire "+randPick(ShallBe)+" "+randPick(ThyDemise)+".","A rope will break."
,"Arrogance will steal your life."
,"As dark clouds gather, "+randPick(ThyDemise)+" looms."
,"A small misfortune shall lead you to ruin."
,"A song on the wind shall lure thee to thy grave."
,"A spotted dog "+randPick(ShallBe)+" "+randPick(ThyDemise)+"."
,"As the leaves fall, so dost thou."
,"As the snow falls, so dost thou."
,"As the sun is rising, you shall forever rest."
,"As the sun is setting, so shall you rest."
,"A terrible pain in thy entrails."
,"A thing so black, it has no name."
,"A thing that gazes with no eye."
,"A thing that should not be."
,"A turning wheel shall break thee."
,"A tusked beast "+randPick(ShallBe)+" "+randPick(ThyDemise)+"."
,"A warrior's death shall be yours."
,"A white cat shall be "+randPick(ThyDemise)+"."
,"Beware the stench of death, else you will join it."
,"Carried off on a sea of blood."
,"Cold hands shall drag thee away."
,"Death comes from above."
,"Death comes from below."
,"Death comes packaged as a gift."
,"Death sings sweetly."
,"Death strikes unseen."
,"Death waits at the river's side."
,"Death wears a black hat."
,"Drowning, but not in water."
,"Executed by the order of law."
,"First, you shall be buried. Only later shall you die."
,"Honeyed words shall curdle thy soul."
,"Ill-gotten treasures."
,"Indulgence in thy dark desires shall end thee."
,"Manaan shall abandon thee."
,"Misplaced faith "+randPick(ShallBe)+" "+randPick(ThyDemise)+"."
,"Murdered by a stranger."
,"Murdered by one you hold dear."
,"One drink too many."
,"On the battlefield."
,"Pierced with countless blades."
,"Poison in thy cup."
,"Ranald shall forsake thee."
,"Rhya shall forsake thee."
,"Something too horrible to name."
,"The gods shall forsake thee."
,"The heirs of Sigmar shall perish, and you with them."
,"The rains of spring bring with them disease and death."
,"The summer sun shall bleach your bones."
,"The walking dead will walk thou to death."
,"The whisper of a foreigner shall undo you."
,"They shall not know what to do with thy remains."
,"Thou shalt be offered immortality, but 'tis a swindle."
,"Thou shalt die from lack while surrounded by plenty."
,"Thou shalt fall under the weight of thine own gold."
,"Thou shalt share thy grave with a dog."
,"Thrice shall the bell ring. There shall not be a fourth."
,"Through a chink in thy armour."
,"Through a window it comes."
,""+randPick(ThyDemiseUpper)+" shall mirror thy birth."
,""+randPick(ThyDemiseUpper)+" is so terrible, it cannot be uttered."
,"Thy god shall abandon thee."
,"Thy own faith shall end thee."
,"Thy own strength shall end thee."
,"Thy own weakness shall end thee."
,"Under a cloudy sky, it comes."
,"Under an oak shall you find "+randPick(ThyDemise)+"."
,"Verena shall abandon thee."
,"Vermin in multitudes."
,"When all seems lost, it will be."
,"Your blood shall pay for a forgotten debt."
,""+randPick(ThyDemiseUpper)+" will come at the time you choose."
,"Your father's sins shall doom you."
,"Your final breath shall be of mountain air."
,"Your remains shall never be found."
,"You shall die many times before "+randPick(ThyDemise)+"."
,"You shall have the last laugh."
,"You shall perish amid gun smoke."
,"You shall stray from a path and never return."
,"You shall be ordered to "+randPick(ThyDemise)+"."
,"You shall be within sight of salvation when the end comes."
,"You will die so that another may live."
,"You will linger long in the knowledge of "+randPick(ThyDemise)+"."
];
var TrappingTxt = "";
var TrappingClass = ["Clothing, Dagger, Pouch, Sling Bag containing Writing Kit and 1d10 sheets of Parchment",
"Cloak, Clothing, Dagger, Hat, Pouch, Sling Bag containing Lunch",
"Fine Clothing, Dagger, Pouch containing Tweezers, Ear Pick and a Comb",
"Cloak, Clothing, Dagger, Pouch, Sling Bag containing Rations (1 day)",
"Cloak, Clothing, Dagger, Pouch, Backpack containing Tinderbox, Blanket, Rations (1 day)",
"Cloak, Clothing, Dagger, Pouch, Sling Bag containing a Flask of Spirits",
"Clothing, Dagger, Pouch, Sling Bag containing 2 Candles, 1d10 Matches, a Hood or Mask",
"Clothing, Hand Weapon, Dagger, Pouch"];
var TrappingCareer = [
//Class Academics
"Book (Blank), Healing Draft, Leather Jerkin, Pestle and Mortar",
"Book (Engineer), Hammer and Spikes",
"Book (Law), Magnifying Glass",
"Religious Symbol, Robes",