Difference between revisions of "User:Soulweaver/PartyPokéTemplate"

m
I'm positive I found the culprit now
m (nope, maybe if I'll swing it this way...)
m (I'm positive I found the culprit now)
<noinclude>
'''NOTE!'''
 
Do not use with Pokémon with Lv. 100 EXP of 1,640,000. There is an error somewhere in the expression which causes the EXP bar to be calculated incorrectly. The error might appear only on the piecewise function border levels (in this case, Lv15 shows wrong values at least) or on all levels.
__TOC__
 
|nature=Lax
|ability=Aftermath
|exp=19572375
|hp=53
|hpmax=53
 
</noinclude><includeonly>{| class="expandable" style="text-align: center; width: {{{boxwidth|100%}}}; background-color: {{{bgcolor|transparent}}}; -moz-border-radius: 16px; -webkit-border-radius: 16px;"
| rowspan="5" style="width: 1%;" | <div style="background-color: {{{bgcolor2|transparent}}}; padding: {{#ifeq: {{{bgcolor2|transparent}}}|transparent|0|16}}px; -moz-border-radius: 80px; display: inline; width: 80px; height: 80px;">{{#ifeq: {{{defaultimg|}}}|yes|[[Image:{{{no|001}}}{{{postfix|}}}.png]]|[[Image:Spr {{{gamecode|4p}}} {{{no|001}}}{{{postfix|}}}.{{{gameext|png}}}]]}}</div>
! [[Image:Ball{{{ball|Poke}}}status.png]] '''{{p|{{User:UltimateSephiroth/No2PKMN|{{{no|001}}}}}|{{#ifeq: {{{nickname|}}}||{{uc:{{User:UltimateSephiroth/No2PKMN|{{{no|001}}}}}}}|{{{nickname|}}}}}}}''' <span style="font-size: 80%;">Lv. {{{level|1}}}</span> {{{gender|}}}
| {{bigic|{{{type1|Normal}}}}}{{#ifeq: {{{type2|}}}|||{{bigic|{{{type2}}}}}}}
| HP/EXP
| colspan="3" style="width: 100%;" | <div style="width: 100%; border: 1px black solid; border-bottom: 0px black none; -moz-border-radius-topleft: 6px; -moz-border-radius-topright: 6px; height: 8px;"><div style="width: {{#expr: ceil({{{hp|{{{hpmax|10}}}}}}/{{{hpmax|10}}}*100)}}%; background-color: #{{#if: {{{hp|{{{hpmax|10}}}}}}/{{{hpmax|10}}} > 0.5|007f00|{{#if: {{{hp|{{{hpmax|10}}}}}}/{{{hpmax|10}}} > 0.1|ffff00|ff0000}}}}; -moz-border-radius-topleft: 6px; -moz-border-radius-topright: 6px; height: 8px;"></div></div>
<div style="width: 100%; border: 1px black solid; -moz-border-radius-bottomleft: 6px; -moz-border-radius-bottomright: 6px; border-top: 0px black none; height: 4px;"><div style="width: {{#ifeq: {{{level|1}}}|100|100| {{#expr: ceil(({{{exp|0}}} - {{#ifeq: {{{level|1}}}|1|0|{{#ifeq: {{{expscheme|1M}}}|1M|{{#expr: {{{level}}}^3}}|{{#ifeq: {{{expscheme}}}|800k|{{#expr: floor((4*{{{level}}}^3)/5)}}|{{#ifeq: {{{expscheme}}}|1.05M|{{#expr: floor((6*{{{level}}}^3)/5 - 15*({{{level}}}^2) + 100*{{{level}}} - 140)}}|{{#ifeq: {{{expscheme}}}|1.25M|{{#expr: floor((5*{{{level}}}^3)/4)}}|{{#ifeq: {{{expscheme}}}|1.64M|{{#if: {{{level}}} < 1516|{{#expr: floor(({{{level}}}^3)*((24 + floor(({{{level}}} + 1)/3))/50))}}|{{#if: {{{level}}} < 3536|{{#expr: floor(({{{level}}}^3)*((14 + {{{level}}})/50))}}|{{#expr: floor(({{{level}}}^3)*((32 + floor({{{level}}}/2))/50))}}}}}}|{{#ifeq: {{{expsheme}}}|600k|{{#if: {{{level}}} < 51|{{#expr: floor({{{level}}}^3 * ((100 - {{{level}}})/50))}}|{{#if: {{{level}}} < 69|{{#expr: floor({{{level}}}^3 * ((150 - {{{level}}})/100))}}|{{#if: {{{level}}} > 98|{{#expr: floor({{{level}}}^3 * ((160 - {{{level}}})/100))}}|{{#ifeq: {{#expr: {{{level}}} mod 3}}|0|{{#expr: floor({{{level}}}^3 * (1.274 - (1/50)*floor({{{level}}} / 3)))}}|{{#ifeq: {{#expr: {{{level}}} mod 3}}|1|{{#expr: floor({{{level}}}^3 * (1.274 - (1/50)*floor({{{level}}} / 3) - 0.008))}}|{{#expr: floor({{{level}}}^3 * (1.274 - (1/50)*floor({{{level}}} / 3) - 0.014))}}}}}}}}}}}}|{{#expr: {{{level}}}^3}}}}}}}}}}}}}}}})/({{#ifeq: {{{expscheme|1M}}}|1M|{{#expr: ({{{level|1}}} + 1)^3}}|{{#ifeq: {{{expscheme}}}|800k|{{#expr: floor((4*({{{level|1}}} + 1)^3)/5)}}|{{#ifeq: {{{expscheme}}}|1.05M|{{#expr: floor((6*({{{level|1}}} + 1)^3)/5 - 15*(({{{level|1}}} + 1)^2) + 100*({{{level}}} + 1) - 140)}}|{{#ifeq: {{{expscheme}}}|1.25M|{{#expr: floor((5*({{{level|1}}} + 1)^3)/4)}}|{{#ifeq: {{{expscheme}}}|1.64M|{{#if: ({{#expr: {{{level|1}}} + 1)}} < 1516|{{#expr: floor((({{{level|1}}} + 1)^3)*((24 + floor(({{{level|1}}} + 2)/3))/50))}}|{{#if: ({{#expr: {{{level}}} + 1)}} < 3536|{{#expr: floor((({{{level}}} + 1)^3)*((14 + ({{{level}}} + 1))/50))}}|{{#expr: floor((({{{level}}} + 1)^3)*((32 + floor(({{{level}}} + 1)/2))/50))}}}}}}|{{#ifeq: {{{expsheme}}}|600k|{{#if: ({{#expr: {{{level|1}}} + 1)}} < 51|{{#expr: floor(({{{level|1}}} + 1)^3 * ((100 - ({{{level|1}}} + 1))/50))}}|{{#if: ({{#expr: {{{level}}} + 1)}} < 69|{{#expr: floor(({{{level}}} + 1)^3 * ((150 - ({{{level}}} + 1))/100))}}|{{#if: ({{#expr: {{{level}}} + 1)}} > 98|{{#expr: floor(({{{level}}} + 1)^3 * ((160 - ({{{level}}} + 1))/100))}}|{{#ifeq: {{#expr: ({{{level}}} + 1) mod 3}}|0|{{#expr: floor(({{{level}}} + 1)^3 * (1.274 - (1/50)*floor(({{{level}}} + 1) / 3)))}}|{{#ifeq: {{#expr: ({{{level}}} + 1) mod 3}}|1|{{#expr: floor(({{{level}}} + 1)^3 * (1.274 - (1/50)*floor(({{{level}}} + 1) / 3) - 0.008))}}|{{#expr: floor(({{{level}}} + 1)^3 * (1.274 - (1/50)*floor(({{{level}}} + 1) / 3) - 0.014))}}}}}}}}}}}}|{{#expr: ({{{level|1}}} + 1)^3}}}}}}}}}}}}}} - {{#ifeq: {{{level|1}}}|1|0|{{#ifeq: {{{expscheme|1M}}}|1M|{{#expr: {{{level}}}^3}}|{{#ifeq: {{{expscheme}}}|800k|{{#expr: floor((4*{{{level}}}^3)/5)}}|{{#ifeq: {{{expscheme}}}|1.05M|{{#expr: floor((6*{{{level}}}^3)/5 - 15*({{{level}}}^2) + 100*{{{level}}} - 140)}}|{{#ifeq: {{{expscheme}}}|1.25M|{{#expr: floor((5*{{{level}}}^3)/4)}}|{{#ifeq: {{{expscheme}}}|1.64M|{{#if: {{{level}}} < 1516|{{#expr: floor(({{{level}}}^3)*((24 + floor(({{{level}}} + 1)/3))/50))}}|{{#if: {{{level}}} < 3536|{{#expr: floor(({{{level}}}^3)*((14 + {{{level}}})/50))}}|{{#expr: floor(({{{level}}}^3)*((32 + floor({{{level}}}/2))/50))}}}}}}|{{#ifeq: {{{expsheme}}}|600k|{{#if: {{{level}}} < 51|{{#expr: floor({{{level}}}^3 * ((100 - {{{level}}})/50))}}|{{#if: {{{level}}} < 69|{{#expr: floor({{{level}}}^3 * ((150 - {{{level}}})/100))}}|{{#if: {{{level}}} > 98|{{#expr: floor({{{level}}}^3 * ((160 - {{{level}}})/100))}}|{{#ifeq: {{#expr: {{{level}}} mod 3}}|0|{{#expr: floor({{{level}}}^3 * (1.274 - (1/50)*floor({{{level}}} / 3)))}}|{{#ifeq: {{#expr: {{{level}}} mod 3}}|1|{{#expr: floor({{{level}}}^3 * (1.274 - (1/50)*floor({{{level}}} / 3) - 0.008))}}|{{#expr: floor({{{level}}}^3 * (1.274 - (1/50)*floor({{{level}}} / 3) - 0.014))}}}}}}}}}}}}|{{#expr: {{{level}}}^3}}}}}}}}}}}}}}}})*100)}}}}%; background-color: #007fff; -moz-border-radius-bottomleft: 6px; -moz-border-radius-bottomright: 6px; height: 4px;"></div></div>{{{hp|{{{hpmax|10}}}}}} / {{{hpmax|10}}}{{#ifeq: {{{showevs|hide}}}|show|<br /><span style="font-size: 90%;">HP EVs: {{{hpev|0}}}</span>}}<br />{{#ifeq: {{{level|1}}}|100|0|{{#expr: {{#ifeq: {{{expscheme|1M}}}|1M|{{#expr: ({{{level|1}}} + 1)^3}}|{{#ifeq: {{{expscheme}}}|800k|{{#expr: floor((4*({{{level|1}}} + 1)^3)/5)}}|{{#ifeq: {{{expscheme}}}|1.05M|{{#expr: floor((6*({{{level|1}}} + 1)^3)/5 - 15*(({{{level|1}}} + 1)^2) + 100*({{{level}}} + 1) - 140)}}|{{#ifeq: {{{expscheme}}}|1.25M|{{#expr: floor((5*({{{level|1}}} + 1)^3)/4)}}|{{#ifeq: {{{expscheme}}}|1.64M|{{#if: ({{#expr: {{{level|1}}} + 1)}} < 1516|{{#expr: floor((({{{level|1}}} + 1)^3)*((24 + floor(({{{level|1}}} + 2)/3))/50))}}|{{#if: ({{#expr: {{{level}}} + 1)}} < 3536|{{#expr: floor((({{{level}}} + 1)^3)*((14 + ({{{level}}} + 1))/50))}}|{{#expr: floor((({{{level}}} + 1)^3)*((32 + floor(({{{level}}} + 1)/2))/50))}}}}}}|{{#ifeq: {{{expsheme}}}|600k|{{#if: ({{#expr: {{{level|1}}} + 1)}} < 51|{{#expr: floor(({{{level|1}}} + 1)^3 * ((100 - ({{{level|1}}} + 1))/50))}}|{{#if: ({{#expr: {{{level}}} + 1)}} < 69|{{#expr: floor(({{{level}}} + 1)^3 * ((150 - ({{{level}}} + 1))/100))}}|{{#if: ({{#expr: {{{level}}} + 1)}} > 98|{{#expr: floor(({{{level}}} + 1)^3 * ((160 - ({{{level}}} + 1))/100))}}|{{#ifeq: {{#expr: ({{{level}}} + 1) mod 3}}|0|{{#expr: floor(({{{level}}} + 1)^3 * (1.274 - (1/50)*floor(({{{level}}} + 1) / 3)))}}|{{#ifeq: {{#expr: ({{{level}}} + 1) mod 3}}|1|{{#expr: floor(({{{level}}} + 1)^3 * (1.274 - (1/50)*floor(({{{level}}} + 1) / 3) - 0.008))}}|{{#expr: floor(({{{level}}} + 1)^3 * (1.274 - (1/50)*floor(({{{level}}} + 1) / 3) - 0.014))}}}}}}}}}}}}|{{#expr: ({{{level|1}}} + 1)^3}}}}}}}}}}}}}} - {{{exp|0}}}}}}} EXP. Points to Lv. {{#ifeq: {{{level|1}}}|100|100|{{#expr: {{{level|1}}}+1}}}}
|-
| Attack || {{{attack|7}}}{{#ifeq: {{{showevs|hide}}}|show|<br /><span style="font-size: 90%;">EVs: {{{attackev|0}}}</span>}} || Defense || {{{defense|7}}}{{#ifeq: {{{showevs|hide}}}|show|<br /><span style="font-size: 90%;">EVs: {{{defenseev|0}}}</span>}}
7,545

edits