Changes

Jump to: navigation, search

Template:Event points table

196 bytes added, 05:24, 28 December 2019
no edit summary
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 PDTUTC
* 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.
<pre><nowiki>
{{Event points table
|event=A World RebornTerrors in the Shadows
|start_hour=13
|total_hours=7062|base_1=1525|bonus_1=10|base_2=15|bonus_2=10|base_3=15|bonus_3=1020
}}
</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
}}
 
{{Event points table
|event=Terrors in the Shadows
|start_hour=13
|total_hours=7062
|base_1=25
|bonus_1=20
! colspan="3" | Possible points
! rowspan="2" | Time elapsed
! rowspan="2" | Time in PDTUTC
|-
! Base
-->{{#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|}}}}}}}<!--Show the final line unless it's a boss HP event, and the given end time is on a recharge point-->{{#ifexpr:{{#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)
+ 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(({{#if:{{Event data: {{{event}}}|7}}|{{Event data: {{{event}}}|7}} - 1 +}} floor({{Event data: {{{event}}}|8}} + ({{{total_hours}}} - 0.001) / {{#explode:{{Event data: {{{event}}}|10}}|h|0}})) / {{#if:{{Event data: {{{event}}}|7}}|{{Event data: {{{event}}}|7}}|1}})
* ({{{base_1}}} + {{{bonus_1}}})
{{#ifexpr: {{#if:{{Event data: {{{event}}}|7}}}} and {{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}}})}}
{{#ifexpr: {{#if:{{Event data: {{{event}}}|7}}}} and {{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{{!}} {{Hours formatted| {{#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|<!--br>--><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><sup>†</sup> This is a boss health event, which can potentially end prior to the scheduled finish time.}}</includeonly>

Navigation menu