-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathswrpg.sty
285 lines (263 loc) · 14.4 KB
/
swrpg.sty
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
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{swrpg}[2016/04/26 Star Wars RPG Symbols]
\RequirePackage{tikz}
\RequirePackage{scalerel}
\RequirePackage{background}
\newlength{\swrpgsymbolheight}
\settoheight{\swrpgsymbolheight}{A}
\definecolor{difficulty}{RGB}{82,34,127}
\definecolor{boost}{RGB}{114,205,220}
\definecolor{ability}{RGB}{64,174,74}
\definecolor{proficiency}{RGB}{255,242,0}
\definecolor{challenge}{RGB}{210,35,42}
\newcommand{\swrpgbackground}{%
\backgroundsetup{
scale=1,
angle=0,
contents={\includegraphics[width=\paperwidth,height=\paperheight]{bg}}%
}
}
% Dice
\newcommand{\boost}{%
\begin{tikzpicture}
\filldraw[fill=boost] (0,0) -- (0,\swrpgsymbolheight) --
(\swrpgsymbolheight,\swrpgsymbolheight) -- (\swrpgsymbolheight,0) -- cycle;
\end{tikzpicture}
}
\newcommand{\setback}{%
\begin{tikzpicture}
\filldraw[fill=black] (0,0) -- (0,\swrpgsymbolheight) --
(\swrpgsymbolheight,\swrpgsymbolheight) -- (\swrpgsymbolheight,0) -- cycle;
\end{tikzpicture}
}
\newcommand{\ability}{%
\begin{tikzpicture}
\filldraw[fill=ability] (0.5ex,0) -- (1ex,0.5\swrpgsymbolheight) --
(0.5ex,\swrpgsymbolheight) -- (0,0.5\swrpgsymbolheight) -- cycle;
\end{tikzpicture}
}
\newcommand{\difficulty}{%
\begin{tikzpicture}
\filldraw[fill=difficulty] (0.5ex,0) -- (1ex,0.5\swrpgsymbolheight) --
(0.5ex,\swrpgsymbolheight) -- (0,0.5\swrpgsymbolheight) -- cycle;
\end{tikzpicture}
}
\newcommand{\proficiency}{%
\begin{tikzpicture}
\filldraw[fill=proficiency] (0,0.433\swrpgsymbolheight) --
(0.25\swrpgsymbolheight,0.866\swrpgsymbolheight) --
(0.75\swrpgsymbolheight,0.866\swrpgsymbolheight) --
(1\swrpgsymbolheight,0.433\swrpgsymbolheight) -- (0.75\swrpgsymbolheight,0) --
(0.25\swrpgsymbolheight,0) -- cycle;
\end{tikzpicture}
}
\newcommand{\challenge}{%
\begin{tikzpicture}
\filldraw[fill=challenge] (0,0.433\swrpgsymbolheight) --
(0.25\swrpgsymbolheight,0.866\swrpgsymbolheight) --
(0.75\swrpgsymbolheight,0.866\swrpgsymbolheight) --
(1\swrpgsymbolheight,0.433\swrpgsymbolheight) -- (0.75\swrpgsymbolheight,0) --
(0.25\swrpgsymbolheight,0) -- cycle;
\end{tikzpicture}
}
\newcommand{\force}{%
\begin{tikzpicture}
\filldraw[fill=white] (0,0.433\swrpgsymbolheight) --
(0.25\swrpgsymbolheight,0.866\swrpgsymbolheight) --
(0.75\swrpgsymbolheight,0.866\swrpgsymbolheight) --
(1\swrpgsymbolheight,0.433\swrpgsymbolheight) -- (0.75\swrpgsymbolheight,0) --
(0.25\swrpgsymbolheight,0) -- cycle;
\end{tikzpicture}
}
% Symbols
\newcommand{\success}{%
\begin{tikzpicture}[y=\swrpgsymbolheight, x=\swrpgsymbolheight]
\path[draw=black,line width=0.6pt]
(0.6838,1051.2862) -- (0.6033,1051.5452) --
(0.2743,1051.3948) -- (0.4668,1051.6677) -- (0.1903,1051.7972) --
(0.4808,1051.8222) -- (0.4318,1052.1966) -- (0.6663,1051.8921) --
(0.8832,1052.0811) -- (0.8167,1051.8012) -- (1.0722,1051.7342) --
(0.8272,1051.6462) -- (0.9322,1051.5028) -- (0.7468,1051.5548) -- cycle;
\end{tikzpicture}
}
\newcommand{\failure}{%
\begin{tikzpicture}[y=\swrpgsymbolheight, x=\swrpgsymbolheight, yscale=-1]
\path[fill=black] (0.6034,1052.2959) .. controls (0.5374,1051.7904) and
(0.3878,1051.5808) .. (0.0105,1051.2274) .. controls (0.5262,1051.3889) and
(0.7797,1051.3892) .. (1.2486,1051.2164) .. controls (0.8740,1051.5514) and
(0.7405,1051.7977) .. (0.6034,1052.2961) -- cycle;
\end{tikzpicture}
}
\newcommand{\advantage}{%
\begin{tikzpicture}[y=\swrpgsymbolheight, x=\swrpgsymbolheight,yscale=-1]
\path[fill=black] (0.4182,1052.1953) .. controls (0.3147,1052.1613) and
(0.2586,1052.1143) .. (0.1990,1052.0624) -- (0.1500,1052.0194) --
(0.1874,1052.0194) .. controls (0.2309,1052.0194) and (0.2690,1052.0064) ..
(0.2690,1051.9924) .. controls (0.2690,1051.9824) and (0.2481,1051.9754) ..
(0.2225,1051.9664) .. controls (0.1186,1051.9294) and (0.0030,1051.7912) ..
(0.0030,1051.7051) .. controls (0.0030,1051.6671) and (0.0231,1051.6561) ..
(0.0355,1051.6891) .. controls (0.0477,1051.7211) and (0.1411,1051.7851) ..
(0.1629,1051.7771) .. controls (0.1792,1051.7671) and (0.1747,1051.7541) ..
(0.1401,1051.6901) .. controls (0.0420,1051.5091) and (0.1132,1051.3259) ..
(0.3152,1051.2389) .. controls (0.3717,1051.2149) and (0.3736,1051.2169) ..
(0.3338,1051.2639) .. controls (0.2648,1051.3459) and (0.2719,1051.4433) ..
(0.3551,1051.5582) -- (0.3977,1051.6182) -- (0.3734,1051.6722) .. controls
(0.3406,1051.7452) and (0.3422,1051.8595) .. (0.3771,1051.9372) .. controls
(0.4100,1052.0112) and (0.5058,1052.1098) .. (0.5819,1052.1490) --
(0.6358,1052.1760) -- (0.6911,1052.1400) .. controls (0.7676,1052.0900) and
(0.8493,1052.0024) .. (0.8789,1051.9401) .. controls (0.9125,1051.8691) and
(0.9127,1051.7471) .. (0.8793,1051.6730) .. controls (0.8529,1051.6140) and
(0.8529,1051.6130) .. (0.8821,1051.5830) .. controls (0.9217,1051.5410) and
(0.9685,1051.4347) .. (0.9689,1051.3863) .. controls (0.9692,1051.3423) and
(0.9504,1051.2993) .. (0.9090,1051.2541) .. controls (0.8763,1051.2181) and
(0.8815,1051.2161) .. (0.9370,1051.2401) .. controls (1.0874,1051.3051) and
(1.1558,1051.3989) .. (1.1563,1051.5410) .. controls (1.1565,1051.6150) and
(1.1496,1051.6390) .. (1.1121,1051.6990) .. controls (1.0768,1051.7560) and
(1.0719,1051.7720) .. (1.0880,1051.7780) .. controls (1.1114,1051.7880) and
(1.1795,1051.7420) .. (1.2194,1051.6910) .. controls (1.2553,1051.6450) and
(1.2648,1051.6730) .. (1.2410,1051.7540) .. controls (1.2188,1051.8290) and
(1.1408,1051.9120) .. (1.0503,1051.9571) .. controls (0.9780,1051.9931) and
(0.9812,1052.0151) .. (1.0602,1052.0241) -- (1.1022,1052.0341) --
(1.0252,1052.0921) .. controls (0.8569,1052.2183) and (0.6297,1052.2668) ..
(0.4651,1052.2117) -- cycle(0.5794,1051.5346) .. controls (0.4600,1051.4836)
and (0.4950,1051.3042) .. (0.6248,1051.3003) .. controls (0.7264,1051.3003)
and (0.7827,1051.4212) .. (0.7174,1051.5040) .. controls (0.6835,1051.5470)
and (0.6350,1051.5580) .. (0.5794,1051.5340) -- cycle;
\end{tikzpicture}
}
\newcommand{\threat}{%
\begin{tikzpicture}[y=\swrpgsymbolheight, x=\swrpgsymbolheight,yscale=-1]
\path[fill=black] (0.4132,1052.2301) -- (0.4588,1052.1511) -- (0.6234,1052.1509)
-- (0.7879,1052.1506) -- (0.8287,1052.2306) -- (0.8695,1052.3106) --
(0.6186,1052.3106) -- (0.3676,1052.3106) -- (0.4132,1052.2316) --
cycle(0.1227,1052.0332) .. controls (0.0601,1051.9250) and (0.0089,1051.8305)
.. (0.0089,1051.8232) -- (0.0089,1051.8102) -- (0.0978,1051.8102) --
(0.1866,1051.8102) -- (0.2668,1051.9442) -- (0.3470,1052.0780) --
(0.3042,1052.1540) .. controls (0.2475,1052.2549) and (0.2529,1052.2585) ..
(0.1227,1052.0334) -- cycle(0.9358,1052.1545) -- (0.8929,1052.0795) --
(0.9717,1051.9448) -- (1.0506,1051.8102) -- (1.1485,1051.8102) --
(1.2464,1051.8102) -- (1.1259,1052.0202) .. controls (0.9890,1052.2588) and
(0.9934,1052.2557) .. (0.9358,1052.1547) -- cycle(0.3818,1051.8788) ..
controls (0.3403,1051.8068) and (0.3091,1051.7412) .. (0.3126,1051.7334) ..
controls (0.3160,1051.7234) and (0.3503,1051.6624) .. (0.3888,1051.5940) --
(0.4588,1051.4687) .. controls (0.5674,1051.4787) and (0.6758,1051.4687) ..
(0.7844,1051.4695) -- (0.8634,1051.6110) -- (0.9352,1051.7419) --
(0.8603,1051.8759) -- (0.7853,1052.0100) -- (0.6213,1052.0100) --
(0.4573,1052.0100) -- cycle(0.7600,1051.8198) -- (0.8074,1051.7398) --
(0.7569,1051.6548) -- (0.7065,1051.5698) -- (0.6180,1051.5698) --
(0.5296,1051.5698) -- (0.4415,1051.7454) .. controls (0.4415,1051.7454) and
(0.4854,1051.8274) .. (0.5330,1051.9082) -- (0.6233,1051.9082) --
(0.7127,1051.8982) -- cycle(0.0089,1051.6586) .. controls (0.0089,1051.6336)
and (0.2377,1051.2503) .. (0.2530,1051.2503) .. controls (0.2613,1051.2503)
and (0.2855,1051.2843) .. (0.3069,1051.3263) -- (0.3457,1051.4023) --
(0.2713,1051.5312) -- (0.1969,1051.6600) -- (0.1029,1051.6700) --
(0.0089,1051.6800) -- cycle(0.9711,1051.5370) -- (0.8913,1051.4037) --
(0.9350,1051.3267) .. controls (0.9935,1051.2241) and (0.9888,1051.2208) ..
(1.1259,1051.4597) -- (1.2464,1051.6697) -- (1.1486,1051.6697) --
(1.0509,1051.6697) -- cycle(0.4132,1051.2502) -- (0.3676,1051.1702) --
(0.6186,1051.1702) -- (0.8695,1051.1702) -- (0.8287,1051.2502) --
(0.7879,1051.3302) -- (0.6234,1051.3300) -- (0.4588,1051.3298) --
(0.4132,1051.2508) -- cycle;
\end{tikzpicture}
}
\newcommand{\triumph}{%
\begin{tikzpicture}[y=\swrpgsymbolheight, x=\swrpgsymbolheight,yscale=-1]
\path[fill=black] (0.5623,1052.3258) .. controls (0.5623,1052.2828) and
(0.5551,1052.2758) .. (0.4981,1052.2668) .. controls (0.3611,1052.2448) and
(0.2076,1052.1031) .. (0.1555,1051.9502) .. controls (0.1220,1051.8522) and
(0.1312,1051.6945) .. (0.1761,1051.5980) .. controls (0.2308,1051.4806) and
(0.3545,1051.3747) .. (0.4802,1051.3377) -- (0.5793,1051.3087) --
(0.5794,1051.2107) .. controls (0.5794,1051.1237) and (0.5834,1051.1127) ..
(0.6135,1051.1127) .. controls (0.6438,1051.1127) and (0.6477,1051.1237) ..
(0.6477,1051.2132) -- (0.6477,1051.3137) -- (0.7116,1051.3257) .. controls
(0.8541,1051.3517) and (1.0104,1051.4862) .. (1.0653,1051.6299) .. controls
(1.0869,1051.6869) and (1.0934,1051.7417) .. (1.0885,1051.8283) .. controls
(1.0830,1051.9253) and (1.0867,1051.9494) .. (1.1078,1051.9552) .. controls
(1.1295,1051.9652) and (1.1291,1051.9652) .. (1.1057,1051.9652) .. controls
(1.0902,1051.9652) and (1.0577,1052.0012) .. (1.0335,1052.0422) .. controls
(1.0094,1052.0832) and (0.9664,1052.1372) .. (0.9381,1052.1606) .. controls
(0.9097,1052.1846) and (0.8865,1052.2106) .. (0.8865,1052.2186) .. controls
(0.8865,1052.2286) and (0.8731,1052.2346) .. (0.8567,1052.2356) .. controls
(0.8403,1052.2356) and (0.7903,1052.2486) .. (0.7458,1052.2606) .. controls
(0.6809,1052.2776) and (0.6647,1052.2896) .. (0.6647,1052.3196) .. controls
(0.6647,1052.3436) and (0.6511,1052.3596) .. (0.6263,1052.3666) .. controls
(0.5662,1052.3826) and (0.5623,1052.3806) .. (0.5623,1052.3286) --
cycle(0.5623,1052.1270) -- (0.5623,1052.0330) -- (0.4924,1052.0690) ..
controls (0.4540,1052.0880) and (0.4196,1052.1020) .. (0.4161,1052.0980) ..
controls (0.4126,1052.0980) and (0.4287,1052.0640) .. (0.4519,1052.0290) ..
controls (0.4751,1051.9950) and (0.4941,1051.9630) .. (0.4941,1051.9580) ..
controls (0.4941,1051.9480) and (0.4423,1051.9140) .. (0.3791,1051.8720) ..
controls (0.2512,1051.7860) and (0.2601,1051.7790) .. (0.4333,1051.8290) ..
controls (0.4983,1051.8480) and (0.5529,1051.8610) .. (0.5546,1051.8590) ..
controls (0.5563,1051.8590) and (0.5627,1051.7495) .. (0.5690,1051.6204) ..
controls (0.5800,1051.3913) and (0.5794,1051.3858) .. (0.5452,1051.3858) ..
controls (0.4438,1051.3858) and (0.2974,1051.4933) .. (0.2357,1051.6130) ..
controls (0.1295,1051.8192) and (0.2209,1052.0825) .. (0.4331,1052.1813) ..
controls (0.5569,1052.2393) and (0.5623,1052.2363) .. (0.5623,1052.1273) --
cycle(0.7486,1052.2020) -- (0.8035,1052.1830) -- (0.7469,1052.1350) ..
controls (0.7158,1052.1080) and (0.6846,1052.0860) .. (0.6775,1052.0860) ..
controls (0.6705,1052.0860) and (0.6647,1052.1160) .. (0.6647,1052.1540) ..
controls (0.6647,1052.2290) and (0.6685,1052.2310) .. (0.7486,1052.2030) --
cycle(0.9272,1052.0846) .. controls (0.9612,1052.0466) and (0.9889,1052.0086)
.. (0.9889,1051.9996) .. controls (0.9889,1051.9806) and (0.8931,1051.9786) ..
(0.7957,1051.9996) -- (0.7304,1052.0116) -- (0.7830,1052.0846) .. controls
(0.8119,1052.1246) and (0.8423,1052.1566) .. (0.8505,1052.1566) .. controls
(0.8588,1052.1566) and (0.8933,1052.1256) .. (0.9272,1052.0886) --
cycle(1.0294,1051.8927) .. controls (1.0588,1051.7828) and (1.0250,1051.6347)
.. (0.9470,1051.5325) .. controls (0.8961,1051.4655) and (0.7561,1051.3850) ..
(0.6912,1051.3850) -- (0.6456,1051.3850) -- (0.6574,1051.5940) .. controls
(0.6639,1051.7090) and (0.6708,1051.8050) .. (0.6727,1051.8074) .. controls
(0.6746,1051.8074) and (0.7216,1051.7794) .. (0.7771,1051.7394) .. controls
(0.8748,1051.6694) and (0.8770,1051.6684) .. (0.8459,1051.7184) .. controls
(0.8282,1051.7464) and (0.7948,1051.7944) .. (0.7716,1051.8257) .. controls
(0.7485,1051.8567) and (0.7322,1051.8847) .. (0.7355,1051.8877) .. controls
(0.7443,1051.8977) and (0.9217,1051.9267) .. (0.9741,1051.9287) .. controls
(1.0072,1051.9287) and (1.0218,1051.9187) .. (1.0294,1051.8927) -- cycle;
\end{tikzpicture}
}
\newcommand{\despair}{%
\begin{tikzpicture}[y=\swrpgsymbolheight, x=\swrpgsymbolheight,yscale=-1]
\path[fill=black] (0.6151,1052.3070) .. controls (0.6024,1052.2420) and
(0.5921,1052.2320) .. (0.5187,1052.2120) .. controls (0.1967,1052.1250) and
(0.0101,1051.8149) .. (0.1025,1051.5195) -- (0.1330,1051.4215) --
(0.0696,1051.3675) -- (0.0062,1051.3135) -- (0.0860,1051.3405) .. controls
(0.1653,1051.3675) and (0.1662,1051.3675) .. (0.2151,1051.3055) .. controls
(0.4014,1051.0719) and (0.7923,1051.0571) .. (1.0184,1051.2745) --
(1.1163,1051.3685) -- (1.1869,1051.3405) -- (1.2574,1051.3115) --
(1.1955,1051.3685) .. controls (1.1349,1051.4235) and (1.1342,1051.4275) ..
(1.1605,1051.5004) .. controls (1.2626,1051.7869) and (1.0175,1052.2091) ..
(0.7478,1052.2112) .. controls (0.6919,1052.2116) and (0.6707,1052.2332) ..
(0.6489,1052.3082) -- (0.6292,1052.3772) -- cycle(0.5752,1052.1574) ..
controls (0.5549,1051.9804) and (0.2490,1051.4903) .. (0.1926,1051.4903) ..
controls (0.1425,1051.4903) and (0.1402,1051.7637) .. (0.1894,1051.8715) ..
controls (0.2699,1052.0476) and (0.5752,1052.1574) .. (0.5752,1052.1574) --
cycle(0.8957,1052.0804) .. controls (1.0796,1051.9674) and (1.1944,1051.6064)
.. (1.0823,1051.4942) .. controls (1.0435,1051.4562) and (0.7884,1051.8545) ..
(0.7100,1052.0766) -- (0.6807,1052.1596) -- (0.7442,1052.1476) .. controls
(0.7791,1052.1376) and (0.8473,1052.1106) .. (0.8957,1052.0806) --
cycle(0.8677,1051.4211) .. controls (1.0385,1051.4031) and (1.0481,1051.3911)
.. (0.9565,1051.3086) .. controls (0.7716,1051.1416) and (0.4973,1051.1430) ..
(0.3070,1051.3086) -- (0.2216,1051.3846) -- (0.3289,1051.4056) .. controls
(0.3880,1051.4176) and (0.4759,1051.4306) .. (0.5243,1051.4346) .. controls
(0.6127,1051.4446) and (0.6497,1051.4446) .. (0.8677,1051.4176) -- cycle;
\end{tikzpicture}
}
\newcommand{\light}{%
\begin{tikzpicture}[y=\swrpgsymbolheight, x=\swrpgsymbolheight]
\path[draw=black,line width=0.7pt] (0.6242,1051.7379) circle (0.55);
\end{tikzpicture}
}
\newcommand{\dark}{%
\begin{tikzpicture}[y=\swrpgsymbolheight, x=\swrpgsymbolheight]
\path[draw=black,fill=black,line width=0.7pt] (0.6242,1051.7379) circle (0.55);
\end{tikzpicture}
}
\newcommand{\darklight}{%
\begin{tikzpicture}[y=\swrpgsymbolheight, x=\swrpgsymbolheight]
\path[draw=black,line width=0.7pt] (0.6242,1051.7379) circle (0.55);
\path[fill=black,line join=miter,line cap=butt,even odd rule,line width=0.800pt]
(0.6133,1051.1513) -- (0.6133,1052.3153) .. controls (0.6133,1052.3153) and
(1.1406,1052.3253) .. (1.2070,1051.7450) .. controls (1.2734,1051.1669) and
(0.6133,1051.1513) .. (0.6133,1051.1513) -- cycle;
\end{tikzpicture}
}