~hokiegeek/tw5-thousand-year-old-vampire-rpg

9fd894267a9582729ad086d29921af7f4aa8fb2a — HokieGeek 4 months ago 2dbb061 0.5.0
Initial implementation of characters
A characters/template-character.tid => characters/template-character.tid +46 -0
@@ 0,0 1,46 @@
modified: 20220209181559000
created: 20220209181559000
creator: hokiegeek
title: $:/plugins/hokiegeek/thousand-year-old-vampire/template/characters/character
tags: ThousandYearOldVampire
type: text/vnd.tiddlywiki

<!--
- Characters
  * Mortal or immortal
  * Mortals can become immortal
  * Mortals die
-->

<$let isdead={{{ [is[current]tag[dead]then[yes]else[no]] }}}
      isimmortal={{{ [is[current]tag[immortal]then[yes]else[no]] }}}>
<$reveal type="match" default=<<isdead>> text="no">
<$fieldmangler>
<$reveal type="match" default=<<isimmortal>> text="no" style="font-size: 1.2rem; opacity: .4;">
<$button tooltip="make immortal" aria-label="make immortal" message="tm-add-tag" param="immortal" class=<<tv-config-toolbar-class>>>
&#8734;
</$button>
</$reveal>
<$reveal type="match" default=<<isimmortal>> text="yes" style="font-size: 1.2rem;">
&#8734;
</$reveal>
<$button tooltip="died" aria-label="died" message="tm-add-tag" param="dead" class=<<tv-config-toolbar-class>>>
    {{$:/core/images/erase}}
</$button>
</$fieldmangler>
<$button tooltip="edit" aria-label="edit" message="tm-edit-tiddler" param=<<currentTiddler>> class=<<tv-config-toolbar-class>> style="margin-right: 5px;">
    {{$:/core/images/edit-button}}
</$button>
</$reveal>
<$reveal type="match" default=<<isdead>> text="yes">
<$fieldmangler>
<$button tooltip="revive" aria-label="revive" message="tm-remove-tag" param="dead" class=<<tv-config-toolbar-class>>>
    {{$:/core/images/refresh-button}}
</$button>
</$fieldmangler>
</$reveal>
</$let>
<$reveal type="match" default={{!!text}} text="">
mysterious character #<$view field="character-num" />
</$reveal>
<$transclude />

A characters/view-character.tid => characters/view-character.tid +9 -0
@@ 0,0 1,9 @@
modified: 20220209200528000
created: 20220209200528000
title: $:/plugins/hokiegeek/thousand-year-old-vampire/views/characters/character
tags: $:/tags/ViewTemplate ThousandYearOldVampire
type: text/vnd.tiddlywiki

<$list filter="[all[current]is[tiddler]!is[system]tag[ThousandYearOldVampire]tag[character]]">
<$transclude tiddler="$:/plugins/hokiegeek/thousand-year-old-vampire/template/characters/character" mode="block" />
</$list>

A characters/view-characters-deceased.tid => characters/view-characters-deceased.tid +11 -0
@@ 0,0 1,11 @@
modified: 20220209182617000
created: 20220209182617000
title: $:/plugins/hokiegeek/thousand-year-old-vampire/templates/characters/deceased
tags: ThousandYearOldVampire
type: text/vnd.tiddlywiki
caption: Deceased

<$list filter="[tag[ThousandYearOldVampire]tag<currentTiddler>tag[character]tag[dead]sort[character-num]]" emptyMessage="nobody you know has died... yet...">
<$transclude tiddler="$:/plugins/hokiegeek/thousand-year-old-vampire/template/characters/character" mode="block" />
</$list>


A characters/view-characters-living.tid => characters/view-characters-living.tid +21 -0
@@ 0,0 1,21 @@
modified: 20220209182411000
created: 20220209182411000
title: $:/plugins/hokiegeek/thousand-year-old-vampire/templates/characters/living
tags: ThousandYearOldVampire
type: text/vnd.tiddlywiki
caption: Living

