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.

81 lines
3.3 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. <div class="form-group">
  2. <label class="short">{{localize "PF2E.RuleEditor.General.Label"}}</label>
  3. <div class="form-fields">
  4. <input type="text" name="{{basePath}}.label" value="{{rule.label}}" placeholder="{{object.label}}" />
  5. <label>
  6. {{localize "PF2E.RuleEditor.FlatModifier.HideIfDisabled"}}
  7. <input type="checkbox" name="{{basePath}}.hideIfDisabled" {{checked rule.hideIfDisabled}}>
  8. </label>
  9. </div>
  10. </div>
  11. <div class="form-group">
  12. <label class="short">{{localize "PF2E.RuleEditor.General.Selector"}}</label>
  13. <div class="attached-input">
  14. <button type="button" class="attachment" data-action="toggle-selector">
  15. {{#if selectorIsArray}}Multiple{{else}}Single{{/if}}
  16. </button>
  17. {{#if selectorIsArray}}
  18. <input type="text" class="pf2e-tagify selector-list" name="{{basePath}}.selector" value="{{json rule.selector}}" data-dtype="JSON" />
  19. {{else}}
  20. <input type="text" name="{{basePath}}.selector" value="{{rule.selector}}" />
  21. {{/if}}
  22. </div>
  23. </div>
  24. <div class="form-group">
  25. <label class="short">{{localize "PF2E.RuleEditor.General.Value"}}</label>
  26. <div class="form-fields">
  27. {{#if (eq rule.type "ability")}}
  28. <select name="{{basePath}}.ability">
  29. {{#select rule.ability}}
  30. {{#each abilities as |label key|}}
  31. <option value="{{key}}">{{localize label}}</option>
  32. {{/each}}
  33. {{/select}}
  34. </select>
  35. {{else}}
  36. {{{form.resolvableValue "value" hideButton=true}}}
  37. {{/if}}
  38. <select name="{{basePath}}.type" class="short">
  39. {{#select rule.type}}
  40. {{#each types as |label slug|}}
  41. <option value="{{slug}}">{{label}}</option>
  42. {{/each}}
  43. {{/select}}
  44. </select>
  45. {{{form.resolvableAddBracket "value"}}}
  46. </div>
  47. </div>
  48. {{{form.resolvableBrackets "value"}}}
  49. {{#if isDamage}}
  50. <div class="form-group">
  51. <label class="short">{{localize "PF2E.RuleEditor.General.DamageType"}}</label>
  52. <div class="form-fields">
  53. <input type="text" class="pf2e-tagify damage-type" name="{{basePath}}.damageType" value="{{rule.damageType}}"/>
  54. <select name="{{basePath}}.damageCategory" class="short">
  55. {{#select rule.damageCategory}}
  56. <option value=""></option>
  57. {{#each damageCategories as |label key|}}
  58. <option value="{{key}}">{{localize label}}</option>
  59. {{/each}}
  60. {{/select}}
  61. </select>
  62. <select name="{{basePath}}.critical" class="short">
  63. {{#select rule.critical}}
  64. <option value="">{{localize "PF2E.RuleEditor.General.CriticalBehavior.null"}}</option>
  65. <option value="false">{{localize "PF2E.RuleEditor.General.CriticalBehavior.false"}}</option>
  66. <option value="true">{{localize "PF2E.RuleEditor.General.CriticalBehavior.true"}}</option>
  67. {{/select}}
  68. </select>
  69. </div>
  70. </div>
  71. {{/if}}
  72. <div class="form-group">
  73. <label class="short">{{localize "PF2E.RuleEditor.General.Predicate"}}</label>
  74. <input type="text" name="{{basePath}}.predicate" value="{{json rule.predicate}}" />
  75. </div>