Changes

Jump to: navigation, search

Template:Event points table

11,844 bytes added, 05:09, 1 March 2019
Created page with "<noinclude> ==Usage== Generates a table showing times, charges, and possible points for an event. Parameters are: * event: The name of the event. This is used to extract inf..."
<noinclude>
==Usage==
Generates a table showing times, charges, and possible points for an event.

Parameters are:
* event: The name of the event. This is used to extract information about charges from the event's data template.
* start_hour: The hour (0-23) on which event starts, in PDT
* total_hours: The total number of hours from the start time to the end time. For events with unpredictable end times, like boss health events, this controls how many rows of the table to show, and does not indicate the actual end time.
* base_1: The number of base points scorable on the first round of sub-nodes.
* bonus_1: The number of bonus points scorable on the first round of sub-nodes.
* base_2: The number of base points scorable on the second round of sub-nodes. Must be present if there are at least 2 sub-nodes.
* bonus_2: The number of bonus points scorable on the second round of sub-nodes. Must be present if there are at least 2 sub-nodes.
* base_3: The number of base points scorable on the third round of sub-nodes. Must be present if there are at least 3 sub-nodes.
* bonus_3: The number of bonus points scorable on the third round of sub-nodes. Must be present if there are at least 3 sub-nodes.


==Example==

The following shorthand:
<pre><nowiki>
{{Event points table
|event=A World Reborn
|start_hour=13
|total_hours=70
|base_1=15
|bonus_1=10
|base_2=15
|bonus_2=10
|base_3=15
|bonus_3=10
}}
</nowiki></pre>

Produces:
{{Event points table
|event=A World Reborn
|start_hour=13
|total_hours=70
|base_1=15
|bonus_1=10
|base_2=15
|bonus_2=10
|base_3=15
|bonus_3=10
}}

