-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCOM_BasicPack - Helper Things.user
114 lines (94 loc) · 5.12 KB
/
COM_BasicPack - Helper Things.user
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
<?xml version="1.0" encoding="ISO-8859-1"?>
<document signature="Hero Lab Data">
<loadonce key="COM_BasicPack - Helper Things"/>
<fileinfo>
<info_author>
Tim Shadow (ShadowChemosh)
</info_author>
<info_history><![CDATA[
January 28, 2015 - Tim Shadow
-Added logic for hidding community Deities.
January 3, 2015 - Tim Shadow
-Created New.
-Make a new mechanic to hold global helper things. Also move Power Resistance helper to here from UP.
]]></info_history>
</fileinfo>
<!-- ============================================================================================ -->
<!-- Basic Pack Mechanic -->
<!-- ============================================================================================ -->
<thing id="mechBasic" name="Basic Pack Mechanic" compset="Mechanics">
<!-- Community Product ID tag -->
<tag group="ProductId" tag="HLCommunit" name="Hero Lab Community"/>
<!-- Community Deity Tag -->
<tag group="DeityCat" tag="CB" name="Community Deity"/>
<!-- Psionic Helper Objects -->
<bootstrap thing="xPwrRes"></bootstrap>
<!-- Simple Hide Community Deity Helper -->
<bootstrap thing="CBHideDeit"></bootstrap>
<!-- Simple Append source value to class name -->
<bootstrap thing="S2ClsSourc"></bootstrap>
<!-- Append Text Desc of Things -->
<bootstrap thing="S2Append"></bootstrap>
</thing>
<!-- ============================================================================================ -->
<!-- New Base Class Archetype Headers -->
<!-- ============================================================================================ -->
<!-- ============================================================================================ -->
<!-- Trait Headers -->
<!-- ============================================================================================ -->
<thing id="trBPPsioni" name="Psionic" compset="Trait" isshowonly="yes">
<tag group="trCategory" tag="Psionic"/>
</thing>
<thing id="trBPCrimes" name="Crimes" compset="Trait" isshowonly="yes">
<tag group="trCategory" tag="Crimes"/>
</thing>
<thing id="trBPDream" name="Dream" compset="Trait" isshowonly="yes">
<tag group="trCategory" tag="Dream"/>
</thing>
<thing id="trBPTrain" name="Training" compset="Trait" isshowonly="yes">
<tag group="trCategory" tag="Training"/>
</thing>
<!-- ============================================================================================ -->
<!-- Helper Objects -->
<!-- ============================================================================================ -->
<thing id="xPwrRes" name="Power Resistance" description="You have Power Resistance." compset="Ability" uniqueness="unique">
<fieldval field="shortname" value="PR"/>
<tag group="Helper" tag="BaseAbil"/>
<tag group="Helper" tag="ShowSpec"/>
<tag group="SpecType" tag="Resist"/>
<tag group="Universal" tag="Universal"/>
<eval phase="Final" priority="20000"><![CDATA[
call CalcValue
~ Use our value field as the quality of spell resistance
field[livename].text = field[name].text & " (" & field[abValue].value & ")"
~ specify a shortname for consistency with other resistances
field[shortname].text &= " " & field[abValue].value
]]></eval>
</thing>
<thing id="CBHideDeit" name="Hide Community Deities" description="Helper Thing to hide all deities associated with the Community." compset="Simple">
<usesource source="srcHideDei"/>
<eval phase="First" priority="10000"><![CDATA[
~ Hide all Community Bestiary deities
perform hero.assign[HideDeiCat.CB]
]]></eval>
</thing>
<thing id="S2ClsSourc" name="Give Source Abbrevation to Classes" description="This helper object is designed to append the abbrev information to a class name if the specific tag PackHelper.ClsSrcAbr is found." compset="Simple">
<eval phase="Final" priority="10000"><![CDATA[
~ Check to see if specific sources are turned on
doneif (hero.tagcountstr["source.TomeOfSecr"] = 0)
var sName as string
~ Loop through all class Things
foreach thing in Class where "PackHelper.ClsSrcAbr"
sName = eachthing.field[name].text & eachthing.field[srcBookInf].text
perform eachthing.amendthing[name,sName]
nexteach
]]></eval>
</thing>
<thing id="S2Append" name="Append Text" description="This helper object is to update specific text on class and Things to give information to gamers." compset="Simple">
<usesource source="srcS2Arche"/>
<eval phase="Final" priority="10000"><![CDATA[
~ Give note about how to add the companion for the Shadowdancer PrC
#appenddesc[cShnSumm,"{b}" & hero.tagnames[source.srcS2Arche] & ":{/b} The shadow companion can be added on the 'Other' tab."]
]]></eval>
</thing>
</document>