-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsheet_rot_standard1.dat
2093 lines (1790 loc) · 61.6 KB
/
sheet_rot_standard1.dat
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
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- This file contains the definition of the first page of the standard character
sheet for output. The character sheet has been carved into a simple two-column
presentation that is used by many game systems, with some information on the
left and other material on the right. You can use whatever overall layout you
prefer, using this sample as a guideline.
A variety of display techniques have been used on this one character sheet to
provide examples of how to present information in different ways. You will
likely choose one or two of these methods and use them exclusively within your
own data files, but this gives you various styles to choose from.
The second page of the character sheet will be found in "sheet_standard2.dat".
-->
<document signature="Hero Lab Data">
<!-- Hero Lab & Game System Logos
NOTE! These could be easily wrapped inside a template or used directly within
a layout, as we do here. Both methods are perfectly reasonable.
-->
<!-- oHLLogo portal - Hero Lab logo -->
<portal
id="oRoTHLLogo"
style="outNormal">
<output_image
image="sheet_hllogo.bmp">
</output_image>
</portal>
<!-- oGameLogo portal - game system logo -->
<portal
id="oRoTGameLogo"
style="outNormal"
width="0"
height="0">
<output_image
image="sheet_rot_gamelogo.bmp">
</output_image>
</portal>
<!-- Hero and Player Info
NOTE! These could be easily wrapped inside a template or used directly within
a layout, as we do here. Both methods are perfectly reasonable.
-->
<!-- oHeroName portal - name of the actor -->
<portal
id="oRoTHeroName"
style="outHeroNameLarge">
<output_label>
<labeltext><![CDATA[
@text = hero.actorname
if (empty(@text) <> 0) then
@text = "- Unnamed Hero -"
endif
]]></labeltext>
</output_label>
</portal>
<!-- oHeroInfo portal - details about the actor -->
<portal
id="oRoTHeroInfo"
style="outLarge">
<output_label>
<labeltext><![CDATA[
var temp as string
@text = "{size 36}Total XP: " & #resmax[resXP]
~if (#resleft[resXP] <> 0) then
@text &= " (" & #resleft[resXP] & " Available)"
~ endif
@text &= "{br}{align left}{/b}"
temp = hero.findchild[Archetype].field[name].text
if (empty(temp) <> 0) then
temp = "Unknown"
endif
@text &= "Species: " & temp & "{br}"
temp = hero.findchild[Career].field[name].text
if (empty(temp) <> 0) then
temp = "Unknown"
endif
@text &= "Career: " & temp
if (empty(hero.playername) = 0) then
@text &= "{br}" & "Player: " & hero.playername & "{br}"
endif
]]></labeltext>
</output_label>
</portal>
<!-- oAttribute portal
This is a table of Attributes for the actor. Attributes use the same template
for both the contents and the header across the top. See the template for
more details on this.
-->
<portal
id="oRoTAttribute"
style="outNormal">
<output_table
component="Attribute"
showtemplate="oAttrPick"
headertemplate="oAttrPick"
showsortset="explicit">
</output_table>
</portal>
<portal
id="oRoTAttributeWide"
style="outNormal">
<output_table
component="Attribute"
showtemplate="oRoTAttrPickWide"
showsortset="explicit"
columns="6">
<headertitle><![CDATA[
@text = "Characteristics"
]]></headertitle>
</output_table>
</portal>
<!-- oDerived portal
This is a table of Derived Traits for the actor. Only resistance and combat
traits are included in the list of derived traits within the character sheet.
-->
<portal
id="oRoTDerived"
style="outTblGrid">
<output_table
component="Trait"
showtemplate="oDerivPick"
showsortset="explicit">
<list><![CDATA[
User.Resistance | User.Combat
]]></list>
<headertitle><![CDATA[
@text = "Derived Traits"
]]></headertitle>
</output_table>
</portal>
<portal
id="oRoTDerivedWide"
style="outNormal">
<output_table
component="Trait"
showtemplate="oRoTDerivPickWide"
showsortset="explicit"
columns="5">
<list><![CDATA[
User.OutputDefLine
]]></list>
</output_table>
</portal>
<!-- oPower portal
This is a table of the Health and Power traits for the actor. Only traits
with the "Power" tag are included in this table.
-->
<portal
id="oRoTPower"
style="outNormal">
<output_table
component="Trait"
showtemplate="oPowerPick"
showsortset="explicit">
<list><![CDATA[
User.Power
]]></list>
<headertitle><![CDATA[
@text = "Health and Power"
]]></headertitle>
</output_table>
</portal>
<!-- oAbility portal
This is a table of all Special Abilities for the actor.
-->
<portal
id="oRoTAbility"
style="outNormal">
<output_table
component="Ability"
showtemplate="oAbilPick">
<list><![CDATA[
]]></list>
<headertitle><![CDATA[
@text = "Special Abilities"
]]></headertitle>
</output_table>
</portal>
<!-- oSkills portal
This is a table of all Skills for the actor.
-->
<portal
id="oRoTSkills"
style="outNormal">
<output_table
component="Skill"
showtemplate="oSkillPick">
<list><![CDATA[
]]></list>
<headertitle><![CDATA[
@text = "Skills"
]]></headertitle>
</output_table>
</portal>
<portal
id="oRoTSkillsGeneral"
style="outTblGrid">
<output_table
component="Skill"
showtemplate="oRoTSkillPick"
headertemplate="oRoTHdrSkillGen">
<list><![CDATA[
SkillCat.General
]]></list>
</output_table>
</portal>
<portal
id="oRoTSkillsMagic"
style="outTblGrid">
<output_table
component="Skill"
showtemplate="oRoTSkillPick">
<list><![CDATA[
SkillCat.Magic
]]></list>
<headertitle><![CDATA[
@text = "Magic Skills"
]]></headertitle>
</output_table>
</portal>
<portal
id="oRoTSkillsCombat"
style="outTblGrid">
<output_table
component="Skill"
showtemplate="oRoTSkillPick">
<list><![CDATA[
SkillCat.Combat
]]></list>
<headertitle><![CDATA[
@text = "Combat Skills"
]]></headertitle>
</output_table>
</portal>
<portal
id="oRoTSkillsKnowledge"
style="outTblGrid">
<output_table
component="Skill"
showtemplate="oRoTSkillPick">
<list><![CDATA[
SkillCat.Know
]]></list>
<headertitle><![CDATA[
@text = "Knowledge Skills"
]]></headertitle>
</output_table>
</portal>
<portal
id="oRoTSkillsSocial"
style="outTblGrid">
<output_table
component="Skill"
showtemplate="oRoTSkillPick">
<list><![CDATA[
SkillCat.Social
]]></list>
<headertitle><![CDATA[
@text = "Social Skills"
]]></headertitle>
</output_table>
</portal>
<!-- oGear portal
This is a table of all Gear carried by the actor. The gear list needs to
exclude weapons and armor, since those are already listed in the separate
sections for those item types.
-->
<portal
id="oRoTGear"
style="outNormal">
<output_table
component="Gear"
showtemplate="oGearPick">
<list><![CDATA[
!component.WeaponBase & !component.Defense & !Print.NoPrint
]]></list>
<headertitle><![CDATA[
var moneyvalue as number
var money as string
moneyvalue = herofield[acCashNet].value
call Money
@text = "Gear (Cash: " & money & ")"
]]></headertitle>
</output_table>
</portal>
<!-- oArmor portal
This is a table of all Armor and Shields carried by the actor.
-->
<portal
id="oRoTArmor"
style="outNormal">
<output_table
component="Defense"
showtemplate="oArmorPick"
showsortset="Armory">
<list><![CDATA[
]]></list>
<headertitle><![CDATA[
@text = "Armor"
]]></headertitle>
</output_table>
</portal>
<!-- oWeapon portal
This is a table of all Weapons carried by the actor. Weapons use the same
template for both the contents and the header across the top. See the
template for more details on this.
-->
<portal
id="oRoTWeapon"
style="outNormal">
<output_table
component="WeaponBase"
showtemplate="oRoTWeapPick"
headertemplate="oRoTWeapPick"
showsortset="Armory">
<list><![CDATA[
]]></list>
</output_table>
</portal>
<!-- oAdjust portal
This is a table of all Activated Adjustments applied to the actor, which
includes all permanent adjustments, all activated abilities, and all activated
temporary adjustments. We use a two-column table layout for compactness.
-->
<portal
id="oRoTAdjust"
style="outNormal">
<output_table
component="Adjustment"
showtemplate="oAdjPick"
columns="2">
<list><![CDATA[
Helper.Activated
]]></list>
<headertitle><![CDATA[
@text = "Activated Adjustments"
]]></headertitle>
</output_table>
</portal>
<!-- oPersonal portal
This is a table in which we output the personal details (background) of the
character. We use a table so we can put the info on the first page if there
is room and easily spill it onto the second page if not.
-->
<portal
id="oRoTPersonal"
style="outNormal">
<output_table
component="Personal"
showtemplate="oPersonal"
varyheight="yes">
<list><![CDATA[
!Helper.NoPersText & hero#source.ShowDetail
]]></list>
<headertitle><![CDATA[
@text = "Background & Personal Details"
]]></headertitle>
</output_table>
</portal>
<!-- -->
<portal
id="oRoTSkillsTitle"
style="outTitle">
<output_label>
<labeltext><![CDATA[
@text = "Skills"
]]></labeltext>
</output_label>
</portal>
<!-- -->
<portal
id="oRoTArmoryTitle"
style="outTitle">
<output_label>
<labeltext><![CDATA[
@text = "Armor and Weapons"
]]></labeltext>
</output_label>
</portal>
<!-- oAttrPick template
This template presents the contents of each attribute. Each attribute has its
total value, base value, and any adjustments shown separately.
The template is also used as a header for the table. As such, the template
includes additional portals that are only used as part of the header (i.e.
they are designated by the "isheader" attribute). All header portals are
positioned via the "header" script, which is invoked AFTER the normal "position"
script. Header portals can therefore be positioned relative to non-header
portals, making it easy to align the header portals based on the actual content
portals.
NOTE! We CANNOT use a non-zero "marginhorz" attribute for the template to
apply an indent on each side. The titlebar inherits the same margin restriction
as the contents area, so the title would not span the full width. Consequently,
we manually indent everything on either side within the "position" script.
-->
<template
id="oRoTAttrPick"
name="Output Attributes Table"
compset="Attribute"
marginvert="10">
<portal
id="name"
style="outNameLg">
<output_label
field="name">
</output_label>
</portal>
<portal
id="total"
style="outValBox">
<output_label
field="trtFinal">
</output_label>
</portal>
<portal
id="equal"
style="outNameLg">
<output_label
text="=">
</output_label>
</portal>
<portal
id="base"
style="outGreyBox">
<output_label
field="trtUser">
</output_label>
</portal>
<portal
id="plus"
style="outNameLg">
<output_label
text="+">
</output_label>
</portal>
<portal
id="bonus"
style="outGreyBox">
<output_label>
<labeltext><![CDATA[
var bonus as number
bonus = field[trtBonus].value + field[trtInPlay].value
@text = bonus
]]></labeltext>
</output_label>
</portal>
<!-- Portals used as the header -->
<portal
id="hdrtitle"
style="outTitle"
isheader="yes">
<output_label
text="Attributes">
</output_label>
</portal>
<portal
id="hdrtotal"
style="outHeader"
isheader="yes">
<output_label
text="Total">
</output_label>
</portal>
<portal
id="hdrbase"
style="outHeader"
isheader="yes">
<output_label
text="Base">
</output_label>
</portal>
<portal
id="hdrbonus"
style="outHeader"
isheader="yes">
<output_label
text="Bonus">
</output_label>
</portal>
<position><![CDATA[
~our height is driven by the tallest portal (they're all the same)
height = portal[name].height
doneif (issizing <> 0)
~setup appropriate widths for the various value portals
portal[total].width = 110
portal[base].width = 110
portal[bonus].width = 110
~center everything vertically within the template
perform portal[name].centervert
perform portal[total].centervert
perform portal[base].centervert
perform portal[bonus].centervert
perform portal[equal].centervert
perform portal[plus].centervert
~position everything horizontally, indenting 125 pixels on each side
portal[name].left = 125
perform portal[bonus].alignedge[right,-125]
perform portal[plus].alignrel[rtol,bonus,-20]
perform portal[base].alignrel[rtol,plus,-20]
perform portal[equal].alignrel[rtol,base,-20]
perform portal[total].alignrel[rtol,equal,-20]
]]></position>
<header><![CDATA[
~our header height is the title plus a gap plus the header text
height = portal[hdrtitle].height + 10 + portal[hdrtotal].height
doneif (issizing <> 0)
~our title spans the full width of the template
portal[hdrtitle].width = width
~each of our header labels has the same width as the corresponding data beneath
portal[hdrtotal].width = portal[total].width
portal[hdrbase].width = portal[base].width
portal[hdrbonus].width = portal[bonus].width
~center each header label on the corresponding data beneath
perform portal[hdrtotal].centeron[horz,total]
perform portal[hdrbase].centeron[horz,base]
perform portal[hdrbonus].centeron[horz,bonus]
~align all header labels at the bottom of the header region
perform portal[hdrtotal].alignedge[bottom,0]
perform portal[hdrbase].alignedge[bottom,0]
perform portal[hdrbonus].alignedge[bottom,0]
]]></header>
</template>
<template
id="oRoTAttrPickWide"
name="Output Wide Attributes Table"
compset="Attribute"
marginvert="10">
<portal
id="name"
style="outNameXLgCtr">
<output_label
field="name">
</output_label>
</portal>
<portal
id="total"
style="outValBoxXL">
<output_label
field="trtFinal">
</output_label>
</portal>
<position><![CDATA[
~our height is driven by the tallest portal (they're all the same)
height = portal[name].height + portal[total].height + 20
doneif (issizing <> 0)
~setup appropriate widths for the various value portals
portal[total].width = 150
portal[name].width = 500
~center everything vertically within the template
perform portal[name].centerhorz
perform portal[total].centerhorz
~position everything horizontally, indenting 125 pixels on each side
portal[total].left = 0
perform portal[name].alignrel[ttob,total,10]
perform portal[total].centeron[horz,name]
]]></position>
</template>
<!-- oDerivPick template
This template presents the various derived traits. Derived traits simply list
the name and final value for each. We use margins around the template to get
a large indent on either side and insert a little bit of vertical spacing.
-->
<template
id="oRoTDerivPick"
name="Output Derived Traits Table"
compset="Trait"
marginhorz="200"
marginvert="5">
<portal
id="name"
style="outNameLg">
<output_label
field="name">
</output_label>
</portal>
<portal
id="value"
style="outValueLg">
<output_label
field="trtFinal">
</output_label>
</portal>
<portal
id="dots"
style="outDots">
<output_dots>
</output_dots>
</portal>
<position><![CDATA[
~our height is based on the tallest portal
height = portal[name].height
doneif (issizing <> 0)
~center everything vertically
perform portal[name].centervert
perform portal[value].centervert
perform portal[dots].centervert
~position the value at the rightmost edge
perform portal[value].alignedge[right,0]
~extend the dots from the right of the name across to the value on the right
perform portal[dots].alignrel[ltor,name,5]
portal[dots].width = portal[value].left - 5 - portal[dots].left
]]></position>
</template>
<template
id="oRoTDerivPickWide"
name="Output Wide Derived Table"
compset="Trait"
marginvert="10">
<portal
id="name"
style="outNameLgCtr">
<output_label>
<labeltext><![CDATA[
@text = field[name].text
if (empty(field[trtOutDisplayName].text) = 0) then
@text = field[trtOutDisplayName].text
endif
]]></labeltext>
</output_label>
</portal>
<portal
id="name2"
style="outNormal">
<output_label>
<labeltext><![CDATA[
@text = field[trtOutDisplayName2].text
]]></labeltext>
</output_label>
</portal>
<portal
id="total"
style="outValBoxLg">
<output_label>
<labeltext><![CDATA[
@text = field[trtFinal].value
if (empty(field[trtOutDisplayName].text) = 0) then
@text = field[trtOutDisplayFinal].text
endif
]]></labeltext>
</output_label>
</portal>
<position><![CDATA[
~our height is driven by the tallest portal (they're all the same)
height = portal[name].height + portal[total].height + portal[name2].height + 10
doneif (issizing <> 0)
~setup appropriate widths for the various value portals
portal[total].width = 300
portal[name].width = 500
portal[name2].width = 500
~center everything horizontally within the template
perform portal[name].centerhorz
perform portal[name2].centerhorz
perform portal[total].centerhorz
portal[name].top = 10
~position everything horizontally, indenting 125 pixels on each side
portal[total].left = 0
perform portal[total].alignrel[ttob,name,10]
perform portal[total].centeron[horz,name]
perform portal[name2].alignrel[ttob,total,0]
perform portal[name2].centeron[horz,total]
]]></position>
</template>
<!-- oPowerPick template
This template presents the Health and Power traits, along with empty boxes
that can be checked off during play to track damage and the use of power. We
use margins around the template to indent a little on either side and insert
some vertical spacing between each entry.
-->
<template
id="oRoTPowerPick"
name="Output Health/Power Table"
compset="Trait"
marginhorz="25"
marginvert="5">
<portal
id="name"
style="outNameLg">
<output_label
field="name">
</output_label>
</portal>
<portal
id="value"
style="outValueLg">
<output_label
field="trtFinal">
</output_label>
</portal>
<portal
id="boxes"
style="outNameLg">
<output_label>
<labeltext><![CDATA[
~output empty boxes for each point, with a gap every 5; we fit a maximum
~of 15 boxes on a line, splitting additional boxes onto extra lines
var i as number
var last as number
last = field[trtFinal].value - 1
for i = 0 to last
if (i % 5 = 0) then
if (i <> 0) then
if (i % 15 = 0) then
@text &= "{br}"
endif
endif
@text &= "{horz 15}"
endif
@text &= "{bmpscale 3 output_box}"
next
]]></labeltext>
</output_label>
</portal>
<position><![CDATA[
~our height is the tallest portal within (which is the name if we have no boxes)
height = maximum(portal[name].height,portal[boxes].textheight)
doneif (issizing <> 0)
~pick a suitable fixed width for the name
portal[name].width = 180
~pick a suitable fixed width for the value and position it next to the name
perform portal[value].alignrel[ltor,name,5]
portal[value].width = 70
~position the boxes in the remaining space on the right of the value
perform portal[boxes].alignrel[ltor,value,40]
portal[boxes].width = width - portal[boxes].left
~center all portals vertically
perform portal[name].centervert
perform portal[value].centervert
perform portal[boxes].centervert
~shift the boxes downward a little bit; this is because the boxes are only
~bitmaps, which are never drawn within the descender portion of the text, and
~that causes them to appear higher than we want them
portal[boxes].top += 3
]]></position>
</template>
<!-- oAbilPick template
This template presents the Special Abilities, consisting of the prominent
name and the summary text in small letters next to it. We use a small margin
for vertical spacing between abilities.
-->
<template
id="oRoTAbilPick"
name="Output Special Abilities Table"
compset="Ability"
marginvert="2">
<portal
id="details"
style="outNameLg">
<output_label>
<labeltext><![CDATA[
@text = field[name].text & "{/b} {size 32}" & field[summary].text
]]></labeltext>
</output_label>
</portal>
<position><![CDATA[
~our details width spans the entire template width
portal[details].width = width
~limit our portal height to a single line of output
portal[details].lineheight = 1
~our height is the height of our portal
height = portal[details].bottom
]]></position>
</template>
<!-- oSkillPick template
This template presents the list of Skills, showing just the name and value.
We use a large horizontal margin to center the skills nicely and a small
vertical margin to insert spacing between each skill.
-->
<template
id="oRoTSkillPick"
name="Output Skills Table"
compset="Skill"
marginhorz="20"
marginvert="2">
<portal
id="name"
style="outNameLg">
<output_label
field="name">
</output_label>
</portal>
<portal
id="value"
style="outValueLg">
<output_label
field="sklPoolGraphic">
</output_label>
</portal>
<portal
id="career"
style="outNameLg">
<output_label>
<labeltext><![CDATA[
if (tagis[SkillType.CareerSkill] <> 0) then
@text &= "{bmp output_box_sm_chk}"
else
@text &= "{bmp output_box_sm}"
endif
]]></labeltext>
</output_label>
</portal>
<position><![CDATA[
~our height is the height of the tallest portal
height = portal[name].height
doneif (issizing <> 0)
perform portal[career].centervert
~position the value at the right edge
perform portal[value].alignedge[right,0]
var rtEdge as number
rtEdge = portal[value].right
rtEdge -= 250
perform portal[career].centerpoint[horz,rtEdge]
~size the name to fit the available space
portal[name].width = portal[career].left - 10
perform portal[name].sizetofit[40]
perform portal[name].autoheight
~center all portals vertically
perform portal[name].centervert
perform portal[value].centervert
perform portal[career].centervert
]]></position>
</template>
<!-- oGearPick template
This template presents the basic gear possessed. Gear that is in quantities
other than one has the proper quantity listed next to it. We use a small
horizontal margin to indent everything slightly.
-->
<template
id="oRoTGearPick"
name="Output Gear Table"
compset="Equipment"
marginhorz="25">
<portal
id="value"
style="outNormRt">
<output_label>
<labeltext><![CDATA[
if (stackable = 0) then
@text = ""
elseif (field[stackQty].value = 1) then
@text = ""
else
@text = field[stackQty].text & "x"
endif
]]></labeltext>
</output_label>
</portal>
<portal
id="name"
style="outNormLt">
<output_label>
<labeltext><![CDATA[
@text = field[name].text
]]></labeltext>
</output_label>
</portal>
<position><![CDATA[
~our height is the height of the tallest portal
height = portal[name].height
doneif (issizing <> 0)
~assign a fixed width to the value and position the name to the right
portal[value].width = 100
perform portal[name].alignrel[ltor,value,20]
~size the name to fit the available space
portal[name].width = width - portal[name].left
perform portal[name].sizetofit[36]
perform portal[name].autoheight
~center all portals vertically
perform portal[value].centervert
perform portal[name].centervert
]]></position>