All user data for FoundryVTT. Includes worlds, systems, modules, and any asset in the "foundryuserdata" directory. Does NOT include the FoundryVTT installation itself.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

303 lines
16 KiB

1 year ago
  1. <form class="{{cssClass}} flexcol" autocomplete="off">
  2. {{!-- Sheet Header --}}
  3. <header class="sheet-header flexrow">
  4. <img class="profile" src="{{actor.img}}" data-tooltip="{{actor.name}}" data-edit="img"/>
  5. <section class="header-details flexrow">
  6. {{> "dnd5e.actor-warnings"}}
  7. <h1 class="charname">
  8. <input name="name" type="text" value="{{actor.name}}" placeholder="{{ localize 'DND5E.Name' }}"/>
  9. </h1>
  10. <aside class="header-exp flexcol">
  11. <div class="charlevel" data-tooltip="{{multiclassLabels}}">
  12. <label>{{ localize "DND5E.Level" }} {{system.details.level}}</label>
  13. <span class="levels">{{classLabels}}</span>
  14. </div>
  15. {{#unless disableExperience}}
  16. <div class="experience flexrow">
  17. <input type="text" name="system.details.xp.value" value="{{system.details.xp.value}}" placeholder="0" data-dtype="Number">
  18. <span class="sep">/</span>
  19. <span class="max">{{system.details.xp.max}}</span>
  20. </div>
  21. <div class="xpbar">
  22. <span class="bar" style="width: {{system.details.xp.pct}}%"></span>
  23. </div>
  24. {{/unless}}
  25. </aside>
  26. {{!-- Character Summary --}}
  27. <ul class="summary flexrow">
  28. <li class="race">
  29. <input type="text" name="system.details.race" value="{{system.details.race}}" placeholder="{{ localize 'DND5E.Race' }}"/>
  30. </li>
  31. <li class="background">
  32. {{#if labels.background}}
  33. <span data-tooltip="DND5E.Background">{{labels.background}}</span>
  34. {{else}}
  35. <input type="text" name="system.details.background" value="{{system.details.background}}" placeholder="{{ localize 'DND5E.Background' }}"/>
  36. {{/if}}
  37. </li>
  38. <li class="alignment">
  39. <input type="text" name="system.details.alignment" value="{{system.details.alignment}}" placeholder="{{ localize 'DND5E.Alignment' }}"/>
  40. </li>
  41. <li class="proficiency">
  42. <span>{{ localize "DND5E.Proficiency" }} {{labels.proficiency}}</span>
  43. </li>
  44. </ul>
  45. {{!-- Header Attributes --}}
  46. <ul class="attributes flexrow">
  47. <li class="attribute health">
  48. <h4 class="attribute-name box-title">{{localize "DND5E.HitPoints"}}</h4>
  49. <a class="config-button" data-action="hit-points" data-tooltip="DND5E.HitPointsConfig">
  50. <i class="fas fa-cog"></i>
  51. </a>
  52. <div class="attribute-value multiple">
  53. <input name="system.attributes.hp.value" type="text" value="{{hp.value}}" placeholder="10"
  54. data-tooltip="DND5E.HitPointsCurrent" data-dtype="Number">
  55. <span class="sep"> / </span>
  56. <span data-tooltip="{{#if source.attributes.hp.max}}DND5E.HitPointsOverride{{else}}DND5E.HitPointsMax{{/if}}">
  57. {{hp.max}}
  58. </span>
  59. </div>
  60. <footer class="attribute-footer">
  61. <input name="system.attributes.hp.temp" type="text" class="temphp"
  62. placeholder="+{{ localize 'DND5E.Temp' }}" value="{{hp.temp}}"
  63. data-tooltip="DND5E.HitPointsTemp" data-dtype="Number">
  64. <input name="system.attributes.hp.tempmax" type="text" class="temphp"
  65. placeholder="+{{ localize 'DND5E.Max' }}" value="{{hp.tempmax}}"
  66. data-tooltip="DND5E.HitPointsTempMax" data-dtype="Number">
  67. </footer>
  68. </li>
  69. <li class="attribute hit-dice">
  70. <h4 class="attribute-name box-title">{{ localize "DND5E.HitDice" }}</h4>
  71. <a class="config-button" data-action="hit-dice" data-tooltip="DND5E.HitDiceConfig">
  72. <i class="fas fa-cog"></i>
  73. </a>
  74. <div class="attribute-value multiple">
  75. <label class="hit-dice">
  76. <span data-tooltip="DND5E.HitDiceRemaining">{{system.attributes.hd}}</span>
  77. <span class="sep"> / </span>
  78. <span data-tooltip="DND5E.HitDiceMax">{{system.details.level}}</span>
  79. </label>
  80. </div>
  81. <footer class="attribute-footer">
  82. <a class="rest short-rest" data-tooltip="DND5E.ShortRest">{{localize "DND5E.RestS"}}</a>
  83. <a class="rest long-rest" data-tooltip="DND5E.LongRest">{{localize "DND5E.RestL"}}</a>
  84. </footer>
  85. </li>
  86. <li class="attribute armor">
  87. <h4 class="attribute-name box-title">{{ localize "DND5E.ArmorClass" }}</h4>
  88. <a class="config-button" data-action="armor" data-tooltip="DND5E.ArmorConfig">
  89. <i class="fas fa-cog"></i>
  90. </a>
  91. <div class="attribute-value" data-attribution="attributes.ac"
  92. data-attribution-caption="DND5E.ArmorClass" data-tooltip-direction="DOWN">
  93. <span>{{system.attributes.ac.value}}</span>
  94. </div>
  95. <footer class="attribute-footer">
  96. <span class="spell-dc">{{localize "DND5E.SpellDC"}} {{system.attributes.spelldc}}</span>
  97. </footer>
  98. </li>
  99. <li class="attribute movement">
  100. <h4 class="attribute-name box-title">{{ localize "DND5E.Movement" }}</h4>
  101. <a class="config-button" data-action="movement" data-tooltip="DND5E.MovementConfig">
  102. <i class="fas fa-cog"></i>
  103. </a>
  104. <div class="attribute-value">
  105. <span>{{movement.primary}}</span>
  106. </div>
  107. <footer class="attribute-footer">
  108. <span>{{movement.special}}</span>
  109. </footer>
  110. </li>
  111. <li class="attribute initiative">
  112. <h4 class="attribute-name box-title rollable" data-action="rollInitiative">
  113. {{ localize "DND5E.Initiative" }}
  114. </h4>
  115. <a class="config-button" data-action="initiative" data-tooltip="DND5E.InitiativeConfig">
  116. <i class="fas fa-cog"></i>
  117. </a>
  118. <div class="attribute-value">
  119. <span>{{numberFormat system.attributes.init.total decimals=0 sign=true}}</span>
  120. </div>
  121. </li>
  122. </ul>
  123. </section>
  124. </header>
  125. {{!-- Character Sheet Navigation --}}
  126. <nav class="sheet-navigation tabs" data-group="primary">
  127. <a class="item active" data-tab="attributes">{{ localize "DND5E.Attributes" }}</a>
  128. <a class="item" data-tab="inventory">{{ localize "DND5E.Inventory" }}</a>
  129. <a class="item" data-tab="features">{{ localize "DND5E.Features" }}</a>
  130. <a class="item" data-tab="spellbook">{{ localize "DND5E.Spellbook" }}</a>
  131. <a class="item" data-tab="effects">{{ localize "DND5E.Effects" }}</a>
  132. <a class="item" data-tab="biography">{{ localize "DND5E.Biography" }}</a>
  133. </nav>
  134. {{!-- Character Sheet Body --}}
  135. <section class="sheet-body">
  136. <div class="tab attributes flexrow" data-group="primary" data-tab="attributes">
  137. {{!-- Ability Scores --}}
  138. <ul class="ability-scores flexrow">
  139. {{#each abilities as |ability id|}}
  140. <li class="ability {{#if ability.proficient}}proficient{{/if}}" data-ability="{{id}}">
  141. <h4 class="ability-name box-title rollable">{{ability.label}}</h4>
  142. <input type="text" name="system.abilities.{{id}}.value" value="{{ability.value}}"
  143. class="ability-score" placeholder="10" data-dtype="Number">
  144. <div class="ability-modifiers flexrow">
  145. <span class="ability-mod" data-tooltip="DND5E.Modifier">
  146. {{numberFormat ability.mod decimals=0 sign=true}}
  147. </span>
  148. <input type="hidden" name="system.abilities.{{id}}.proficient" value="{{ability.baseProf}}"
  149. data-dtype="Number"/>
  150. <a class="proficiency-toggle ability-proficiency" data-tooltip="DND5E.Proficiency">
  151. {{{ability.icon}}}
  152. </a>
  153. <span class="ability-save" data-tooltip="DND5E.SavingThrow">
  154. {{numberFormat ability.save decimals=0 sign=true}}
  155. </span>
  156. </div>
  157. <a class="config-button" data-action="ability" data-tooltip="DND5E.AbilityConfigure">
  158. <i class="fas fa-cog"></i>
  159. </a>
  160. </li>
  161. {{/each}}
  162. </ul>
  163. {{!-- Skills --}}
  164. <ul class="skills-list">
  165. {{#each config.skills as |obj s|}}
  166. {{#with (lookup ../skills s) as |skill|}}
  167. <li class="proficiency-row skill flexrow {{#if skill.value}}proficient{{/if}}"
  168. data-property="skills" data-key="{{s}}">
  169. <input type="hidden" name="system.skills.{{s}}.value"
  170. value="{{skill.baseValue}}" data-dtype="Number">
  171. <input type="hidden" name="system.skills.{{s}}.ability" value="{{skill.ability}}">
  172. <a class="proficiency-toggle skill-proficiency" data-tooltip="{{skill.hover}}">{{{skill.icon}}}</a>
  173. <div class="skill-name-controls">
  174. <h4 class="skill-name rollable">{{skill.label}}</h4>
  175. <a class="config-button" data-action="skill" data-tooltip="DND5E.SkillConfigure">
  176. <i class="fas fa-cog"></i>
  177. </a>
  178. </div>
  179. <span class="skill-ability">{{skill.abbreviation}}</span>
  180. <span class="skill-mod" data-tooltip="{{localize 'DND5E.SkillModifierHint' skill=skill.label}}">
  181. {{numberFormat skill.total decimals=0 sign=true}}
  182. </span>
  183. <span class="skill-passive" data-tooltip="{{localize 'DND5E.SkillPassiveHint' skill=skill.label}}">
  184. ({{skill.passive}})
  185. </span>
  186. </li>
  187. {{/with}}
  188. {{/each}}
  189. </ul>
  190. <section class="center-pane flexcol">
  191. {{!-- Body Attributes --}}
  192. <ul class="attributes flexrow">
  193. {{#each resources as |res|}}
  194. <li class="attribute resource">
  195. <h4 class="attribute-name box-title">
  196. <input name="system.resources.{{res.name}}.label" type="text" value="{{res.label}}"
  197. placeholder="{{res.placeholder}}" />
  198. </h4>
  199. <div class="attribute-value">
  200. <label class="recharge checkbox flexcol">
  201. <span>{{ localize "DND5E.AbbreviationSR" }}</span><input name="system.resources.{{res.name}}.sr" type="checkbox" {{checked res.sr}}/>
  202. </label>
  203. <input type="text" name="system.resources.{{res.name}}.value" value="{{res.value}}" placeholder="0" data-dtype="Number">
  204. <span class="sep"> / </span>
  205. <input type="text" name="system.resources.{{res.name}}.max" value="{{res.max}}" placeholder="0" data-dtype="Number">
  206. <label class="recharge checkbox flexcol">
  207. <span>{{ localize "DND5E.AbbreviationLR" }}</span><input name="system.resources.{{res.name}}.lr" type="checkbox" {{checked res.lr}}/>
  208. </label>
  209. </div>
  210. </li>
  211. {{/each}}
  212. </ul>
  213. {{!-- Counters --}}
  214. <div class="counters">
  215. <div class="counter flexrow death-saves">
  216. <h4 class="rollable" data-action="rollDeathSave">{{ localize "DND5E.DeathSave" }}</h4>
  217. <div class="counter-value">
  218. <i class="fas fa-check"></i>
  219. <input type="text" name="system.attributes.death.success" value="{{system.attributes.death.success}}" placeholder="0" data-dtype="Number">
  220. <i class="fas fa-times"></i>
  221. <input type="text" name="system.attributes.death.failure" value="{{system.attributes.death.failure}}" placeholder="0" data-dtype="Number">
  222. </div>
  223. </div>
  224. <div class="counter flexrow exhaustion">
  225. <h4>{{ localize "DND5E.Exhaustion" }}</h4>
  226. <div class="counter-value">
  227. <input type="text" name="system.attributes.exhaustion" value="{{system.attributes.exhaustion}}" placeholder="0" data-dtype="Number">
  228. </div>
  229. </div>
  230. <div class="counter flexrow inspiration">
  231. <h4>{{ localize "DND5E.Inspiration" }}</h4>
  232. <div class="counter-value">
  233. <input type="checkbox" name="system.attributes.inspiration" data-dtype="Boolean"
  234. {{checked system.attributes.inspiration}}/>
  235. </div>
  236. </div>
  237. </div>
  238. {{!-- Traits --}}
  239. {{> "dnd5e.actor-traits"}}
  240. </section>
  241. </div>
  242. {{!-- Inventory Tab --}}
  243. <div class="tab inventory flexcol" data-group="primary" data-tab="inventory">
  244. {{> "dnd5e.actor-inventory" sections=inventory}}
  245. </div>
  246. {{!-- Features Tab --}}
  247. <div class="tab features flexcol" data-group="primary" data-tab="features">
  248. {{> "dnd5e.actor-features" sections=features}}
  249. </div>
  250. {{!-- Spellbook Tab --}}
  251. <div class="tab spellbook flexcol" data-group="primary" data-tab="spellbook">
  252. {{> "dnd5e.actor-spellbook"}}
  253. </div>
  254. {{!-- Effects Tab --}}
  255. <div class="tab effects flexcol" data-group="primary" data-tab="effects">
  256. {{> "dnd5e.active-effects"}}
  257. </div>
  258. {{!-- Biography Tab --}}
  259. <div class="tab flexrow" data-group="primary" data-tab="biography">
  260. <div class="characteristics flexcol">
  261. <label>{{ localize "DND5E.Appearance" }}</label>
  262. <textarea name="system.details.appearance">{{system.details.appearance}}</textarea>
  263. <label>{{ localize "DND5E.PersonalityTraits" }}</label>
  264. <textarea name="system.details.trait">{{system.details.trait}}</textarea>
  265. <label>{{ localize "DND5E.Ideals" }}</label>
  266. <textarea name="system.details.ideal">{{system.details.ideal}}</textarea>
  267. <label>{{ localize "DND5E.Bonds" }}</label>
  268. <textarea name="system.details.bond">{{system.details.bond}}</textarea>
  269. <label>{{ localize "DND5E.Flaws" }}</label>
  270. <textarea name="system.details.flaw">{{system.details.flaw}}</textarea>
  271. </div>
  272. <div class="biography">
  273. {{editor biographyHTML target="system.details.biography.value" button=true editable=editable
  274. engine="prosemirror" collaborate=false}}
  275. </div>
  276. </div>
  277. </section>
  278. </form>