From Dark and Darker Wiki
(Initial commit with adventure points for Props) |
m (added caption to table) |
||
(9 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | |||
{{#arraydefine:ItemTypes|high-end props,coffin,ore,chest,herb,crate,pot,skeleton,barrel|,}} | {{#arraydefine:ItemTypes|high-end props,coffin,ore,chest,herb,crate,pot,skeleton,barrel|,}}<!-- | ||
{{#arraydefine:NonItemProps|lever,lever door,non-portal escape,portal,regular door,roaster,shrine,skeleton barrel,special door,torch|,}} | -->{{#arraydefine:NonItemProps|lever,lever door,non-portal escape,portal,regular door,roaster,shrine,skeleton barrel,special door,torch|,}}<!-- | ||
<!-- MISSING hoard=Treasure Hoard --> | --><!-- MISSING hoard=Treasure Hoard --><!-- | ||
--><!-- | |||
{{#arraydefine:PropAPNames|Treasure Hoard|,}} | -->{{#arraydefine:PropAPNames|Treasure Hoard|,}}<!-- | ||
<!-- Remember value -->{{#vardefine:Treasure Hoard-ruins|{{Prop Data|treasure hoard-ruins|hr|ap}}}} | --><!-- Remember value -->{{#vardefine:Treasure Hoard-ruins|{{Prop Data|treasure hoard-ruins|hr|ap}}}}<!-- | ||
<!-- Remember value -->{{#vardefine:Treasure Hoard-crypts|{{Prop Data|treasure hoard-crypts|hr|ap}}}} | --><!-- Remember value -->{{#vardefine:Treasure Hoard-crypts|{{Prop Data|treasure hoard-crypts|hr|ap}}}}<!-- | ||
<!-- Remember value -->{{#vardefine:Treasure Hoard-gobIce|{{Prop Data|treasure hoard-goblin caves and ice cavern|hr|ap}}}} | --><!-- Remember value -->{{#vardefine:Treasure Hoard-gobIce|{{Prop Data|treasure hoard-goblin caves and ice cavern|hr|ap}}}}<!-- | ||
<!-- Remember value -->{{#vardefine:Treasure Hoard-inferAbbys|{{Prop Data|treasure hoard-inferno and ice abyss|hr|ap}}}} | --><!-- Remember value -->{{#vardefine:Treasure Hoard-inferAbbys|{{Prop Data|treasure hoard-inferno and ice abyss|hr|ap}}}}<!-- | ||
--><!-- Remember value -->{{#vardefine:Treasure Hoard-highAP|{{Prop Data|treasure hoard-inferno and ice abyss|hr|ap}}}}<!-- | |||
<!-- | --><!-- | ||
{{# | --><!-- LOOP over item categories --><!-- | ||
-->{{#loop:LoopI|0|{{#arraysize:ItemTypes}}|<!-- | |||
<!-- | --><!--Debug print==--><!-- | ||
<!-- | --><!--Debug print{{#var:LoopI}} ->--><!-- | ||
<!-- | --><!--Debug print{{#arrayindex:ItemTypes|{{#var:LoopI}}}} :--><!-- | ||
{{# | --><!-- Loop over items in category --><!-- | ||
-->{{#arraydefine:CurArrayItems|{{Prop Data|AllList|Global|{{#arrayindex:ItemTypes|{{#var:LoopI}}}}}}|,}}<!-- | |||
<!-- | -->{{#loop:LoopJ|0|{{#arraysize:CurArrayItems}}|<!-- | ||
<!-- | --><!--Debug print{{#arrayindex:CurArrayItems|{{#var:LoopJ}}}}--><!-- | ||
{{# | --><!-- Item ap parsing --><!-- | ||
{{# | -->{{#vardefine:toAdd|0}}<!-- | ||
-->{{#vardefine:CurItem|{{#arrayindex:CurArrayItems|{{#var:LoopJ}}}}}}<!-- | |||
-->{{#vardefine:highAP|0}}<!-- | |||
{{#vardefine: | --><!-- | ||
<!-- | -->{{#vardefine:APVal|{{Prop Data|{{#var:CurItem}}-global|hr|ap}}}}<!-- | ||
<!-- | --><!-- Remember value -->{{#vardefine:{{#var:CurItem}}-global|{{#var:APVal}}}}<!-- | ||
<!-- | --><!-- Fix empty value-->{{#if:{{#var:APVal}}||{{#vardefine:APVal|0}}}}<!-- | ||
{ | --><!-- Copy value -->{{#ifexpr:{{#var:APVal}} > {{#var:highAP}}|{{#vardefine:highAP|{{#var:APVal}}}}|}}<!-- | ||
<!-- | -->{{#vardefine:APVal|{{Prop Data|{{#var:CurItem}}-global#locked|hr|ap}}}}<!-- | ||
<!-- | --><!-- Remember value -->{{#vardefine:{{#var:CurItem}}-globalLocked|{{#var:APVal}}}}<!-- | ||
<!-- | --><!-- Fix empty value-->{{#if:{{#var:APVal}}||{{#vardefine:APVal|0}}}}<!-- | ||
--><!-- Copy value -->{{#ifexpr:{{#var:APVal}} > {{#var:highAP}}|{{#vardefine:highAP|{{#var:APVal}}}}|}}<!-- | |||
{{#vardefine:APVal| | --><!-- | ||
<!-- | -->{{#vardefine:APVal|{{Prop Data|{{#var:CurItem}}-crypts|hr|ap}}}}<!-- | ||
--><!-- Remember value -->{{#vardefine:{{#var:CurItem}}-crypts|{{#var:APVal}}}}<!-- | |||
<!-- | --><!-- Fix empty value-->{{#if:{{#var:APVal}}||{{#vardefine:APVal|0}}}}<!-- | ||
--><!-- Copy value -->{{#ifexpr:{{#var:APVal}} > {{#var:highAP}}|{{#vardefine:highAP|{{#var:APVal}}}}|}}<!-- | |||
<!-- Remember value -->{{#vardefine:{{#var:CurItem}}- | -->{{#vardefine:APVal|{{Prop Data|{{#var:CurItem}}-crypts#locked|hr|ap}}}}<!-- | ||
<!-- Fix empty value-->{{#if:{{#var:APVal}}||{{#vardefine:APVal|0}}}} | --><!-- Remember value -->{{#vardefine:{{#var:CurItem}}-cryptsLocked|{{#var:APVal}}}}<!-- | ||
<!-- Copy value -->{{#ifexpr:{{#var:APVal}} > {{#var:highAP}}|{{#vardefine:highAP|{{#var:APVal}}}}|}} | --><!-- Fix empty value-->{{#if:{{#var:APVal}}||{{#vardefine:APVal|0}}}}<!-- | ||
--><!-- Copy value -->{{#ifexpr:{{#var:APVal}} > {{#var:highAP}}|{{#vardefine:highAP|{{#var:APVal}}}}|}}<!-- | |||
{{#vardefine:APVal|{{Prop Data|{{#var:CurItem}}- | --><!-- | ||
<!-- Remember value -->{{#vardefine:{{#var:CurItem}}- | -->{{#vardefine:APVal|{{Prop Data|{{#var:CurItem}}-ruins|hr|ap}}}}<!-- | ||
<!-- Fix empty value-->{{#if:{{#var:APVal}}||{{#vardefine:APVal|0}}}} | --><!-- Remember value -->{{#vardefine:{{#var:CurItem}}-ruins|{{#var:APVal}}}}<!-- | ||
<!-- Copy value -->{{#ifexpr:{{#var:APVal}} > {{#var:highAP}}|{{#vardefine:highAP|{{#var:APVal}}}}|}} | --><!-- Fix empty value-->{{#if:{{#var:APVal}}||{{#vardefine:APVal|0}}}}<!-- | ||
{{#vardefine:APVal|{{Prop Data|{{#var:CurItem}}-ruins | --><!-- Copy value -->{{#ifexpr:{{#var:APVal}} > {{#var:highAP}}|{{#vardefine:highAP|{{#var:APVal}}}}|}}<!-- | ||
<!-- Remember value -->{{#vardefine:{{#var:CurItem}}- | -->{{#vardefine:APVal|{{Prop Data|{{#var:CurItem}}-ruins#locked|hr|ap}}}}<!-- | ||
<!-- Fix empty value-->{{#if:{{#var:APVal}}||{{#vardefine:APVal|0}}}} | --><!-- Remember value -->{{#vardefine:{{#var:CurItem}}-ruinsLocked|{{#var:APVal}}}}<!-- | ||
<!-- Copy value -->{{#ifexpr:{{#var:APVal}} > {{#var:highAP}}|{{#vardefine:highAP|{{#var:APVal}}}}|}} | --><!-- Fix empty value-->{{#if:{{#var:APVal}}||{{#vardefine:APVal|0}}}}<!-- | ||
--><!-- Copy value -->{{#ifexpr:{{#var:APVal}} > {{#var:highAP}}|{{#vardefine:highAP|{{#var:APVal}}}}|}}<!-- | |||
{{#vardefine:APVal|{{Prop Data|{{#var:CurItem}}- | --><!-- | ||
<!-- | -->{{#vardefine:APVal|{{Prop Data|{{#var:CurItem}}-goblin caves and ice cavern|hr|ap}}}}<!-- | ||
<!-- Fix empty value-->{{#if:{{#var:APVal}}||{{#vardefine:APVal|0}}}} | --><!-- Remember value -->{{#vardefine:{{#var:CurItem}}-gobIce|{{#var:APVal}}}}<!-- | ||
<!-- Copy value -->{{#ifexpr:{{#var:APVal}} > {{#var:highAP}}|{{#vardefine:highAP|{{#var:APVal}}}}|}} | --><!-- Fix empty value-->{{#if:{{#var:APVal}}||{{#vardefine:APVal|0}}}}<!-- | ||
--><!-- Copy value -->{{#ifexpr:{{#var:APVal}} > {{#var:highAP}}|{{#vardefine:highAP|{{#var:APVal}}}}|}}<!-- | |||
<!-- Remember value -->{{#vardefine:{{#var:CurItem}}- | -->{{#vardefine:APVal|{{Prop Data|{{#var:CurItem}}-goblin caves and ice cavern#locked|hr|ap}}}}<!-- | ||
<!-- Fix empty value-->{{#if:{{#var:APVal}}||{{#vardefine:APVal|0}}}} | --><!-- Remember value -->{{#vardefine:{{#var:CurItem}}-gobIceLocked|{{#var:APVal}}}}<!-- | ||
<!-- Copy value -->{{#ifexpr:{{#var:APVal}} > {{#var:highAP}}|{{#vardefine:highAP|{{#var:APVal}}}}|}} | --><!-- Fix empty value-->{{#if:{{#var:APVal}}||{{#vardefine:APVal|0}}}}<!-- | ||
--><!-- Copy value -->{{#ifexpr:{{#var:APVal}} > {{#var:highAP}}|{{#vardefine:highAP|{{#var:APVal}}}}|}}<!-- | |||
{{#vardefine:APVal|{{Prop Data|{{#var:CurItem}}- | --><!-- | ||
<!-- Remember value -->{{#vardefine:{{#var:CurItem}}- | -->{{#vardefine:APVal|{{Prop Data|{{#var:CurItem}}-inferno and ice abyss|hr|ap}}}}<!-- | ||
<!-- Fix empty value-->{{#if:{{#var:APVal}}||{{#vardefine:APVal|0}}}} | --><!-- Remember value -->{{#vardefine:{{#var:CurItem}}-inferAbbys|{{#var:APVal}}}}<!-- | ||
<!-- Copy value -->{{#ifexpr:{{#var:APVal}} > {{#var:highAP}}|{{#vardefine:highAP|{{#var:APVal}}}}|}} | --><!-- Fix empty value-->{{#if:{{#var:APVal}}||{{#vardefine:APVal|0}}}}<!-- | ||
{{#vardefine:APVal|{{Prop Data|{{#var:CurItem}}-inferno and ice abyss | --><!-- Copy value -->{{#ifexpr:{{#var:APVal}} > {{#var:highAP}}|{{#vardefine:highAP|{{#var:APVal}}}}|}}<!-- | ||
<!-- Remember value -->{{#vardefine:{{#var:CurItem}}- | -->{{#vardefine:APVal|{{Prop Data|{{#var:CurItem}}-inferno and ice abyss#locked|hr|ap}}}}<!-- | ||
<!-- Fix empty value-->{{#if:{{#var:APVal}}||{{#vardefine:APVal|0}}}} | --><!-- Remember value -->{{#vardefine:{{#var:CurItem}}-inferAbbysLocked|{{#var:APVal}}}}<!-- | ||
<!-- | --><!-- Fix empty value-->{{#if:{{#var:APVal}}||{{#vardefine:APVal|0}}}}<!-- | ||
--><!-- Copy value -->{{#ifexpr:{{#var:APVal}} > {{#var:highAP}}|{{#vardefine:highAP|{{#var:APVal}}}}|}}<!-- | |||
<!-- | --><!-- | ||
{{# | --><!-- If --><!-- | ||
-->{{#ifexpr:0 < {{#var:highAP}}|<!-- | |||
-->{{#arraydefine:PropAPNames|{{#arrayprint:PropAPNames|,}},{{#var:CurItem}}|,}}<!-- | |||
<!-- | -->{{#vardefine:{{#var:CurItem}}-highAP|{{#var:highAP}}}}<!-- | ||
-->|}}<!-- | |||
--><!-- End If --><!-- | |||
-->}}<!-- | |||
<!-- | -->}}<!-- | ||
{{# | --><!-- END ITEMS LOOP --><!-- | ||
{{#vardefine: | --><!-- PROP LOOP --><!-- | ||
<!-- | -->{{#loop:LoopI|0|{{#arraysize:NonItemProps}}|<!-- | ||
{{# | -->{{#vardefine:PropCategory|{{#arrayindex:NonItemProps|{{#var:LoopI}}}}}}<!-- | ||
<!--{{ | --><!-- DEBUG PRINT {{#var:LoopI}} {{#var:PropCategory}} :--><!-- | ||
{{# | -->{{#arraydefine:CurCategProps|{{Prop Data|AllList|{{#var:PropCategory}}|all}}|,}}<!-- | ||
{{# | --><!--{{Prop Data|AllList|{{#var:CurItem}}|all}}--><!-- | ||
{{#vardefine: | -->{{#loop:LoopJ|0|{{#arraysize:CurCategProps}}|<!-- | ||
-->{{#vardefine:CurItem|{{#arrayindex:CurCategProps|{{#var:LoopJ}}}}}}<!-- | |||
{{# | -->{{#vardefine:APVal|{{Prop Data|{{#arrayindex:CurCategProps|{{#var:LoopJ}}}}|global|ap}}}}<!-- | ||
{{# | -->{{#vardefine:{{#var:CurItem}}-global|{{#var:APVal}}}}<!-- | ||
-->{{#if:{{#var:APVal}}|<!-- | |||
-->{{#arraydefine:PropAPNames|{{#arrayprint:PropAPNames|,}},{{#var:CurItem}}|,}}<!-- | |||
-->|}}<!-- | |||
-->}}<!-- | |||
<!-- | -->}}<!-- | ||
--> | --><!-- END PROP LOOP --><!-- | ||
--><!-- Result Table --><!-- | |||
--><table id="APTableProps" cellspacing="0" class="wikitable sortable stripedtable jquery-tablesorter mw-collapsible" style="width:60%; border-collapse:collapse; background:transparent; text-align:center"><!-- | |||
--><caption>AP points for prop interaction</caption><!-- | |||
--><tr><!-- | |||
--><th style="width:20%" data-sort-type="text" class="headerSort" tabindex="0" role="columnheader button" title="Name">Name</th><!-- | |||
--><th style="width:10%" data-sort-type="number" class="headerSort" tabindex="1" role="columnheader button" title="Max">Highest value</th><!-- | |||
--><th style="width:06%" data-sort-type="number" class="headerSort" tabindex="2" role="columnheader button" title="Global">Global</th><!-- | |||
--><th style="width:10%" data-sort-type="number" class="headerSort" tabindex="3" role="columnheader button" title="Goblind">Goblin / Ice Cavern</th><!-- | |||
--><th style="width:05%" data-sort-type="number" class="headerSort" tabindex="4" role="columnheader button" title="Crypts">Crypts</th><!-- | |||
--><th style="width:05%" data-sort-type="number" class="headerSort" tabindex="5" role="columnheader button" title="Ruins">Ruins</th><!-- | |||
--><th style="width:10%" data-sort-type="number" class="headerSort" tabindex="6" role="columnheader button" title="Inferno">Inferno / Ice Abbys</th><!-- | |||
--></tr><!-- | |||
-->{{#loop:LoopTable|0|{{#arraysize:PropAPNames}}<!-- | |||
-->|<!-- Loop --><!-- | -->|<!-- Loop --><!-- | ||
-->{{#vardefine:name|{{#arrayindex:PropAPNames|{{#var:LoopTable}}}}}}<!-- | -->{{#vardefine:name|{{#arrayindex:PropAPNames|{{#var:LoopTable}}}}}}<!-- | ||
--><tr><!-- | --><tr><!-- | ||
--><td>{{#var:name}}</td><!-- | --><td>[[{{#replace:{{#var:name}}| Prop|}}]]</td><!-- | ||
--><td>{{#if:{{#var:{{#var:name}}- | --><td>{{#if:{{#var:{{#var:name}}-highAP}}|{{#var:{{#var:name}}-highAP}}|{{#if:{{#var:{{#var:name}}-global}}|{{#var:{{#var:name}}-global}}|{{#var:{{#var:name}}-globalLocked}}}}}}</td><!-- | ||
--><td>{{#if:{{#var:{{#var:name}}- | --><td>{{#if:{{#var:{{#var:name}}-global}}|{{#var:{{#var:name}}-global}}|{{#var:{{#var:name}}-globalLocked}}}}</td><!-- | ||
--><td>{{#if:{{#var:{{#var:name}}- | --><td>{{#if:{{#var:{{#var:name}}-gobIce}}|{{#var:{{#var:name}}-gobIce}}|{{#if:{{#var:{{#var:name}}-gobIceLocked}}|{{#var:{{#var:name}}-gobIceLocked}}|}}}}</td><!-- | ||
--><td>{{#if:{{#var:{{#var:name}}-inferAbbys}}|{{#var:{{#var:name}}-inferAbbys}}|{{#if:{{#var:{{#var:name}}-inferAbbysLocked}}|{{#var:{{#var:name}}-inferAbbysLocked}}| | --><td>{{#if:{{#var:{{#var:name}}-crypts}}|{{#var:{{#var:name}}-crypts}}|{{#if:{{#var:{{#var:name}}-cryptsLocked}}|{{#var:{{#var:name}}-cryptsLocked}}|}}}}</td><!-- | ||
--><td>{{#if:{{#var:{{#var:name}}-ruins}}|{{#var:{{#var:name}}-ruins}}|{{#if:{{#var:{{#var:name}}-ruinsLocked}}|{{#var:{{#var:name}}-ruinsLocked}}|}}}}</td><!-- | |||
--><td>{{#if:{{#var:{{#var:name}}-inferAbbys}}|{{#var:{{#var:name}}-inferAbbys}}|{{#if:{{#var:{{#var:name}}-inferAbbysLocked}}|{{#var:{{#var:name}}-inferAbbysLocked}}|}}}}</td><!-- | |||
--></tr><!-- | --></tr><!-- | ||
-->}}<!-- | -->}}<!-- | ||
--></table><!-- | --></table><!-- | ||
--></includeonly><!-- | |||
--><noinclude><!-- | |||
-->{{Template:Adventure_Points_Table}} |