<$list filter="[tag[ThousandYearOldVampire]tag<currentTiddler>tag[character]!tag[dead]sort[character-num]]" emptyMessage="everybody you knew is dead">
<$transclude tiddler="$:/plugins/hokiegeek/thousand-year-old-vampire/template/characters/character" mode="block" />
</$list>
<!--
<$list filter="[tag[ThousandYearOldVampire]tag<currentTiddler>tag[character]!tag[dead]tag[immortal]sort[character-num]]">
<$transclude tiddler="$:/plugins/hokiegeek/thousand-year-old-vampire/template/characters/character" mode="block" />
</$list>
<$list filter="[tag[ThousandYearOldVampire]tag<currentTiddler>tag[character]!tag[dead]!tag[immortal]sort[character-num]]">
<$transclude tiddler="$:/plugins/hokiegeek/thousand-year-old-vampire/template/characters/character" mode="block" />
</$list>
<$list filter="[tag[ThousandYearOldVampire]tag<currentTiddler>tag[character]!tag[dead]count[]compare:integer:eq[0]]">
everybody you knew is dead
</$list>
-->

M plugin.info => plugin.info +1 -1
@@ 2,7 2,7 @@
    "title": "$:/plugins/hokiegeek/thousand-year-old-vampire-rpg",
    "description": "Some templates and stuff for recording plays of the Thousand Year Old Vampire RPG",
    "author": "hokiegeek",
    "version": "0.4.1",
    "version": "0.5.0",
    "core-version": ">=5.2.1",
    "source": "https://git.sr.ht/~hokiegeek/tw5-thousand-year-old-vampire-rpg",
    "plugin-type": "plugin",

M resources/template-resource.tid => resources/template-resource.tid +4 -4
@@ 16,15 16,15 @@ type: text/vnd.tiddlywiki
}
</style>

<$set name="lost" filter="[is[current]tag[lost]]">
<$reveal type="nomatch" default=<<lost>> text="">
<$set name="islost" filter="[is[current]tag[lost]then[yes]else[no]]">
<$reveal type="match" default=<<islost>> text="yes">
<$fieldmangler>
<$button tooltip="found" aria-label="found" message="tm-remove-tag" param="lost" class=<<tv-config-toolbar-class>>>
    {{$:/core/images/refresh-button}}
</$button>
</$fieldmangler>
</$reveal>
<$reveal type="match" default=<<lost>> text="">
<$reveal type="match" default=<<islost>> text="no">
<$fieldmangler>
<$button tooltip="lose" aria-label="lose" message="tm-add-tag" param="lost" class=<<tv-config-toolbar-class>>>
    {{$:/core/images/erase}}


@@ 44,6 44,6 @@ type: text/vnd.tiddlywiki
</$reveal>
</$set>
<$reveal type="match" default={{!!text}} text="">
mysterious resource #<$view field="resource-num" />
hazy resource #<$view field="resource-num" />
</$reveal>
<$transclude />

M view-tyov.tid => view-tyov.tid +6 -0
@@ 15,6 15,12 @@ caption: Thousand Year Old Vampire
        </$link>
    </div>
    <div>
        <p>
        A solo roleplaying game of memory, loss, and vampires.
        <p>
        </p>
        In Thousand Year Old Vampire you chronicle the many centuries of a vampire’s existence, beginning with the loss of mortality and ending with inevitable destruction. Prompt-driven play and simple resource tracking provide easy rules for exploring your character’s human failings, villainous acts, and surprising victories.  Expect gut-churning decisions and irreconcilable acts.
        </p>
        <div class="header-button">
            <h1>Vampires</h1>
            <$button tooltip="Turn a vampire" aria-label="Turn a vampire" class=<<tv-config-toolbar-class>>>

M view-vampire.tid => view-vampire.tid +4 -4
@@ 25,6 25,7 @@ type: text/vnd.tiddlywiki
- Characters
  * Mortal or immortal
  * Mortals can become immortal
  * Mortals die
- Marks
  * Can't be lost?



@@ 108,10 109,9 @@ used:
</$let>

<<traitHeader "Characters" "character">>
<!--
&#8734;
-->
<<list-links filter:"[tag[ThousandYearOldVampire]tag[character]tag{!!title}]" emptyMessage:"none yet">>
<$let tabstate={{{ [{!!title}addprefix[$:/state/thousand-year-old-vampire/tabs/characters/]] }}}>
<$macrocall $name="tabs" tabsList="$:/plugins/hokiegeek/thousand-year-old-vampire/templates/characters/living $:/plugins/hokiegeek/thousand-year-old-vampire/templates/characters/deceased" default="$:/plugins/hokiegeek/thousand-year-old-vampire/templates/characters/living" state=<<tabstate>> />
</$let>

<<traitHeader "Marks" "mark">>
<$list filter="[tag[ThousandYearOldVampire]tag[mark]tag{!!title}]" emptyMessage="none yet">