forked from omonubi/ACKS-by-omonubi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
acks.html
1917 lines (1769 loc) · 110 KB
/
acks.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
<!-- Tab Controls -->
<div class='page-title'>
<h1><img src='https://files.d20.io/images/365102791/eyJcpNMeNGuh5AxYBLtf1Q/original.png?16984447805'/> Adventurer Conqueror King System</h1>
</div>
<div class='button-panel'>
<input type='hidden' class='buttonstoggle' name='attr_sheetButtons' value='overview'/>
<button type='action' class='btnOverview' name='act_overview' >Overview</button>
<button type='action' class='btnClass' name='act_class' >Class</button>
<input type='hidden' class='hideStudious' value='0' name='attr_show_studious'/>
<button type='action' class='btnStudious' name='act_studious' >Studious</button>
<input type='hidden' class='hidePrayerful' value='0' name='attr_show_prayerful'/>
<button type='action' class='btnPrayerful' name='act_prayerful' >Prayerful</button>
<button type='action' class='btnCombat' name='act_combat' >Combat</button>
<button type='action' class='btnSkills' name='act_skills' >Skills</button>
<button type='action' class='btnEquipment' name='act_equipment' >Equip</button>
<button type='action' class='btnWealth' name='act_wealth' >Wealth</button>
<button type='action' class='btnHirelings' name='act_hirelings' >Hirelings</button>
<button type='action' class='btnJournal' name='act_journal' >Journal</button>
<button type='action' class='btnSettings' name='act_settings' >Settings</button>
<div class='whispertoggle'>
<label>whisper</label>
<input type='checkbox' title='Check to whisper all outputs to R20 Chat.' name='attr_toggle_whisper' />
<input type='hidden' name='attr_whispertoggle'/>
</div>
</div>
<!-- Tracks sheet upgrade version to fire events on first sheet:opened() -->
<input type='hidden' name='attr_sheet_version' value='0'/>
<input type='hidden' class='tabstoggle' name='attr_sheetTab' value='overview'/>
<!-- Character Sheet -->
<section class='overview'>
<div class='grid-2column'>
<div class='grid-overview'>
<label>Character Name</label><input type='text' title='@{character_fullname}' name='attr_character_fullname' />
<label>Class <span title='Select from the list or enter a custom value.'>(?)</span></label><input type='text' list='classes' title='@{class}' name='attr_class'/>
<datalist id='classes'>
<option>Assassin</option>
<option>Barbarian</option>
<option>Bard</option>
<option>Bladedancer</option>
<option>Crusader</option>
<option>Dwarven Craftpriest</option>
<option>Dwarven Vaultguard</option>
<option>Elven Nightblade</option>
<option>Elven Spellsword</option>
<option>Explorer</option>
<option>Fighter</option>
<option>Mage</option>
<option>Nobiran Wonderworker/option>
<option>Paladin</option>
<option>Priestess</option>
<option>Shaman</option>
<option>Thief</option>
<option>Venturer</option>
<option>Warlock</option>
<option>Witch</option>
<option>Zaharan Ruinguard</option>
</datalist>
<label>Title <span title="The character's title, if any. Appears in all roll outputs.">(?)</span></label><input type='text' title='@{character_title}' name='attr_character_title'/>
<label>Alignment <span title='Select from the list or enter a custom value.'>(?)</span></label><input type='text' title='@{alignment}' name='attr_alignment' list='alignments'/>
<datalist id='alignments'>
<option>Lawful</option>
<option>Neutral</option>
<option>Chaotic</option>
</datalist>
<div class='xplabel'><label class='xp'>Experience (+<span class='xpbonus' title='@{xp_bonus}' name='attr_xp_bonus'>0</span><span>%)</span> <span title='Current (computed) XP / XP neeeded for next level. The bonus is computed based on Key Attributes, below.'>(?)</span></label></div>
<div>
<input class='xp' type='text' value='0' title='@{xp}' name='attr_xp' readonly/> /
<input class='xp' type='text' value='0' title='@{xp_next_level}' name='attr_xp_next_level'/>
</div>
<label>Level</label>
<input type='number' min='0' max='14' value='1' title='@{level}' name='attr_level' />
<input type='hidden' name='attr_max_level'/>
</div>
<div class='grid-overview'>
<label>Token Name</label><input type='text' title='@{character_name}' name='attr_character_name' />
<label>Gender</label><input type='text' title='@{gender}' name='attr_gender'/>
<label>Height</label><input type='text' title='@{height}' name='attr_height'/>
<label>Weight</label><input type='text' title='@{weight}' name='attr_weight'/>
<label>Age</label><input type='number' title='@{age}' name='attr_age' />
<label>Hit Dice <span title="Format must be '#d#', with an optional '+/-' and a number. E.G. 2d8, 1d8-1, 9d6+2.">(?)</span></label>
<div>
<input type='hidden' class='hdcheck' name='attr_isBadHDFormula'/>
<input class='redhd' type='text' title='@{hit_dice}' name='attr_hit_dice' />
<button type='roll' class='rollButton' value='@{whispertoggle} &{template:custom} {{title=@{banner_hd} **Hit Dice Roll**}} {{color=green}} {{subtitle=@{character_title} @{selected|token_name}}} {{Hit Dice=@{hit_dice}}} {{Roll=[[@{hit_dice}+(@{con_mod}[con]*@{numHD}[#HD])]]}}' name='roll_hit_dice'> Hit Dice</button>
<input type='hidden' name='attr_numHD'/>
</div>
</div>
<hr class='spangrid'/>
<div class='grid-attributes'>
<label class='span-header'>Attribute Scores</label>
<label></label>
<label>Current <span title='Tracks current attribute scores.'>(?)</span></label>
<label>Max <span title='Tracks unmodified, baseline attribute scores via Settings tab.'>(?)</span></label>
<label>Mod <span title='Computer attribute modifier.'>(?)</span></label>
<label>Key <span title='The Class key attribute(s) used to determine XP bonus.'>(?)</span></label>
<label class='attrname'>Strength <span title='Affects melee/thrown attack throws, damage rolls, and Dungeonbashing.'>(?)</span></label>
<input type='number' value='10' min='0' max='20' title='@{str}' name='attr_str' />
<input type='number' value='10' title='@{str_max}' name='attr_str_max' readonly/>
<input type='number' value='0' title='@{str_mod}' name='attr_str_mod' readonly />
<input type='checkbox' value='1' title='@{str_pre}' name='attr_str_pre'/>
<label class='attrname'>Intellect <span title='Affects number of general proficiencies, languages spoken, and spell slots per day.'>(?)</span></label>
<input type='number' value='10' min='0' max='20' title='@{int}' name='attr_int' />
<input type='number' value='10' title='@{int_max}' name='attr_int_max' readonly/>
<input type='number' value='0' title='@{int_mod}' name='attr_int_mod' readonly />
<input type='checkbox' value='1' title='@{int_pre}' name='attr_int_pre'/>
<label class='attrname'>Will <span title='Affects all saving throws.'>(?)</span></label>
<input type='number' value='10' min='0' max='20' title='@{wil}' name='attr_wil' />
<input type='number' value='10' title='@{wil_max}' name='attr_wil_max' readonly/>
<input type='number' value='0' title='@{wil_mod}' name='attr_wil_mod' readonly />
<input type='checkbox' value='1' title='@{wil_pre}' name='attr_wil_pre'/>
<label class='attrname'>Dexterity <span title='Affects all missile attack throws, AC, and initiative rolls.'>(?)</span></label>
<input type='number' value='10' min='0' max='20' title='@{dex}' name='attr_dex' />
<input type='number' value='10' title='@{dex_max}' name='attr_dex_max' readonly/>
<input type='number' value='0' title='@{dex_mod}' name='attr_dex_mod' readonly />
<input type='checkbox' value='1' title='@{dex_pre}' name='attr_dex_pre'/>
<label class='attrname'>Constitution <span title='Affects each hit die rolled to generate hit points.'>(?)</span></label>
<input type='number' value='10' min='0' max='20' title='@{con}' name='attr_con' />
<input type='number' value='10' title='@{con_max}' name='attr_con_max' readonly/>
<input type='number' value='0' title='@{con_mod}' name='attr_con_mod' readonly />
<input type='checkbox' value='1' title='@{con_pre}' name='attr_con_pre'/>
<label class='attrname'>Charisma <span title='Affects reaction rolls, henchmen limit, and henchmen rolls.'>(?)</span></label>
<input type='number' value='10' min='0' max='20' title='@{cha}' name='attr_cha' />
<input type='number' value='10' title='@{cha_max}' name='attr_cha_max' readonly/>
<input type='number' value='0' title='@{cha_mod}' name='attr_cha_mod' readonly />
<input type='checkbox' value='1' title='@{cha_pre}' name='attr_cha_pre'/>
</div>
<div class='grid-summary'>
<label class='span-header'>Summary Stats</label>
<label>Hit Points</label>
<input type='hidden' class='hpcheck' name='attr_hp_is_below_one'/>
<input class='redhp' type='number' value='0' title='@{hp}' name='attr_hp'/>
<label>HP Max</label>
<input type='number' value='0' title='@{hp_max}' name='attr_hp_max'/>
<label>Fatigue Level</label>
<input type='hidden' class='fatiguecheck' name='attr_is_fatigued'/>
<input class='redfatigue' type='number' value='0' min='0' title='@{fatigue}' name='attr_fatigue'/>
<label>Bedrest Needed</label>
<input type='hidden' class='bedrestcheck' name='attr_is_bedrest'/>
<input class='redbedrest' type='number' value='0' min='0' title='@{bedrest}' name='attr_bedrest'/>
<label>Armor Class</label>
<input type='number' value='0' title='@{armor_class}' name='attr_armor_class' readonly/>
<label>Attack Throw</label>
<input type='number' value='10' title='@{attack throw}' name='attr_attack_throw' readonly/>
<label>Encumbrance</label>
<input type='hidden' class='encOverFive' name='attr_enc_over_five'/>
<input class='orangeEnc' type='number' value='0' title='@{encumbrance}' name='attr_encumbrance' readonly />
<label>Capacity, Max</label>
<input type='number' value='20' title='@{enc_capacity}' name='attr_enc_capacity' readonly/>
<label>Feet / Turn</label>
<input type='hidden' class='movecheck' name='attr_move_is_zero'/>
<input class='redmove' type='number' value='120' title='@{move_turn}' name='attr_move_turn' readonly/>
<label>Feet / Round</label>
<input type='hidden' class='movecheck' name='attr_move_is_zero'/>
<input class='redmove' type='number' value='40' title='@{move_round}' name='attr_move_round' readonly/>
<label>Miles / Day</label>
<input type='hidden' class='movecheck' name='attr_move_is_zero'/>
<input class='redmove' type='number' value='24' title='@{miles_day}' name='attr_miles_day' readonly/>
<label>Miles / Hour</label>
<input type='hidden' class='movecheck' name='attr_move_is_zero'/>
<input class='redmove' type='number' value='0.75' title='@{miles_hour}' name='attr_miles_hour' readonly/>
</div>
<hr class='spangrid'/>
<div class='grid-savingthrows'>
<label class='span-header'>Saving Throws</label>
<span>
<input class='smallWidth' type='text' maxlength='3' placeholder='Profile' title='@{save_profile}' name='attr_save_profile'/>
<label><span title='Optional. OVERWRITES saving throw Base values, when XY format is entered. X values = [C, F, M, or T]. Y values = [0-14].'>(?)</span></label>
</span>
<label>Base</label>
<label>Modifier <span title='Optional. A *negative* number that lowers the Base value to compute the Target.'>(?)</span></label>
<label>Target</label>
<button type='roll' class='rollButton' value='@{whispertoggle} &{template:custom} {{title=@{banner_saveparalysis} **Saving Throw (Paralysis)**}} {{subtitle=@{character_title} @{selected|token_name}}} {{color=orange}} {{Target=[[@{save_1}]]}} {{Roll=[[1d20[die]+@{wil_mod}[wil]-@{fatigue}[fatigue]+(?{Modifier|0}[mod])]]}}' name='roll_save_1'> Paralysis</button>
<input type='number' min='1' max='20' value='13' title='@{save_1_base}' name='attr_save_1_base'/>
<input type='number' min='-20' max='0' value='0' title='@{save_1_mod}' name='attr_save_1_mod'/>
<input type='number' readonly title='@{save_1}' name='attr_save_1'/>
<button type='roll' class='rollButton' value='@{whispertoggle} &{template:custom} {{title=@{banner_savedeath} **Saving Throw (Death)**}} {{subtitle=@{character_title} @{selected|token_name}}} {{color=orange}} {{Target=[[@{save_2}]]}} {{Roll=[[1d20[die]+@{wil_mod}[wil]-@{fatigue}[fatigue]+(?{Modifier|0}[mod])]]}}' name='roll_save_2'> Death</button>
<input type='number' min='1' max='20' value='14' title='@{save_2_base}' name='attr_save_2_base'/>
<input type='number' min='-20' max='0' value='0' title='@{save_2_mod}' name='attr_save_2_mod'/>
<input type='number' readonly title='@{save_2}' name='attr_save_2'/>
<button type='roll' class='rollButton' value='@{whispertoggle} &{template:custom} {{title=@{banner_saveblast} **Saving Throw (Blast)**}} {{subtitle=@{character_title} @{selected|token_name}}} {{color=orange}} {{Target=[[@{save_3}]]}} {{Roll=[[1d20[die]+@{wil_mod}[wil]-@{fatigue}[fatigue]+(?{Modifier|0}[mod])]]}}' name='roll_save_3'> Blast</button>
<input type='number' min='1' max='20' value='15' title='@{save_3_base}' name='attr_save_3_base'/>
<input type='number' min='-20' max='0' value='0' title='@{save_3_mod}' name='attr_save_3_mod'/>
<input type='number' readonly title='@{save_3}' name='attr_save_3'/>
<button type='roll' class='rollButton' value='@{whispertoggle} &{template:custom} {{title=@{banner_saveimplements} **Saving Throw (Implements)**}} {{subtitle=@{character_title} @{selected|token_name}}} {{color=orange}} {{Target=[[@{save_4}]]}} {{Roll=[[1d20[die]+@{wil_mod}[wil]-@{fatigue}[fatigue]+(?{Modifier|0}[mod])]]}}' name='roll_save_4'> Implements</button>
<input type='number' min='1' max='20' value='16' title='@{save_4_base}' name='attr_save_4_base'/>
<input type='number' min='-20' max='0' value='0' title='@{save_4_mod}' name='attr_save_4_mod'/>
<input type='number' readonly title='@{save_4}' name='attr_save_4'/>
<button type='roll' class='rollButton' value='@{whispertoggle} &{template:custom} {{title=@{banner_savespells} **Saving Throw (Spells)**}} {{subtitle=@{character_title} @{selected|token_name}}} {{color=orange}} {{Target=[[@{save_5}]]}} {{Roll=[[1d20[die]+@{wil_mod}[wil]-@{fatigue}[fatigue]+(?{Modifier|0}[mod])]]}}' name='roll_save_5'> Spells</button>
<input type='number' min='1' max='20' value='17' title='@{save_5_base}' name='attr_save_5_base'/>
<input type='number' min='-20' max='0' value='0' title='@{save_5_mod}' name='attr_save_5_mod'/>
<input type='number' readonly title='@{save_5}' name='attr_save_5'/>
</div>
<div class='grid-monster'>
<label class='span-header' title='Mainly used for monster-only stats.'>Monster Stats</label>
<label>Alt Mode 1 <span title='Use to track an alternate form of monster movement.'>(?)</span></label>
<input class='smallWidth' type='text' title='@{alt_mode_1}' name='attr_alt_mode_1'/>
<label>Feet / Round</label>
<input class='smallWidth' type='text' title='@{alt_move_1}' name='attr_alt_move_1'/>
<label>Alt Mode 2 <span title='Use to track an alternate form of monster movement.'>(?)</span></label>
<input class='smallWidth' type='text' title='@{alt_mode_2}' name='attr_alt_mode_2'/>
<label>Feet / Round</label>
<input class='smallWidth' type='text' title='@{alt_move_2}' name='attr_alt_move_2'/>
<label>Alt Mode 3 <span title='Use to track an alternate form of monster movement.'>(?)</span></label>
<input class='smallWidth' type='text' title='@{alt_mode_3}' name='attr_alt_mode_3'/>
<label>Feet / Round</label>
<input class='smallWidth' type='text' title='@{alt_move_3}' name='attr_alt_move_3'/>
<label>Morale</label>
<input type='number' value='0' title='@{morale}' name='attr_morale'/>
<label>XP Value</label>
<input type='number' title='@{xp_value}' name='attr_xp_value' />
<label>Size</label>
<select class='sizeSelect' title='@{monster_size}' name='attr_monster_size'>
<option>Small</option>
<option selected>Medium</option>
<option>Large</option>
<option>Huge</option>
<option>Gigantic</option>
<option>Colossal</option>
</select>
<label>Treasure Type</label>
<input class='smallWidth' type='text' maxlength='3' title='@{treasure_type}' name='attr_treasure_type'/>
</div>
</div>
<hr/>
</section>
<section class='class'>
<div>
<label class='span-header'>Global Class Bonuses <span title='Use only for class-specific bonuses that are applied all the time.'>(?)</span></label>
<div class='grid-classbonuses'>
<label>Armor Class</label><input type='number' min='0' max='20' value='0' title='@{class_ac_bonus}' name='attr_class_ac_bonus'/>
<label>Dmg, Melee</label><input type='number' min='-5' max='20' value='0' title='@{class_damage_bonus}' name='attr_class_damage_bonus'/>
<label>Dmg, Missile</label><input type='number' min='-5' max='20' value='0' title='@{class_damage_bonus_missile}' name='attr_class_damage_bonus_missile'/>
<label>Hire Loyalty</label><input type='number' min='0' max='20' value='0' title='@{class_hireling_loyalty_bonus}' name='attr_class_hireling_loyalty_bonus'/>
<label>Initiative</label><input type='number' min='-5' max='20' value='0' title='@{class_initiative_bonus}' name='attr_class_initiative_bonus'/>
<label>Saving Throws <span title='OVERWRITES values entered into Saving Throws > Modifier column.'>(?)</span></label><input type='number' min='0' max='20' value='0' title='@{class_save_bonus}' name='attr_class_save_bonus'/>
<label>Surprise</label><input type='number' min='-5' max='20' value='0' title='@{class_surprise_bonus}' name='attr_class_surprise_bonus'/>
<label>Hench Morale</label><input type='number' min='0' max='20' value='0' title='@{class_henchmen_morale_bonus}' name='attr_class_henchmen_morale_bonus'/>
</div>
<hr/>
<label class='span-header'>Class Proficiencies</label>
<div class='grid-classprof'>
<label>Very Light Armor</label><input type='checkbox' value='1' title='@{class_ap_vlight}' name='attr_class_ap_vlight'/>
<label>Light Armor</label><input type='checkbox' value='1' title='@{class_ap_light}' name='attr_class_ap_light'/>
<label>Medium Armor</label><input type='checkbox' value='1' title='@{class_ap_medium}' name='attr_class_ap_medium'/>
<label>Heavy Armor</label><input type='checkbox' value='1' title='@{class_ap_heavy}' name='attr_class_ap_heavy'/>
<label>Single/Missile</label><input type='checkbox' checked/>
<label>Dual Weapon</label><input type='checkbox' value='1' title='@{class_fs_dual}' name='attr_class_fs_dual'/>
<label>Two-Handed Weapon</label><input type='checkbox' value='1' title='@{class_fs_2h}' name='attr_class_fs_2h'/>
<label>Weapon & Shield</label><input type='checkbox' value='1' title='@{fs_weapshield}' name='attr_fs_weapshield'/>
</div>
<label>Weapon Proficiencies </label><input class='weaponProfs' type='text' title='@{wp}' name='attr_wp'/>
<label>Class Template </label><input type='text' title='@{class_template}' name='attr_class_template'/>
<hr/>
<input type='hidden' class='hideCode' value='0' name='attr_show_behavior'/>
<div class='code'>
<label class='span-header'>Code of Behavior</label>
<textarea class='background' placeholder='Enter details...' title='@{codeOfBehavior}' name='attr_codeOfBehavior'></textarea>
<hr/>
</div>
<label class='span-header'>Class Description <span title='Intended to provide a player with a complete class description (copy/pasted from ACKS).'>(?)</span></label>
<textarea placeholder='Enter details from ACKS rules reference...' title='@{class_abilities}' name='attr_class_abilities'></textarea>
<hr/>
</div>
</section>
<section class='combat'>
<div class='grid-encounter-buttons'>
<button type='roll' class='wideButton' value='@{whispertoggle} &{template:custom} {{title=@{banner_init} **Initiative Roll**}} {{subtitle=@{character_title} @{selected|token_name}}} {{Roll=[[((1d6cs0cf0+@{dex_mod}[dex]+@{class_initiative_bonus}[class]+@{fss_single}[fss]+(@{mod_initiative}[mod1])+(?{Modifier|0}[mod2])))&{tracker}]]}}' name='roll_initiative'> Initiative</button>
<button type='roll' class='wideButton' value='@{whispertoggle} &{template:custom} {{title=@{banner_surprise} **Surprise Roll**}} {{subtitle=@{character_title} @{selected|token_name}}} {{Surprise=[[1d6cs0cf0+@{class_surprise_bonus}[class]-@{has_helm}[helm]+(@{mod_surprise}[mod1])+(?{Modifier|0}[mod2])]]}}' name='roll_surprise'> Surprise</button>
<button type='roll' class='wideButton' value='@{whispertoggle} &{template:custom} {{title=@{banner_reaction} **Reaction Roll**}} {{subtitle=@{character_title} @{selected|token_name}}} {{Roll=[[2d6cs0cf0+@{cha_mod}[cha]+(@{mod_reaction}[mod1])+(?{Modifier|0}[mod2])]]}} {{desc=2 or less: Hostile, attacks. 3-5: Unfriendly, may attack. 6-8: Neutral, uncertain. 9-11: Indifferent, uninterested. 12+: Friendly, helpful}}' name='roll_reaction'> Reaction</button>
<button type='roll' class='wideButton' value='/w gm &{template:custom} {{title=@{banner_morale} **Morale Roll**}} {{subtitle=@{character_title} @{selected|token_name}}} {{Roll=[[2d6cs0cf0+(@{morale}[rating])+(?{Modifier|0}[mod])]]}} {{desc=2 or less: Frightened Retreat. 3-5: Morale Faltering. 6-8: Fight On. 9-11: Advance and Pursue. 12+: Victory or Death}}' name='roll_morale'> Morale</button>
<input type='number' value='0' title='@{mod_initiative}' name='attr_mod_initiative'/>
<input type='number' value='0' title='@{mod_surprise}' name='attr_mod_surprise'/>
<input type='number' value='0' title='@{mod_reaction}' name='attr_mod_reaction'/>
<input type='number' value='0' title='@{mod_morale}' name='attr_mod_morale'/>
</div>
<hr/>
<div class='grid-armor'>
<label>Armor <span title='The armor currently being worn.'>(?)</span></label>
<label>Bonus</label>
<label>Shield</label>
<label>Helm <span title='Check only if heavy helm.'>(?)</span></label>
<label>Armor Class</label>
<label>Fighting Style Specialization</label>
<select title='@{armor}' name='attr_armor'>
<option value='0' selected>AC 0 - Clothing Only</option>
<option value='1'>AC 1 - Hide, Fur, or Padded</option>
<option value='2'>AC 2 - Leather or Arena</option>
<option value='3'>AC 3 - Ring or Scale</option>
<option value='4'>AC 4 - Chain, Laminated, or Arena</option>
<option value='5'>AC 5 - Banded or Lamellar</option>
<option value='6'>AC 6 - Plate</option>
</select>
<input type='number' value='0' title='@{armor_bonus}' name='attr_armor_bonus'/>
<input type='checkbox' value='1' title='@{has_shield}' name='attr_has_shield'/>
<input type='checkbox' value='1' title='@{has_helm}' name='attr_has_helm'/>
<input type='number' value='0' title='@{armor_class}' name='attr_armor_class' readonly/>
<select title='@{fss}' name='attr_fss'>
<option value='0' selected>None</option>
<option value='1'>Missile Weapon (+1 Atk)</option>
<option value='2'>Single Weapon (+1 Init)</option>
<option value='3'>Dual Weapons (+1 Atk)</option>
<option value='4'>Two-Handed (+1 Dmg)</option>
<option value='5'>Wpn & Shield (+1 AC)</option>
</select>
<input type='hidden' value='0' name='attr_fss_missile'/>
<input type='hidden' value='0' name='attr_fss_single'/>
<input type='hidden' value='1' name='attr_fss_dual'/>
<input type='hidden' value='0' name='attr_fss_two'/>
<input type='hidden' value='0' name='attr_fss_shield'/>
</div>
<input type='hidden' name='attr_fss_missile'/>
<hr/>
<div class='grid-attacks'>
<label>Attack Throw:</label>
<input type='number' min='-9' max='12' value='10' title='@{attack_throw}' name='attr_attack_throw'/>
<label>Max Cleaves:</label>
<input type='number' min='0' max='14' value='0' title='@{max_cleaves}' name='attr_max_cleaves'/>
<label>Attack Routine: </label>
<input type='text' value='1 (weapon)' title='@{num_attacks}' name='attr_num_attacks'/>
</div>
<hr/>
<div>
<label class='span-header'>Melee Attacks <span title='@{repeating_melee}'>(?)</span></label>
<fieldset class='repeating_melee'>
<button type='roll' class='reviewButton' value='/w @{character_name} &{template:custom} {{color=brown}} {{title=**Review Melee Attack**}} {{Attack/Weapon=@{melee_name}}} {{Attack Bonus=@{melee_bonus}}} {{Damage=@{melee_damage}}} {{Is Dual Wield=@{melee_is_dual}}} {{Is Finesse=@{melee_is_finesse}}} {{Is Two-handed=@{melee_is_2h}}} {{is Equipped=@{melee_equip}}} {{effects=@{melee_effects}}}' name='roll_review_melee'> Review</button>
<button type='roll' class='rollButton' value='@{whispertoggle} &{template:custom} {{title=@{banner_melee} **Melee Attack Throw**}} {{subtitle=@{character_title} @{selected|token_name}}} {{color=red}} {{Attack/Weapon=@{melee_name}}} {{Target=[[@{attack_throw}+(?{Target AC|0}[target AC])]]}} {{Roll=[[1d20+@{melee_attk_attr}+@{melee_bonus}[wpn]+(@{melee_is_dual}[dual]*@{fss_dual}[fss])-@{fatigue}[fatigue]+(?{Modifier|0}[mod])]]}} {{damage=[[{@{melee_damage}[wpn]+@{damage_attr}+(@{class_damage_bonus}[class])+(@{melee_is_2h}[2h]*@{fss_two}[fss])-@{fatigue}[fatigue], 0d1+1}k1]]}} {{effects=@{melee_effects}}}' name='roll_melee_attack'> Attack</button>
<input type='checkbox' title='@{melee_equip}' name='attr_melee_equip'/>
<input type='text' class='attackname' placeholder='Attack name...' title='@{melee_name}' name='attr_melee_name'/>
<label>Dmg:</label>
<input type='hidden' class='dmgcheck' name='attr_isBadDmgFormula'/>
<input class='reddmg' type='text' title='@{melee_damage}' name='attr_melee_damage'/>
<label>long</label>
<input type='checkbox' title='@{melee_is_long}' name='attr_melee_is_long'/>
<label>more...</label>
<input type='checkbox' class='toggle-show'/><br/>
<div class='details'>
<button type='roll' class='rollButton' value='@{whispertoggle} &{template:menu} {{title=@{banner_meleedamage} **Melee Damage Roll**}} {{subtitle=@{character_title} @{selected|token_name}}} {{color=red}} {{Attack/Weapon=@{melee_name}}} {{damage=[[{@{melee_damage}[wpn]+@{damage_attr}+(@{class_damage_bonus}[class])+(@{melee_is_2h}[2h]*@{fss_two}[fss])-@{fatigue}[fatigue], 0d1+1}k1]]}}' name='roll_melee_damage'> Damage</button>
<label>Attk Bonus:</label><input type='number' min='-10' max='10' value='0' title='@{melee_bonus}' name='attr_melee_bonus'/>
<label>dual</label><input type='checkbox' value='1' title='@{melee_is_dual}' name='attr_melee_is_dual'/>
<label>finesse</label><input type='hidden' value='@{str_mod}[str]' name='attr_melee_attk_attr'/><input type='checkbox' value='1' title='@{melee_is_finesse}' name='attr_melee_is_finesse'/>
<label>2h</label><input type='checkbox' value='1' title='@{melee_is_2h}' name='attr_melee_is_2h'/>
<textarea placeholder='Optional Effects description...' title='@{melee_effects}' name='attr_melee_effects'></textarea>
</div>
</fieldset>
</div>
<hr/>
<div>
<label class='span-header'>Missile Attacks <span title='@{repeating_missile}'>(?)</span></label>
<fieldset class='repeating_missile'>
<button type='roll' class='reviewButton' value='/w @{character_name} &{template:custom} {{color=brown}} {{title=**Review Missile Attack**}} {{Attack/Weapon=@{missile_name}}} {{Attack Bonus=@{missile_bonus}}} {{Damage=@{missile_damage}}} {{Ranges=@{missile_range}}} {{Ammo=@{missile_ammo}}} {{Is Thrown=@{missile_is_thrown}}} {{is Equipped=@{missile_equip}}} {{effects=@{missile_effects}}}' name='roll_review_missile'> Review</button>
<button type='action' class='missileButton' name='act_missile-attack'> Attack</button>
<input type='checkbox' title='@{missile_equip}' name='attr_missile_equip'/>
<input type='text' class='attackname' placeholder='Attack name...' title='@{missile_name}' name='attr_missile_name'/>
<label>Dmg:</label>
<input type='hidden' class='dmgcheck' name='attr_isBadDmgFormula'/>
<input class='reddmg' type='text' title='@{missile_damage}' name='attr_missile_damage'/>
<label>Rng:</label>
<input class='missilerange' type='text' title='@{missile_range}' name='attr_missile_range'/>
<label>Ammo:</label>
<input class='smallWidth' type='number' title='@{missile_ammo}' name='attr_missile_ammo'/>
<label>more...</label>
<input type='checkbox' class='toggle-show'/><br/>
<div class='details'>
<button type='roll' class='rollButton' value='@{whispertoggle} &{template:menu} {{title=@{banner_missiledamage} **Missile Damage Roll**}} {{subtitle=@{character_title} @{selected|token_name}}} {{color=red}} {{Attack/Weapon=@{missile_name}}} {{damage=[[{@{missile_damage}[wpn]+(@{missile_is_thrown}*@{damage_attr})+@{class_damage_bonus_missile}[class]+@{fss_missile}[fss]-@{fatigue}[fatigue], 0d1+1}k1]]}}' name='roll_missile_damage'> Damage</button>
<label>Attk Bonus:</label><input type='number' value='0' title='@{missile_bonus}' name='attr_missile_bonus'/>
<label>thrown</label><input type='checkbox' value='1' title='@{missile_is_thrown}' name='attr_missile_is_thrown'/>
<textarea placeholder='Optional Effects description...' title='@{missile_effects}' name='attr_missile_effects'></textarea>
</div>
</fieldset>
</div>
<hr/>
</section>
<section class='studious'>
<div class='grid-spellslots'>
<label class='span-header'>Studious Slots by Spell Level</label>
<label></label><label>level 1</label><label>level 2</label><label>level 3</label><label>level 4</label><label>level 5</label><label>level 6</label><label>level 7</label><label>level 8</label><label>level 9</label><label></label>
<label>Slots</label>
<input type='number' min='0' max='6' value='0' title='@{studious_1_max}' name='attr_studious_1_max' />
<input type='number' min='0' max='6' value='0' title='@{studious_2_max}' name='attr_studious_2_max' />
<input type='number' min='0' max='6' value='0' title='@{studious_3_max}' name='attr_studious_3_max' />
<input type='number' min='0' max='6' value='0' title='@{studious_4_max}' name='attr_studious_4_max' />
<input type='number' min='0' max='6' value='0' title='@{studious_5_max}' name='attr_studious_5_max' />
<input type='number' min='0' max='6' value='0' title='@{studious_6_max}' name='attr_studious_6_max' />
<input type='number' min='0' max='6' value='0' title='@{studious_7_max}' name='attr_studious_7_max' />
<input type='number' min='0' max='6' value='0' title='@{studious_8_max}' name='attr_studious_8_max' />
<input type='number' min='0' max='6' value='0' title='@{studious_9_max}' name='attr_studious_9_max' />
<span></span>
<label>Current</label>
<input type='number' min='0' max='6' value='0' title='@{studious_1}' name='attr_studious_1'/>
<input type='number' min='0' max='6' value='0' title='@{studious_2}' name='attr_studious_2'/>
<input type='number' min='0' max='6' value='0' title='@{studious_3}' name='attr_studious_3'/>
<input type='number' min='0' max='6' value='0' title='@{studious_4}' name='attr_studious_4'/>
<input type='number' min='0' max='6' value='0' title='@{studious_5}' name='attr_studious_5'/>
<input type='number' min='0' max='6' value='0' title='@{studious_6}' name='attr_studious_6'/>
<input type='number' min='0' max='6' value='0' title='@{studious_7}' name='attr_studious_7'/>
<input type='number' min='0' max='6' value='0' title='@{studious_8}' name='attr_studious_8'/>
<input type='number' min='0' max='6' value='0' title='@{studious_9}' name='attr_studious_9'/>
<button type='action' class='actionButton' name='act_reset_studious_spells'>Reset</button>
<label>Caster Level</label>
<input type='number' min='0' max='14' value='0' title='@{caster_level}' name='attr_caster_level'/>
</div>
<hr/>
<div>
<label class='span-header'>Studious Spells / Invocations <span title='@{repeating_spellsstudious}'>(?)</span></label>
<input class='toggle-show' type='checkbox' name='attr_showstudiousspelllist' checked/> show/hide
<div class='details'>
<fieldset class='repeating_spellsstudious'>
<button type='roll' class='reviewButton' value='/w @{character_name} &{template:custom} {{color=blue}} {{title=**@{spell_name}**}} {{subtitle=Studious Spell}} {{Spell Level=@{spell_level}}} {{Type=@{spell_type}}} {{Range=@{spell_range}}} {{Duration=@{spell_duration}}} {{Prepared=@{spell_prepared}}} {{desc=@{spell_details}}}' name='roll_review_spell'> Review</button>
<button type='roll' class='rollButton' value='@{whispertoggle} &{template:custom} {{color=blue}} {{title=@{banner_studious} **Casting @{spell_name}**}} {{subtitle=@{character_title} @{selected|token_name}}} {{Spell Level=@{spell_level}}} {{Type=@{spell_type}}} {{Range=@{spell_range}}} {{Duration=@{spell_duration}}} {{Caster Level=@{caster_level}}} {{Cast Confirmed=?{Confirm Action|Yes}}} {{desc=@{spell_details}}}' name='roll_cast_spell'> Cast</button>
<input type='text' placeholder='Spell name...' title='@{spell_name}' name='attr_spell_name'/>
<label>Spell Level:</label><input class='spellLevel' type='number' min='1' max='9' value='1' title='@{spell_level}' name='attr_spell_level'/>
<label>prepared</label><input type='checkbox' value='Yes' title='@{spell_prepared}' name='attr_spell_prepared'/>
<label>more...</label>
<input type='checkbox' class='toggle-show'/><br/>
<div class='details'>
<label>Type:</label><input type='text' title='@{spell_type}' name='attr_spell_type'/>
<label>Range:</label><input class='spellRange' type='text' title='@{spell_range}' name='attr_spell_range'/>
<label>Duration:</label><input class='spellDuration' type='text' title='@{spell_duration}' name='attr_spell_duration'/>
<textarea placeholder='Spell description...' title='@{spell_details}' name='attr_spell_details'></textarea>
</div>
</fieldset>
</div>
</div>
<hr/>
</section>
<section class='prayerful'>
<div class='grid-spellslots'>
<label class='span-header'>Prayerful Slots by Spell Level</label>
<label></label><label>level 1</label><label>level 2</label><label>level 3</label><label>level 4</label><label>level 5</label><label>level 6</label><label>level 7</label><label>level 8</label><label>level 9</label><label></label>
<label>Slots</label>
<input type='number' min='0' max='6' value='0' title='@{prayerful_1_max}' name='attr_prayerful_1_max' />
<input type='number' min='0' max='6' value='0' title='@{prayerful_2_max}' name='attr_prayerful_2_max' />
<input type='number' min='0' max='6' value='0' title='@{prayerful_3_max}' name='attr_prayerful_3_max' />
<input type='number' min='0' max='6' value='0' title='@{prayerful_4_max}' name='attr_prayerful_4_max' />
<input type='number' min='0' max='6' value='0' title='@{prayerful_5_max}' name='attr_prayerful_5_max' />
<input type='number' min='0' max='6' value='0' title='@{prayerful_6_max}' name='attr_prayerful_6_max' />
<input type='number' min='0' max='6' value='0' title='@{prayerful_7_max}' name='attr_prayerful_7_max' />
<input type='number' min='0' max='6' value='0' title='@{prayerful_8_max}' name='attr_prayerful_8_max' />
<input type='number' min='0' max='6' value='0' title='@{prayerful_9_max}' name='attr_prayerful_9_max' />
<span></span>
<label>Current</label>
<input type='number' min='0' max='6' value='0' title='@{prayerful_1}' name='attr_prayerful_1'/>
<input type='number' min='0' max='6' value='0' title='@{prayerful_2}' name='attr_prayerful_2'/>
<input type='number' min='0' max='6' value='0' title='@{prayerful_3}' name='attr_prayerful_3'/>
<input type='number' min='0' max='6' value='0' title='@{prayerful_4}' name='attr_prayerful_4'/>
<input type='number' min='0' max='6' value='0' title='@{prayerful_5}' name='attr_prayerful_5'/>
<input type='number' min='0' max='6' value='0' title='@{prayerful_6}' name='attr_prayerful_6'/>
<input type='number' min='0' max='6' value='0' title='@{prayerful_7}' name='attr_prayerful_7'/>
<input type='number' min='0' max='6' value='0' title='@{prayerful_8}' name='attr_prayerful_8'/>
<input type='number' min='0' max='6' value='0' title='@{prayerful_9}' name='attr_prayerful_9'/>
<button type='action' class='actionButton' name='act_reset_prayerful'>Reset</button>
<label>Caster Level</label>
<input type='number' min='0' max='14' value='0' title='@{caster_level}' name='attr_caster_level'/>
</div>
<hr/>
<div>
<label class='span-header'>Prayerful Spells / Invocations <span title='@{repeating_spellsprayerful}'>(?)</span></label>
<input class='toggle-show' type='checkbox' name='attr_showprayerfulspelllist' checked/> show/hide
<div class='details'>
<fieldset class='repeating_spellsprayerful'>
<button type='roll' class='reviewButton' value='/w @{character_name} &{template:custom} {{color=gold}} {{title=**@{spell_name}**}} {{subtitle=Prayerful Spell}} {{Spell Level=@{spell_level}}} {{Type=@{spell_type}}} {{Range=@{spell_range}}} {{Duration=@{spell_duration}}} {{desc=@{spell_details}}}' name='roll_review_spell'> Review</button>
<button type='roll' class='rollButton' value='@{whispertoggle} &{template:custom} {{color=gold}} {{title=@{banner_prayerful} **Casting @{spell_name}**}} {{subtitle=@{character_title} @{selected|token_name}}} {{Spell Level=@{spell_level}}} {{Type=@{spell_type}}} {{Range=@{spell_range}}} {{Duration=@{spell_duration}}} {{Caster Level=@{caster_level}}} {{Cast Confirmed=?{Confirm Action|Yes}}} {{desc=@{spell_details}}}' name='roll_cast_spell'> Cast</button>
<input type='text' placeholder='Spell name...' title='@{spell_name}' name='attr_spell_name'/>
<label>Level:</label><input class='spellLevel' type='number' min='1' max='9' value='1' title='@{spell_level}' name='attr_spell_level'/>
<label>more...</label>
<input type='checkbox' class='toggle-show'/><br/>
<div class='details'>
<label>Type:</label><input type='text' title='@{spell_type}' name='attr_spell_type'/>
<label>Range:</label><input class='spellRange' type='text' title='@{spell_range}' name='attr_spell_range'/>
<label>Duration:</label><input class='spellDuration' type='text' title='@{spell_duration}' name='attr_spell_duration'/>
<textarea placeholder='Spell description...' title='@{spell_details}' name='attr_spell_details'></textarea>
</div>
</fieldset>
</div>
</div>
<hr/>
</section>
<section class='skills'>
<div>
<label class='span-header'>Proficiencies <span title='@{repeating_skills}'>(?)</span></label>
<fieldset class='repeating_skills'>
<button type='roll' class='reviewButton' value='/w @{character_name} &{template:custom} {{color=brown}} {{title=**Review @{skill_name}**}} {{Rank=@{skill_rank}}} {{Type=@{skill_type}}} {{desc=@{skill_details}}}' name='roll_review_skill'> Review</button>
<button type='roll' class='rollButton' value='@{whispertoggle} &{template:custom} {{title=@{banner_profthrow} **Proficiency Throw**}} {{subtitle=@{character_title} @{selected|token_name}}} {{color=brown}} {{Using=@{skill_name}}} {{Target=[[@{skill_target}-((@{skill_rank}-1)*4)[rank]]]}} {{Roll=[[1d20[die]-@{fatigue}[fatigue]+(?{Modifier|0}[mod])]]}}' name='roll_skill_check'> Throw</button>
<input type='text' placeholder='Proficiency name...' title='@{skill_name}' name='attr_skill_name'/>
<label>Rank:</label><input type='number' min='0' max='4' value='1' title='@{skill_rank}' name='attr_skill_rank'/>
<label>Type:</label>
<select class='shorter' title='@{skill_type}' name='attr_skill_type'>
<option>Bonus</option>
<option>Class</option>
<option>Class Power</option>
<option selected>General</option>
</select>
<label>more...</label>
<input type='checkbox' class='toggle-show'/><br/>
<div class='details'>
<label class='detailslabel'>Target:</label>
<input class='skillScript' type='text' title='@{skill_target}' name='attr_skill_target'/><br/>
<textarea placeholder='Optional description...' title='@{skill_details}' name='attr_skill_details'></textarea>
</div>
</fieldset>
</div>
<hr/>
<div>
<label class='span-header'>Abilities <span title='@{repeating_abilities}'>(?)</span></label>
<fieldset class='repeating_abilities'>
<button type='roll' class='reviewButton' value='/w @{character_name} &{template:custom} {{color=brown}} {{title=**Review @{ability_name}**}} {{Source=@{ability_source}}} {{desc=@{ability_details}}}' name='roll_review_ability'> Review</button>
<button type='roll' class='rollButton' value='@{whispertoggle} &{template:custom} {{title=@{banner_abilitythrow} **Ability Throw**}} {{subtitle=@{character_title} @{selected|token_name}}} {{color=brown}} {{Using=@{ability_name}}} {{Target=[[@{ability_target}]]}} {{Roll=[[1d20[die]-@{fatigue}[fatigue]+(?{Modifier|0}[mod])]]}}' name='roll_ability_check'> Throw</button>
<input type='text' placeholder='Skill name...' title='@{ability_name}' name='attr_ability_name'/>
<label>Source: </label><input type='text' title='@{ability_source}' name='attr_ability_source'/>
<label>more...</label>
<input type='checkbox' class='toggle-show'/><br/>
<div class='details'>
<label class='detailslabel'>Target:</label><input class='skillScript' type='text' title='@{ability_target}' name='attr_ability_target'/><br/>
<textarea placeholder='Optional description...' title='@{ability_details}' name='attr_ability_details'></textarea>
</div>
</fieldset>
</div>
<hr/>
</section>
<section class='equipment'>
<div class='grid-encumbrance'>
<label>Capacity, Max</label> <input type='number' value='20' title='@{enc_capacity}' name='attr_enc_capacity' readonly/>
<label>Encumbrance</label>
<input type='hidden' class='encOverFive' name='attr_enc_over_five'/>
<input class='orangeEnc' type='number' value='0' title='@{encumbrance}' name='attr_encumbrance' readonly />
<label>Feet / Turn</label>
<input type='hidden' class='movecheck' name='attr_move_is_zero'/>
<input class='redmove' type='number' value='120' title='@{move_turn}' name='attr_move_turn' readonly/>
<label>Feet / Round</label>
<input type='hidden' class='movecheck' name='attr_move_is_zero'/>
<input class='redmove' type='number' value='40' title='@{move_round}' name='attr_move_round' readonly/>
</div>
<hr/>
<div>
<label class='span-header'>Equipment <span title='@{repeating_items}'>(?)</span></label>
<input class='toggle-show' type='checkbox' name='attr_show_equipment' checked/> show/hide
<div class='details'>
<fieldset class='repeating_items'>
<input type='text' placeholder='Item name...' title='@{item_name}' name='attr_item_name'/>
<label>#</label><input class='itemCount' type='number' min='0' value='1' title='@{item_count}' name='attr_item_count'/>
<label>stone</label><input class='itemWeight' type='number' min='0' value='0.16' step='.01' title='@{item_weight}' name='attr_item_weight'/>
<label>value</label><input class='itemValue' type='number' min='0' title='@{item_value}' name='attr_item_value'/>
<label>equipped</label><input type='checkbox' value='1' title='@{item_equipped}' name='attr_item_equipped' checked />
<label>more...</label><input type='checkbox' class='toggle-show'/><br/>
<div class='details'><textarea placeholder='Optional description...' title='@{item_details}' name='attr_item_details'></textarea></div>
</fieldset>
<input type='hidden' value='0' name='attr_items_weight'/>
</div>
</div>
<hr/>
</section>
<section class='wealth'>
<div class='grid-2column'>
<div class='grid-currency'>
<input type='hidden' value='0' name='attr_currency_weight'/>
<label class='span-header'>Currency</label>
<label></label><label>On Hand</label><label>Banked</label><label>New <span title='Use this to add/remove coins from On Hand column.'>(?)</span></label>
<label>PP <span title='=5gp'>(?)</span></label>
<input class='currency' type='number' value='0' min='0' title='@{platinum}' name='attr_platinum'/>
<input class='currency' type='number' value='0' min='0' title='@{platinum_bank}' name='attr_platinum_bank'/>
<input class='currency' type='number' value='0' title='@{platinum_found}' name='attr_platinum_found'/>
<label>GP <span title='=1gp'>(?)</span></label>
<input class='currency' type='number' value='0' min='0' title='@{gold}' name='attr_gold'/>
<input class='currency' type='number' value='0' min='0' title='@{gold_bank}' name='attr_gold_bank'/>
<input class='currency' type='number' value='0' title='@{gold_found}' name='attr_gold_found'/>
<label>EP <span title='=1/2gp'>(?)</span></label>
<input class='currency' type='number' value='0' min='0' title='@{electrum}' name='attr_electrum'/>
<input class='currency' type='number' value='0' min='0' title='@{electrum_bank}' name='attr_electrum_bank'/>
<input class='currency' type='number' value='0' title='@{electrum_found}' name='attr_electrum_found'/>
<label>SP <span title='=1/10gp'>(?)</span></label>
<input class='currency' type='number' value='0' min='0' title='@{silver}' name='attr_silver'/>
<input class='currency' type='number' value='0' min='0' title='@{silver_bank}' name='attr_silver_bank'/>
<input class='currency' type='number' value='0' title='@{silver_found}' name='attr_silver_found'/>
<label>CP <span title='=1/100gp'>(?)</span></label>
<input class='currency' type='number' value='0' min='0' title='@{copper}' name='attr_copper'/>
<input class='currency' type='number' value='0' min='0' title='@{copper_bank}' name='attr_copper_bank'/>
<input class='currency' type='number' value='0' title='@{copper_found}' name='attr_copper_found'/>
<label></label><label>capacity</label><label>wealth</label>
<button class='actionButton' type='action' title='Click to move coins from New to On Hand.' name='act_claim_currency'>Claim</button>
<span></span>
<input class='currency' type='number' value='0' title='@{currency_capacity}' name='attr_currency_capacity' readonly/>
<input class='currency' type='number' value='0' title='@{currency_wealth}' name='attr_currency_wealth' readonly/>
<span></span>
</div>
<div class='grid-2column'>
<label class='span-header'>Monthly Budget</label>
<label>Living Standard (Level)</label>
<select title='@{living_standard}' name='attr_living_standard'>
<option value='1'>Wretched</option>
<option value='3'>Meager</option>
<option value='12' selected>Adequate (1)</option>
<option value='40'>Comfortable (2)</option>
<option value='100'>Prosperous (3-4)</option>
<option value='450'>Affluent (5-7)</option>
<option value='2000'>Sumptuous (8-9)</option>
<option value='12000'>Luxuriant (10-12)</option>
<option value='80000'>Lavishly Opulent (13-14)</option>
</select>
<label>Hireling Wages</label>
<div><input class='currency' type='number' value='0' title='@{hireling_fees}' name='attr_hireling_fees' readonly/> gp</div>
<label>Professional Income</label>
<div><input type='number' value='0' title='@{professional_income}' name='attr_professional_income'/> gp</div>
<hr class='spangrid'/>
<label class='emphasis'>Monthly Balance</label>
<div><input type='number' value='-12' title='@{monthly_balance}' name='attr_monthly_balance' readonly/> gp</div>
</div>
</div>
<hr/>
<div>
<label class='span-header'>Passive Investments <span title='@{repeating_investments}'>(?)</span></label>
<input class='toggle-show' type='checkbox' name='attr_show_investments' checked/> show/hide
<div class='details'>
<fieldset class='repeating_investments'>
<label>Amount</label><input class='currency' type='number' min='0' title='@{investment_amount}' name='attr_investment_amount'/>
<label>Type</label>
<select class='shorter' title='@{investment_type}' name='attr_investment_type'>
<option value='1'>Buisiness Establishment</option>
<option value='2'>Commercial Investment</option>
<option value='3'>Money Lending</option>
</select>
<label>Level of Risk</label>
<select class='shorter' title='@{investment_risk}' name='attr_investment_risk'>
<option value='1'>Safe (0.25% / mo.)</option>
<option value='2'>Cautious (0.5% / mo.)</option>
<option value='3'>Balanced (1% / mo.)</option>
<option value='4'>Risky (3% / mo.)</option>
<option value='5'>Perilous (9% / mo.)</option>
</select>
<label>more...</label><input type='checkbox' class='toggle-show'/><br/>
<div class='details'><textarea placeholder='Investment details...' title='@{investment_details}' name='attr_investment_details'></textarea></div>
</fieldset>
</div>
</div>
<hr/>
</section>
<section class='hirelings'>
<div class='grid-2column'>
<div class='grid-hirelings'>
<label>Henchmen Limit:</label>
<input type='hidden' class='henchmenCheck' name='attr_henchmen_count'/>
<input class='limitExceeded' type='number' value='4' title='@{henchmen_limit}' name='attr_henchmen_limit' readonly/>
<label></label><label></label>
</div>
<div class='grid-hirelings'>
<label>Hireling Wages:</label><input class='currency' type='number' value='0' title='@{hireling_fees}' name='attr_hireling_fees' readonly/>
<label></label><label></label>
</div>
</div>
<hr/>
<div>
<label class='span-header'>Henchmen <span title='@{repeating_henchmen}'>(?)</span></label>
<fieldset class='repeating_henchmen'>
<input class='hirelingName' type='text' placeholder='Name...' title='@{henchman_name}' name='attr_henchman_name'/>
<label class='detailslabel'>Loyalty:</label>
<button type='roll' class='rollButton' value='@{whispertoggle} &{template:custom} {{title=@{banner_henchmen} **Loyalty Roll**}} {{subtitle=@{henchman_name}}} {{color=black}} {{Roll=[[2d6cs0cf0+(@{henchman_loyalty}[loyalty])+(@{cha_mod}[CHA])+(@{class_hireling_loyalty_bonus}[class])+((?{Modifier|0}[mod]))]]}} {{desc=2 or less: Hostility 3-5: Resignation 6-8: Gruding Loyalty 9-11: Loyalty 12+: Fanatic Loyalty}}' name='roll_henchman_loyalty_check' ></button>
<input type='number' min='-4' max='4' value='0' title='@{henchman_loyalty}' name='attr_henchman_loyalty'/>
<label class='detailslabel'>Morale:</label>
<button type='roll' class='rollButton' value='@{whispertoggle} &{template:custom} {{title=@{banner_henchmen} **Morale Roll**}} {{subtitle=@{henchman_name}}} {{color=black}} {{Roll=[[2d6cs0cf0+(@{henchman_morale}[morale])+(@{class_henchmen_morale_bonus}[class])+((?{Modifier|0}[mod]))]]}} {{desc=2 or less: Refuses 3-5: Begrudging 6+: Compliant}}' name='roll_henchman_obedience_check' ></button>
<input type='number' min='-4' max='4' value='0' title='@{henchman_morale}' name='attr_henchman_morale'/>
<label>Wage (gp):</label>
<input class='currency' type='number' value='12' title='@{henchman_fee}' name='attr_henchman_fee' readonly/>
<label>more...</label>
<input type='checkbox' class='toggle-show' /><br/>
<div class='details'>
<label>Class:</label>
<input type='text' class='henchClass' title='@{henchman_class}' name='attr_henchman_class'/>
<label>Level:</label>
<input type='number' min='0' max='14' value='0' title='@{henchman_level}' name='attr_henchman_level'/>
<textarea placeholder='Enter notes here...' title='@{henchman_details}' name='attr_henchman_details'></textarea>
</div>
</fieldset>
<input type='hidden' name='attr_henchmen_fees'/>
</div>
<hr/>
<div>
<label class='span-header'>Mercenaries <span title='@{repeating_mercenaries}'>(?)</span></label>
<fieldset class='repeating_mercenaries'>
<input class='hirelingName' type='text' placeholder='Name...' title='@{merc_name}' name='attr_merc_name'/>
<label class='detailslabel'>Loyalty:</label>
<button type='roll' class='rollButton' value='@{whispertoggle} &{template:custom} {{title=@{banner_mercenary} **Loyalty Roll**}} {{subtitle=@{merc_name}}} {{color=black}} {{Roll=[[2d6cs0cf0+(@{merc_loyalty}[loyalty])+(@{cha_mod}[CHA])+(@{class_hireling_loyalty_bonus}[class])+((?{Modifier|0}[mod]))]]}} {{desc=2 or less: Hostility 3-5: Resignation 6-8: Gruding Loyalty 9-11: Loyalty 12+: Fanatic Loyalty}}' name='roll_merc_loyalty_check' ></button>
<input type='number' min='-4' max='4' value='0' title='@{merc_loyalty}' name='attr_merc_loyalty'/>
<label class='detailslabel'>Morale:</label>
<button type='roll' class='rollButton' value='@{whispertoggle} &{template:custom} {{title=@{banner_mercenary} **Morale Roll**}} {{subtitle=@{merc_name}}} {{color=black}} {{Roll=[[2d6cs0cf0+(@{merc_morale}[morale])+(@{class_henchmen_morale_bonus}[class])+((?{Modifier|0}[mod]))]]}} {{desc=2 or less: Refuses 3-5: Begrudging 6+: Compliant}}' name='roll_merc_obedience_check' ></button>
<input type='number' min='-4' max='4' value='0' title='@{merc_morale}' name='attr_merc_morale'/>
<label>Wage (gp):</label>
<input class='currency' type='number' title='@{merc_fees}' name='attr_merc_fees' readonly/>
<label>more...</label>
<input type='checkbox' class='toggle-show' /><br/>
<div class='details'>
<label>Type:</label>
<input class='mercType' type='text' title='@{merc_type}' name='attr_merc_type'/>
<label>Race:</label>
<input class='mercRace' type='text' title='@{merc_race}' name='attr_merc_race'/>
<label>Set Wage (gp, per troop):</label>
<input class='currency' type='number' value='0' title='@{merc_fee}' name='attr_merc_fee'/>
<label>Quantity:</label>
<input type='number' min='0' value='0' title='@{merc_number}' name='attr_merc_number'/>
<textarea placeholder='Enter notes here...' title='@{merc_details}' name='attr_merc_details'></textarea>
</div>
</fieldset>
<input type='hidden' name='attr_mercenary_fees'/>
</div>
<hr/>
<div>
<label class='span-header'>Specialists <span title='@{repeating_specialists}'>(?)</span></label>
<fieldset class='repeating_specialists'>
<input class='hirelingName' type='text' placeholder='Name...' title='@{spec_name}' name='attr_spec_name'/>
<label class='detailslabel'>Loyalty:</label>
<button type='roll' class='rollButton' value='@{whispertoggle} &{template:custom} {{title=@{banner_specialist} **Loyalty Roll**}} {{subtitle=@{spec_name}}} {{color=black}} {{Roll=[[2d6cs0cf0+(@{spec_loyalty}[loyalty])+(@{cha_mod}[CHA])+((?{Modifier|0}[mod]))]]}} {{desc=2 or less: Hostility 3-5: Resignation 6-8: Gruding Loyalty 9-11: Loyalty 12+: Fanatic Loyalty}}' name='roll_spec_loyalty_check' ></button>
<input type='number' min='-4' max='4' value='0' title='@{spec_loyalty}' name='attr_spec_loyalty'/>
<label class='detailslabel'>Morale:</label>
<button type='roll' class='rollButton' value='@{whispertoggle} &{template:custom} {{title=@{banner_specialist} **Morale Roll**}} {{subtitle=@{spec_name}}} {{color=black}} {{Roll=[[2d6cs0cf0+(@{spec_morale}[morale])+((?{Modifier|0}[mod]))]]}} {{desc=2 or less: Refuses 3-5: Begrudging 6+: Compliant}}' name='roll_spec_obedience_check' ></button>
<input type='number' min='-4' max='4' value='0' title='@{spec_morale}' name='attr_spec_morale'/>
<label>Wage (gp):</label>
<input class='currency' type='number' value='0' title='@{spec_fee}' name='attr_spec_fee' readonly/>
<label>more...</label>
<input type='checkbox' class='toggle-show' /><br/>
<div class='details'>
<label>Type:</label>
<input type='text' class='specType' title='@{spec_occupation}' name='attr_spec_occupation'/>
<label>Set Wage (gp):</label>
<input class='currency' type='number' value='0' title='@{spec_fee}' name='attr_spec_fee'/>
<textarea placeholder='Enter notes here...' title='@{spec_details}' name='attr_spec_details'></textarea>
</div>
</fieldset>
<input type='hidden' name='attr_specialist_fees'/>
</div>
<hr/>
</section>
<section class='journal'>
<div>
<label class='span-header'>Character Background</label>
<textarea class='background' placeholder='Enter details...' title='@{background}' name='attr_background'></textarea>
</div>
<div class='grid-journal'>
<div class='journalbox'>
<label class='span-header'>Appearance</label>
<textarea class='journalnotes' placeholder='Enter details...' title='@{appearance}' name='attr_appearance'></textarea>
</div>
<div class='journalbox'>
<label class='span-header'>Languages</label>
<textarea class='journalnotes' placeholder='Enter details...' title='@{languages}' name='attr_languages'>Common</textarea>
</div>
<div class='journalbox'>
<label class='span-header'>Injuries</label>
<textarea class='journalnotes' placeholder='Enter details...' title='@{injuries}' name='attr_injuries'></textarea>
</div>
<div class='journalbox'>
<label class='span-header'>Property & Debts</label>
<textarea class='journalnotes' placeholder='Enter details...' title='@{property}' name='attr_property'></textarea>
</div>
</div>
<div>
<label class='span-header'>Adventuring Notes <span title='@{repeating_journal}'>(?)</span></label>
<fieldset class='repeating_journal'>
<label>Title: </label><input type='text' title='@{journal_title}' name='attr_journal_title'/>
<label>more... </label><input type='checkbox' class='toggle-show' />
<div class='details'><textarea placeholder='Enter details...' title='@{journal_details}' name='attr_journal_details'></textarea></div>
</fieldset>
</div>
<hr/>
<div>
<label class='span-header'>Experience Log <span title='@{repeating_experience}'>(?)</span></label>
<fieldset class='repeating_experience'>
<label>Date: </label><input class='xpdate' type='text' title='@{xp_date}' name='attr_xp_date'/>
<label>XP: </label><input class='xpamount' type='number' title='@{xp_amount}' name='attr_xp_amount'/>
<label>Bonus %: </label><input class='xpamount' type='number' title='@{xp_bonus}' name='attr_xp_bonus'/>
<label>Note: </label><input class='xpdescription' type='text' title='@{xp_description}' name='attr_xp_description'/>
</fieldset>
</div>
<hr/>
</section>
<section class='settings'>
<div class='grid-settings'>
<label class='span-header'>Sheet Settings</label>
<label>Save Attributes</label>
<button type='action' class='actionButton' name='act_save_attrs'>Update</button>
<span>Copy the character's attribute values into the Overview tab's Nominal column.</span>
<label>Experience % Modifier</label>
<input type='number' value='0' title='@{xp_modifier}' name='attr_xp_modifier'/>
<span>Modify the character's XP modifier from key attributes.</span>
<label>Damage Attribute</label>
<input type='hidden' value='@{str_mod}[str]' name='attr_damage_attr'/>
<select class='settingsSelect' title='@{select_damage_attr}' name='attr_select_damage_attr'>
<option selected>str</option>
<option>int</option>
<option>wil</option>
<option>dex</option>
<option>con</option>
<option>cha</option>
</select>
<span>Set the attribute modifier used to modify melee/thrown damage rolls.</span>
<label>Roll Attributes</label>
<div>
<button type='action' class='actionButton' name='act_roll_PC'>PC</button>
<button type='action' class='actionButton' name='act_roll_0th'>0th</button>
</div>
<span>Replaces the character's current attributes with a new, randomly rolled set.</span>
<hr class='spangrid'/>
<label>Hide Studious Tab</label>
<input type='checkbox' value='1' title='@{toggle_studious}' name='attr_toggle_studious'/>
<span>Hide the Studious tab on the character sheet.</span>
<label>Hide Prayerful Tab</label>
<input type='checkbox' value='1' title='@{toggle_prayerful}' name='attr_toggle_prayerful'/>
<span>Hide the Prayerful tab on the character sheet.</span>
<label>Hide Code of Behavior</label>
<input type='checkbox' value='1' title='@{toggle_behavior}' name='attr_toggle_behavior'/>
<span>Hide the Code of Behavior section on the Class tab.</span>
<label>Enc Alert</label>
<input type='checkbox' value='1' title='@{enc_alert_toggle}' name='attr_enc_alert_toggle'/>
<span>Highlight the encumbrance field if/when the value exceeds the Encumbrance Alert Threshold.</span>
<label>End Alert Threshold</label>
<input type='number' min='0' value='5' title='@{move_alertThresh}' name='attr_move_alertThresh'/>
<span>The Encumbrance Alert threshold.</span>
<hr class='spangrid'/>
<label>Enc Threshold 1</label>
<input type='number' min='0' value='5' title='@{move_thresh1}' name='attr_move_thresh1'/>
<span>Set the character's first encumbrance threshold.</span>
<label>Enc Threshold 2</label>
<input type='number' min='0' value='7' title='@{move_thresh2}' name='attr_move_thresh2'/>
<span>Set the character's second encumbrance threshold.</span>
<label>Enc Threshold 3</label>
<input type='number' min='0' value='10' title='@{move_thresh3}' name='attr_move_thresh3'/>
<span>Set the character's third encumbrance threshold.</span>
<label>Max Encumbrance</label>
<input type='number' min='0' value='20' title='@{base_enc}' name='attr_base_enc'/>
<span>Set the character's maximum encumbrance threshold.</span>
<label>Max Movement</label>
<input type='number' min='0' value='120' title='@{base_movement}' name='attr_base_movement'/>
<span>Set the character's maximum base land movement speed.</span>
</div>
<hr/>
</section>
<div>
<p>Designed for use with the Adventurer Conqueror King System, Imperial Imprint and published under the ACKS SRD/OGL, https://github.com/capheind/ACKS_SRD.</p>
</div>
<!-- Banner placeholders (see readme) -->
<input type='hidden' name='attr_banner_abilitythrow' value=''/>
<input type='hidden' name='attr_banner_hd' value=''/>
<input type='hidden' name='attr_banner_henchmen' value=''/>
<input type='hidden' name='attr_banner_init' value=''/>
<input type='hidden' name='attr_banner_knowledge' value=''/>
<input type='hidden' name='attr_banner_melee' value=''/>
<input type='hidden' name='attr_banner_meleedamage' value=''/>
<input type='hidden' name='attr_banner_mercenary' value=''/>
<input type='hidden' name='attr_banner_missile' value=''/>
<input type='hidden' name='attr_banner_missiledamage' value=''/>
<input type='hidden' name='attr_banner_morale' value=''/>
<input type='hidden' name='attr_banner_prayerful' value=''/>
<input type='hidden' name='attr_banner_profthrow' value=''/>
<input type='hidden' name='attr_banner_reaction' value=''/>
<input type='hidden' name='attr_banner_saveblast' value=''/>
<input type='hidden' name='attr_banner_savedeath' value=''/>
<input type='hidden' name='attr_banner_saveimplements' value=''/>
<input type='hidden' name='attr_banner_saveparalysis' value=''/>
<input type='hidden' name='attr_banner_savespells' value=''/>
<input type='hidden' name='attr_banner_specialist' value=''/>
<input type='hidden' name='attr_banner_studious' value=''/>
<input type='hidden' name='attr_banner_surprise' value=''/>
<script type='text/worker'>
/**************************************************
** Global Constants
***************************************************/
const ATTR_SCORE_DEFAULT = 10;
const ATTR_MELEE_MOD_DEFAULT = '@{str_mod}[str]';
const ATTR_MELEE_MOD_FINESSE = '@{dex_mod}[dex]';
const COIN_WEIGHT = 0.001;
const CURRENT_VERSION = 2;
const DIE_DELIMITER = 'd';
const EMPTY_STRING = '';
const HENCHMEN_LIMIT = 4;
const INIT_HP = 1;
const INIT_MOVE_ROUND = 40;
const INIT_AC = 0;
const SAVE_MIN_TARGET = 1;
const XP_BONUS_MAX = 10;
/**************************************************
** On Sheet Initialization / Opening
***************************************************/
on('sheet:opened',function(){
getAttrs(['sheet_version', 'hit_dice'], function(values) {
const sheetVersion = parseInt(values.sheet_version) || 0;
const hitDice = values.hit_dice;
const output = {};
// Force creation of sheet attributes that can be bound to
// immediately by token bars (w/o having to change attributes manually).
// On first load only.
if (sheetVersion < 1)
{
output['hp'] = output['hp_max'] = INIT_HP;
output['move_round'] = INIT_MOVE_ROUND;
output['armor_class'] = INIT_AC;
}
// Initialize the hit dice field (to ensure flagging on a new sheet)
output['isBadHDFormula'] = (hitDice == EMPTY_STRING) ? 1 : 0;
// Set upgrade version to latest
output['sheet_version'] = CURRENT_VERSION;
setAttrs(output);
});
});
/**************************************************
** Sheet Helper Functions
***************************************************/
// global helper to retrieve repeating section item ids
function getID(repeatingItemName) {
const idStartPosition = repeatingItemName.indexOf('_',10) + 1;
const idEndPosition = repeatingItemName.indexOf('_',idStartPosition+1);
const theID = repeatingItemName.substring(idStartPosition, idEndPosition);
return theID;
};
// Randomly shuffles the contents of an array
// Note that the original array is shuffled as well.
function shuffleArray(arr) {
for (var i = arr.length - 1; i > 0; i--) {
let j = Math.floor(Math.random() * (i + 1));
[arr[i], arr[j]] = [arr[j], arr[i]];
}
return arr;
}
// Roll dice
function rollDice(numDice, numSides, numDrop) {
const theDice = parseInt(numDice) || 1; // assume 1 die
const theSides = parseInt(numSides) || 6; // assume a d6
const theDrop = parseInt(numDrop) || 0; // assume drop none
const results = [];
for (var i = 0; i < theDice; i++) { results.push(Math.floor(Math.random() * theSides + 1)); }
results.sort(compareNumbers);
for (var i = 0; i < theDrop; i++) { results.pop(); }
let result = 0;
for (var i = 0; i < results.length; i++) { result += results[i]; }
return result;
function compareNumbers(a, b) {
return b - a;
}
}
// Validates a dice formula.
// If validation fails, return an empty string.
// A valid dice formula is [num]d[num][+/1][num].
// E.G. 2d6, 1d4-1, 9d8+2, 40d3, etc.
function validateDieFormula(theDieFormula) {
const theDelimiter = theDieFormula.toLowerCase().indexOf(DIE_DELIMITER);
if (theDelimiter == -1) return EMPTY_STRING; // bad string
const numberOfHitDice = theDieFormula.slice(0,theDelimiter);
if (isNaN(numberOfHitDice)) return EMPTY_STRING; // bad string
const restOfString = theDieFormula.slice(theDelimiter + 1);
const theOperator = restOfString.indexOf('+') > -1 ? restOfString.indexOf('+') : restOfString.indexOf('-') > -1 ? restOfString.indexOf('-') : -1;
const numSides = theOperator != -1 ? restOfString.slice(0,theOperator) : restOfString;
if (isNaN(numSides)) return EMPTY_STRING; // bad string
const modValue = theOperator != -1 ? restOfString.slice(theOperator + 1) : 0;
if (isNaN(modValue)) return EMPTY_STRING; // bad string
// All tests passed
return theDieFormula;
};
/**************************************************
** Tab Controls / Header
***************************************************/
// Select/deselect buttons
const buttonlist = ['overview','class','studious','prayerful', 'skills','combat','equipment','wealth','hirelings','journal','settings'];
buttonlist.forEach(button => {
on(`clicked:${button}`, function() {
setAttrs({
sheetButtons: button,
sheetTab: button
});
});
});
// Show/hide the Studious tab