</noinclude><includeonly>{| class="wikitable"
|+ Total Possible Points
! rowspan="2" | Number of charges
! colspan="3" | Possible points
! rowspan="2" | Time elapsed
! rowspan="2" | Time in PDT
|-
! Base
! Bonus
! Total
|-
{{#ifexpr: 1 >= {{Event data: {{{event}}}|8}} and 1 < {{{total_hours}}} / {{#explode:{{Event data: {{{event}}}|10}}|h|0}} + {{Event data: {{{event}}}|8}}|<br><!--
-->{{Event points table row|event={{{event}}}|charges=1|start_hour={{{start_hour}}}|total_hours={{{total_hours}}}|base_1={{{base_1}}}|bonus_1={{{bonus_1}}}|base_2={{{base_2|}}}|bonus_2={{{bonus_2|}}}|base_3={{{base_3|}}}|bonus_3={{{bonus_3|}}}}}}}<!--

-->{{#ifexpr: 2 >= {{Event data: {{{event}}}|8}} and 2 < {{{total_hours}}} / {{#explode:{{Event data: {{{event}}}|10}}|h|0}} + {{Event data: {{{event}}}|8}}|<br><!--
-->{{Event points table row|event={{{event}}}|charges=2|start_hour={{{start_hour}}}|total_hours={{{total_hours}}}|base_1={{{base_1}}}|bonus_1={{{bonus_1}}}|base_2={{{base_2|}}}|bonus_2={{{bonus_2|}}}|base_3={{{base_3|}}}|bonus_3={{{bonus_3|}}}}}}}<!--

-->{{#ifexpr: 3 >= {{Event data: {{{event}}}|8}} and 3 < {{{total_hours}}} / {{#explode:{{Event data: {{{event}}}|10}}|h|0}} + {{Event data: {{{event}}}|8}}|<br><!--
-->{{Event points table row|event={{{event}}}|charges=3|start_hour={{{start_hour}}}|total_hours={{{total_hours}}}|base_1={{{base_1}}}|bonus_1={{{bonus_1}}}|base_2={{{base_2|}}}|bonus_2={{{bonus_2|}}}|base_3={{{base_3|}}}|bonus_3={{{bonus_3|}}}}}}}<!--

-->{{#ifexpr: 4 >= {{Event data: {{{event}}}|8}} and 4 < {{{total_hours}}} / {{#explode:{{Event data: {{{event}}}|10}}|h|0}} + {{Event data: {{{event}}}|8}}|<br><!--
-->{{Event points table row|event={{{event}}}|charges=4|start_hour={{{start_hour}}}|total_hours={{{total_hours}}}|base_1={{{base_1}}}|bonus_1={{{bonus_1}}}|base_2={{{base_2|}}}|bonus_2={{{bonus_2|}}}|base_3={{{base_3|}}}|bonus_3={{{bonus_3|}}}}}}}<!--

-->{{#ifexpr: 5 >= {{Event data: {{{event}}}|8}} and 5 < {{{total_hours}}} / {{#explode:{{Event data: {{{event}}}|10}}|h|0}} + {{Event data: {{{event}}}|8}}|<br><!--
-->{{Event points table row|event={{{event}}}|charges=5|start_hour={{{start_hour}}}|total_hours={{{total_hours}}}|base_1={{{base_1}}}|bonus_1={{{bonus_1}}}|base_2={{{base_2|}}}|bonus_2={{{bonus_2|}}}|base_3={{{base_3|}}}|bonus_3={{{bonus_3|}}}}}}}<!--

-->{{#ifexpr: 6 >= {{Event data: {{{event}}}|8}} and 6 < {{{total_hours}}} / {{#explode:{{Event data: {{{event}}}|10}}|h|0}} + {{Event data: {{{event}}}|8}}|<br><!--
-->{{Event points table row|event={{{event}}}|charges=6|start_hour={{{start_hour}}}|total_hours={{{total_hours}}}|base_1={{{base_1}}}|bonus_1={{{bonus_1}}}|base_2={{{base_2|}}}|bonus_2={{{bonus_2|}}}|base_3={{{base_3|}}}|bonus_3={{{bonus_3|}}}}}}}<!--

-->{{#ifexpr: 7 >= {{Event data: {{{event}}}|8}} and 7 < {{{total_hours}}} / {{#explode:{{Event data: {{{event}}}|10}}|h|0}} + {{Event data: {{{event}}}|8}}|<br><!--
-->{{Event points table row|event={{{event}}}|charges=7|start_hour={{{start_hour}}}|total_hours={{{total_hours}}}|base_1={{{base_1}}}|bonus_1={{{bonus_1}}}|base_2={{{base_2|}}}|bonus_2={{{bonus_2|}}}|base_3={{{base_3|}}}|bonus_3={{{bonus_3|}}}}}}}<!--

-->{{#ifexpr: 8 >= {{Event data: {{{event}}}|8}} and 8 < {{{total_hours}}} / {{#explode:{{Event data: {{{event}}}|10}}|h|0}} + {{Event data: {{{event}}}|8}}|<br><!--
-->{{Event points table row|event={{{event}}}|charges=8|start_hour={{{start_hour}}}|total_hours={{{total_hours}}}|base_1={{{base_1}}}|bonus_1={{{bonus_1}}}|base_2={{{base_2|}}}|bonus_2={{{bonus_2|}}}|base_3={{{base_3|}}}|bonus_3={{{bonus_3|}}}}}}}<!--

-->{{#ifexpr: 9 >= {{Event data: {{{event}}}|8}} and 9 < {{{total_hours}}} / {{#explode:{{Event data: {{{event}}}|10}}|h|0}} + {{Event data: {{{event}}}|8}}|<br><!--
-->{{Event points table row|event={{{event}}}|charges=9|start_hour={{{start_hour}}}|total_hours={{{total_hours}}}|base_1={{{base_1}}}|bonus_1={{{bonus_1}}}|base_2={{{base_2|}}}|bonus_2={{{bonus_2|}}}|base_3={{{base_3|}}}|bonus_3={{{bonus_3|}}}}}}}<!--

-->{{#ifexpr: 10 >= {{Event data: {{{event}}}|8}} and 10 < {{{total_hours}}} / {{#explode:{{Event data: {{{event}}}|10}}|h|0}} + {{Event data: {{{event}}}|8}}|<br><!--
-->{{Event points table row|event={{{event}}}|charges=10|start_hour={{{start_hour}}}|total_hours={{{total_hours}}}|base_1={{{base_1}}}|bonus_1={{{bonus_1}}}|base_2={{{base_2|}}}|bonus_2={{{bonus_2|}}}|base_3={{{base_3|}}}|bonus_3={{{bonus_3|}}}}}}}<!--

-->{{#ifexpr: 11 >= {{Event data: {{{event}}}|8}} and 11 < {{{total_hours}}} / {{#explode:{{Event data: {{{event}}}|10}}|h|0}} + {{Event data: {{{event}}}|8}}|<br><!--
-->{{Event points table row|event={{{event}}}|charges=11|start_hour={{{start_hour}}}|total_hours={{{total_hours}}}|base_1={{{base_1}}}|bonus_1={{{bonus_1}}}|base_2={{{base_2|}}}|bonus_2={{{bonus_2|}}}|base_3={{{base_3|}}}|bonus_3={{{bonus_3|}}}}}}}<!--

-->{{#ifexpr: 12 >= {{Event data: {{{event}}}|8}} and 12 < {{{total_hours}}} / {{#explode:{{Event data: {{{event}}}|10}}|h|0}} + {{Event data: {{{event}}}|8}}|<br><!--
-->{{Event points table row|event={{{event}}}|charges=12|start_hour={{{start_hour}}}|total_hours={{{total_hours}}}|base_1={{{base_1}}}|bonus_1={{{bonus_1}}}|base_2={{{base_2|}}}|bonus_2={{{bonus_2|}}}|base_3={{{base_3|}}}|bonus_3={{{bonus_3|}}}}}}}<!--

-->{{#ifexpr: 13 >= {{Event data: {{{event}}}|8}} and 13 < {{{total_hours}}} / {{#explode:{{Event data: {{{event}}}|10}}|h|0}} + {{Event data: {{{event}}}|8}}|<br><!--
-->{{Event points table row|event={{{event}}}|charges=13|start_hour={{{start_hour}}}|total_hours={{{total_hours}}}|base_1={{{base_1}}}|bonus_1={{{bonus_1}}}|base_2={{{base_2|}}}|bonus_2={{{bonus_2|}}}|base_3={{{base_3|}}}|bonus_3={{{bonus_3|}}}}}}}<!--

-->{{#ifexpr: 14 >= {{Event data: {{{event}}}|8}} and 14 < {{{total_hours}}} / {{#explode:{{Event data: {{{event}}}|10}}|h|0}} + {{Event data: {{{event}}}|8}}|<br><!--
-->{{Event points table row|event={{{event}}}|charges=14|start_hour={{{start_hour}}}|total_hours={{{total_hours}}}|base_1={{{base_1}}}|bonus_1={{{bonus_1}}}|base_2={{{base_2|}}}|bonus_2={{{bonus_2|}}}|base_3={{{base_3|}}}|bonus_3={{{bonus_3|}}}}}}}<!--

-->{{#ifexpr: 15 >= {{Event data: {{{event}}}|8}} and 15 < {{{total_hours}}} / {{#explode:{{Event data: {{{event}}}|10}}|h|0}} + {{Event data: {{{event}}}|8}}|<br><!--
-->{{Event points table row|event={{{event}}}|charges=15|start_hour={{{start_hour}}}|total_hours={{{total_hours}}}|base_1={{{base_1}}}|bonus_1={{{bonus_1}}}|base_2={{{base_2|}}}|bonus_2={{{bonus_2|}}}|base_3={{{base_3|}}}|bonus_3={{{bonus_3|}}}}}}}<!--

-->{{#ifexpr: 16 >= {{Event data: {{{event}}}|8}} and 16 < {{{total_hours}}} / {{#explode:{{Event data: {{{event}}}|10}}|h|0}} + {{Event data: {{{event}}}|8}}|<br><!--
-->{{Event points table row|event={{{event}}}|charges=16|start_hour={{{start_hour}}}|total_hours={{{total_hours}}}|base_1={{{base_1}}}|bonus_1={{{bonus_1}}}|base_2={{{base_2|}}}|bonus_2={{{bonus_2|}}}|base_3={{{base_3|}}}|bonus_3={{{bonus_3|}}}}}}}<!--

-->{{#ifexpr: 17 >= {{Event data: {{{event}}}|8}} and 17 < {{{total_hours}}} / {{#explode:{{Event data: {{{event}}}|10}}|h|0}} + {{Event data: {{{event}}}|8}}|<br><!--
-->{{Event points table row|event={{{event}}}|charges=17|start_hour={{{start_hour}}}|total_hours={{{total_hours}}}|base_1={{{base_1}}}|bonus_1={{{bonus_1}}}|base_2={{{base_2|}}}|bonus_2={{{bonus_2|}}}|base_3={{{base_3|}}}|bonus_3={{{bonus_3|}}}}}}}<!--

-->{{#ifexpr: 18 >= {{Event data: {{{event}}}|8}} and 18 < {{{total_hours}}} / {{#explode:{{Event data: {{{event}}}|10}}|h|0}} + {{Event data: {{{event}}}|8}}|<br><!--
-->{{Event points table row|event={{{event}}}|charges=18|start_hour={{{start_hour}}}|total_hours={{{total_hours}}}|base_1={{{base_1}}}|bonus_1={{{bonus_1}}}|base_2={{{base_2|}}}|bonus_2={{{bonus_2|}}}|base_3={{{base_3|}}}|bonus_3={{{bonus_3|}}}}}}}<!--

-->{{#ifexpr: 19 >= {{Event data: {{{event}}}|8}} and 19 < {{{total_hours}}} / {{#explode:{{Event data: {{{event}}}|10}}|h|0}} + {{Event data: {{{event}}}|8}}|<br><!--
-->{{Event points table row|event={{{event}}}|charges=19|start_hour={{{start_hour}}}|total_hours={{{total_hours}}}|base_1={{{base_1}}}|bonus_1={{{bonus_1}}}|base_2={{{base_2|}}}|bonus_2={{{bonus_2|}}}|base_3={{{base_3|}}}|bonus_3={{{bonus_3|}}}}}}}<!--

-->{{#ifexpr: 20 >= {{Event data: {{{event}}}|8}} and 20 < {{{total_hours}}} / {{#explode:{{Event data: {{{event}}}|10}}|h|0}} + {{Event data: {{{event}}}|8}}|<br><!--
-->{{Event points table row|event={{{event}}}|charges=20|start_hour={{{start_hour}}}|total_hours={{{total_hours}}}|base_1={{{base_1}}}|bonus_1={{{bonus_1}}}|base_2={{{base_2|}}}|bonus_2={{{bonus_2|}}}|base_3={{{base_3|}}}|bonus_3={{{bonus_3|}}}}}}}
|-
| colspan="3" | <small>'''''Event end'''''</small>
| <!-- Total max points: all_charges = init_charges + total_hours / recharge_time
floor((subnodes - 1 + all_charges) / subnodes) * (base_1 + bonus_1)
+ IF(subnodes > 1: floor((subnodes - 2 + all_charges / subnodes) * (base_2 + bonus_2))
+ IF(subnodes > 2: floor((subnodes - 3 + all_charges / subnodes) * (base_3 + bonus_3))
--> '''{{#expr:
floor(({{Event data: {{{event}}}|7}} - 1 + floor({{Event data: {{{event}}}|8}} + ({{{total_hours}}} - 0.001) / {{#explode:{{Event data: {{{event}}}|10}}|h|0}})) / {{Event data: {{{event}}}|7}})
* ({{{base_1}}} + {{{bonus_1}}})
{{#if: {{#expr: {{Event data: {{{event}}}|7}} > 1}}|
+ floor(({{Event data: {{{event}}}|7}} - 2 + floor({{Event data: {{{event}}}|8}} + ({{{total_hours}}} - 0.001) / {{#explode:{{Event data: {{{event}}}|10}}|h|0}})) / {{Event data: {{{event}}}|7}})
* ({{{base_2}}} + {{{bonus_2}}})}}
{{#if: {{#expr: {{Event data: {{{event}}}|7}} > 2}}|
+ floor(({{Event data: {{{event}}}|7}} - 3 + floor({{Event data: {{{event}}}|8}} + ({{{total_hours}}} - 0.001) / {{#explode:{{Event data: {{{event}}}|10}}|h|0}})) / {{Event data: {{{event}}}|7}})
* ({{{base_3}}} + {{{bonus_3}}})}}
}}'''
| +{{{total_hours}}} Hrs
| {{#expr:({{{start_hour}}} + {{{total_hours}}}) mod 24 }}:00
|}

<nowiki>*</nowiki> Maximum charges reached if you have not started playing yet.

{{#ifexpr: {{{total_hours}}} mod {{#explode:{{Event data: {{{event}}}|10}}|h|0}} > 0|<!--
--><sup>§</sup> {{#expr: {{{total_hours}}} mod {{#explode:{{Event data: {{{event}}}|10}}|h|0}}}} hours available to complete last charge.}}
</includeonly>

Navigation menu