Difference between revisions of "Template:Event points table"

From mtgpq wiki
Jump to: navigation, search
 
(9 intermediate revisions by the same user not shown)
Line 5: Line 5:
 
Parameters are:
 
Parameters are:
 
* event: The name of the event.  This is used to extract information about charges from the event's data template.
 
* 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
+
* start_hour: The hour (0-23) on which event starts, in UTC
 
* 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.
 
* 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.
 
* base_1: The number of base points scorable on the first round of sub-nodes.
Line 20: Line 20:
 
<pre><nowiki>
 
<pre><nowiki>
 
{{Event points table
 
{{Event points table
|event=A World Reborn
+
|event=Terrors in the Shadows
 
|start_hour=13
 
|start_hour=13
|total_hours=70
+
|total_hours=62
|base_1=15
+
|base_1=25
|bonus_1=10
+
|bonus_1=20
|base_2=15
 
|bonus_2=10
 
|base_3=15
 
|bonus_3=10
 
 
}}
 
}}
 
</nowiki></pre>
 
</nowiki></pre>
Line 34: Line 30:
 
Produces:
 
Produces:
 
{{Event points table
 
{{Event points table
|event=A World Reborn
+
|event=Terrors in the Shadows
 
|start_hour=13
 
|start_hour=13
|total_hours=70
+
|total_hours=62
|base_1=15
+
|base_1=25
|bonus_1=10
+
|bonus_1=20
|base_2=15
 
|bonus_2=10
 
|base_3=15
 
|bonus_3=10
 
 
}}
 
}}
  
Line 50: Line 42:
 
! colspan="3" | Possible points
 
! colspan="3" | Possible points
 
! rowspan="2" | Time elapsed
 
! rowspan="2" | Time elapsed
! rowspan="2" | Time in PDT
+
! rowspan="2" | Time in UTC
 
|-
 
|-
 
! Base
 
! Base
Line 114: Line 106:
  
 
-->{{#ifexpr: 20 >= {{Event data: {{{event}}}|8}} and 20 < {{{total_hours}}} / {{#explode:{{Event data: {{{event}}}|10}}|h|0}} + {{Event data: {{{event}}}|8}}|<br><!--
 
-->{{#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|}}}}}}}
+
-->{{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|}}}}}}}<!--
|-
+
Show the final line unless it's a boss HP event, and the given end time is on a recharge point
| colspan="3" | <small>'''''Event end'''''</small>
+
-->{{#ifexpr:
| <!-- Total max points:  all_charges = init_charges + total_hours / recharge_time
+
{{#ifexpr: {{#pos:{{Event data: {{{event}}}|11}}|boss_hp}}|1|0}} and
 +
{{{total_hours}}} mod {{#explode:{{Event data: {{{event}}}|10}}|h|0}} = 0 ||<br>
 +
{{!}}-
 +
{{!}} colspan="3" {{!}} <small>'''''Event end'''''{{#if:{{#pos:{{Event data: {{{event}}}|11}}|boss_hp}}|<sup> †</sup>}}</small>
 +
{{!}} <!-- Total max points:  all_charges = init_charges + total_hours / recharge_time
 
     floor((subnodes - 1 + all_charges) / subnodes) * (base_1 + bonus_1)
 
     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 > 1: floor((subnodes - 2 + all_charges / subnodes) * (base_2 + bonus_2))
Line 124: Line 120:
 
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}})
 
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}}})
 
* ({{{base_1}}} + {{{bonus_1}}})
{{#if: {{#expr: {{Event data: {{{event}}}|7}} > 1}}|
+
{{#ifexpr: {{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}})
 
+ 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}}})}}
 
* ({{{base_2}}} + {{{bonus_2}}})}}
{{#if: {{#expr: {{Event data: {{{event}}}|7}} > 2}}|
+
{{#ifexpr: {{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}})
 
+ 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}}})}}  
+
* ({{{base_3}}} + {{{bonus_3}}})}}
 
}}'''
 
}}'''
| +{{{total_hours}}} Hrs
+
{{!}} +{{{total_hours}}} Hrs
| {{#expr:({{{start_hour}}} + {{{total_hours}}}) mod 24 }}:00
+
{{!}} {{Hours formatted|{{#expr:{{{start_hour}}} + {{{total_hours}}}}}}}}}
 
|}
 
|}
  
<nowiki>*</nowiki> Maximum charges reached if you have not started playing yet.
+
<nowiki>*</nowiki> Maximum charges reached if you have not started playing yet.<!--
 
+
-->{{#ifexpr: {{{total_hours}}} mod {{#explode:{{Event data: {{{event}}}|10}}|h|0}} > 0|<br>
{{#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.}}<!--
--><sup>§</sup> {{#expr: {{{total_hours}}} mod {{#explode:{{Event data: {{{event}}}|10}}|h|0}}}} hours available to complete last charge.}}
+
-->{{#if:{{#pos:{{Event data: {{{event}}}|11}}|boss_hp}}|<br>
</includeonly>
+
<sup>†</sup> This is a boss health event, which can potentially end prior to the scheduled finish time.}}</includeonly>

Latest revision as of 05:24, 28 December 2019

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 UTC
  • 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:

{{Event points table
|event=Terrors in the Shadows
|start_hour=13
|total_hours=62
|base_1=25
|bonus_1=20
}}

Produces:

Total Possible Points
Number of charges Possible points Time elapsed Time in UTC
Base Bonus Total
(Initial charges) 75 60 135 -START- 1:00 PM
4 100 80 180 +8 Hrs 9:00 PM
(Max charges reached)* 125 100 225 +16 Hrs 5:00 AM
6 150 120 270 +24 Hrs 1:00 PM
7 175 140 315 +32 Hrs 9:00 PM
8 200 160 360 +40 Hrs 5:00 AM
9 225 180 405 +48 Hrs 1:00 PM
10§ 250 200 450 +56 Hrs 9:00 PM
Event end 450 +62 Hrs 3:00 AM

* Maximum charges reached if you have not started playing yet.
§ 6 hours available to complete last charge.