Template talk:Stats/GenI: Difference between revisions
mNo edit summary |
|||
(One intermediate revision by one other user not shown) | |||
Line 43: | Line 43: | ||
you could also divide by "(<nowiki>{{{Special|1}}}</nowiki> + 0.5)" if you're afraid of dividing by 0, but it works fine on my screen. Or this template could just always use 1px for all the borders which would be even simpler.--'''[[User:Team Rocket Grunt|<span style="color:#CC0000">Rocket</span>]] [[User talk:Team Rocket Grunt|<span style="color:#666666">Grunt</span>]]''' 15:21, 23 October 2022 (UTC) | you could also divide by "(<nowiki>{{{Special|1}}}</nowiki> + 0.5)" if you're afraid of dividing by 0, but it works fine on my screen. Or this template could just always use 1px for all the borders which would be even simpler.--'''[[User:Team Rocket Grunt|<span style="color:#CC0000">Rocket</span>]] [[User talk:Team Rocket Grunt|<span style="color:#666666">Grunt</span>]]''' 15:21, 23 October 2022 (UTC) | ||
:I decided to change the calculations which were causing this if parser functions which should make the code easier to understand as well.--[[User:MisterE13|<span style="color:#0000FF">Mister</span>]][[User talk:MisterE13|<span style="color:#008000">'''E'''</span>]][[Special:Contributions/MisterE13|<span style="color:#800080">13</span>]] 02:08, 26 October 2022 (UTC) | :I decided to change the calculations which were causing this if parser functions which should make the code easier to understand as well.--[[User:MisterE13|<span style="color:#0000FF">Mister</span>]][[User talk:MisterE13|<span style="color:#008000">'''E'''</span>]][[Special:Contributions/MisterE13|<span style="color:#800080">13</span>]] 02:08, 26 October 2022 (UTC) | ||
==Order== | |||
The Special and Speed stats are in the wrong order, can someone fix this? [[User:Julking|Julking]] ([[User talk:Julking|talk]]) 13:12, 17 April 2024 (UTC) | |||
:It's ordered in the order that the stats are displayed in generation one (and also internally in game code). actually this internal order is kept in later generations but usually when its displayed to the player Speed gets put in the end. Generation 1 games however display stats in the proper internal order. '''[[User:4iamking|<span style="font-family:noteworthy;color:#FF1493">4iam</span><span style="font-family:papyrus;color:#8A2BE2">king</span>]]''' 13:29, 17 April 2024 (UTC) |
Latest revision as of 13:29, 17 April 2024
Usage
{{BaseStats/GenI|
HP= |
Attack= |
Defense= |
Special= |
Speed= }}
Output
Stat | Range | ||
---|---|---|---|
At Lv. 50 | At Lv. 100 | ||
HP: 65
|
125 - 171 | 240 - 333 | |
125
|
130 - 176 | 255 - 348 | |
100
|
105 - 151 | 205 - 298 | |
85
|
90 - 136 | 175 - 268 | |
55
|
60 - 106 | 115 - 208 | |
Total: 430
|
(485 on other generations' scale) | ||
|
Formulas are wrong
Read here Stat#In_Generations_I_and_II. Also, in Generation I and II, EVs are out of 65535.
The correct formulas are:
- unsigned comment from SnorlaxMonster (talk • contribs)
The 252 needs to be changed, though - to 63504. Ztobor 18:56, 31 July 2010 (UTC)
Fixing an error
There's an error in this template. When the stat is less than 9 the border for the statbar disappears. This could be easily fixed by replacing the "999" with "{{{Special|1}}}" so it always divides by itself giving the border width of 1px for all values except for 0 where it would be 0px:
- border: calc({{{Special|1}}}px/{{{Special|1}}}) solid #638B83<!--{{Special color dark}}-->;
you could also divide by "({{{Special|1}}} + 0.5)" if you're afraid of dividing by 0, but it works fine on my screen. Or this template could just always use 1px for all the borders which would be even simpler.--Rocket Grunt 15:21, 23 October 2022 (UTC)
- I decided to change the calculations which were causing this if parser functions which should make the code easier to understand as well.--MisterE13 02:08, 26 October 2022 (UTC)
Order
The Special and Speed stats are in the wrong order, can someone fix this? Julking (talk) 13:12, 17 April 2024 (UTC)
- It's ordered in the order that the stats are displayed in generation one (and also internally in game code). actually this internal order is kept in later generations but usually when its displayed to the player Speed gets put in the end. Generation 1 games however display stats in the proper internal order. 4iamking 13:29, 17 April 2024 (UTC)