FANDOM


 
{v}{d}{e}

experience gain from enemy

player level EXP
enemy 1
1 10
2 20
3 30
4 40
5 50
6 60
7 70
8 80
9 90
10 100
11 90
12 80
13 70
14 60
15 50
16 40
17 30
18 20
19 10
20+ 1

About

This template create a list of levels and experience values, which the player will get from killing a certain enemy. There is an algorithm that calculates the amount of experience you will get from killing an enemy, and this value is adjusted based on the level of the player. The amount of experience depends on:

  • The peak experience of the the enemy (parameter: peak exp n)
  • The player level at which you can get the peak experience (parameter: peak lvl n)
  • Your current player level (this is displayed in the first column of the table generated by this template)

This template includes the formula how this experience is calculated. It is to be used on each article about an enemy or about a stage. It creates a table floating to the right, which displays the experience gain for a specified range of player levels. You can choose between one and six enemies of which you want to display the experience values, and you specify the number by the parameter n. The range of player levels, for which the table is generated, can also be specified (parameters from and to).

Usage

{{SR enemy experience|n=<n>|from=<LVL_FROM>|to=<LVL_TO>
|peak lvl 1=<PEAK_LVL_1>|peak exp 1=<PEAK_EXP_1>|img 1=<IMG_1>|link 1=<LINK_1>|blue 1=<BLUE_1>
|peak lvl 2=<PEAK_LVL_2>|peak exp 2=<PEAK_EXP_2>|img 2=<IMG_2>|link 2=<LINK_2>|blue 2=<BLUE_2>
|peak lvl 3=<PEAK_LVL_3>|peak exp 3=<PEAK_EXP_3>|img 3=<IMG_3>|link 3=<LINK_3>|blue 3=<BLUE_3>
|peak lvl 4=<PEAK_LVL_4>|peak exp 4=<PEAK_EXP_4>|img 4=<IMG_4>|link 4=<LINK_4>|blue 4=<BLUE_4>
|peak lvl 5=<PEAK_LVL_5>|peak exp 5=<PEAK_EXP_5>|img 5=<IMG_5>|link 5=<LINK_5>|blue 5=<BLUE_5>
|peak lvl 6=<PEAK_LVL_6>|peak exp 6=<PEAK_EXP_6>|img 6=<IMG_6>|link 6=<LINK_6>|blue 6=<BLUE_6>
}}

The parameters are:

  • <n>: The number of enemies which you want to display in the table. n can be a number from 1 to 6. If you omit this parameter n = 1 is used.
  • <LVL_FROM>: The first player level which should be displayed in the table. If you omit this parameter the default is level 1.
  • <LVL_TO>: The last player level which should be displayed in the table. If you omit this parameter the default is level 20.
  • <PEAK_LVL_n>: The player level at which you can get the most experience from the n-th enemy which is displayed in the n-th enemy column. n can be a number from 1 to 6. If you omit this parameter the default is a peak level of 10.
  • <PEAK_EXP_n>: The peak experience which you can get from this enemy. n can be a number from 1 to 6. If you omit this parameter the default is 100 EXP.
  • <IMG_n>: The image representing the n-th enemy. n can be a number from 1 to 6. If you omit this parameter but <LINK_n> is given, the text of the link name is displayed. If you omit both <IMG_n> and <LINK_n> the text "enemy n" is displayed instead.
  • <LINK_n>: The link to the article of the n-th enemy. n can be a number from 1 to 6. If you omit this parameter, but <IMG_n> is given, a link to the image file is used instead.
  • <BLUE_n>: Decides wheter the background for the n-th enemy has the color of water instead of black. Any non-empty value (for example "1") will turn the background blue. n can be a number from 1 to 6. If you omit this parameter, the black background is used.

Note:

  • The template can only show 30 player levels at once, so make sure the following formula is true: <LVL_TO> - <LVL_FROM> < 30
  • The template displays automatically a plus and minus sign in the first (unless <LVL_FROM> is 1) and last row of the player level to indicate that all previous and following EXP values are the same. Therefore you should make sure that the first and last row contains only the value "1 EXP" for every enemy by setting the from and to parameters accordingly.

Examples

Here is an example for simple usage, with only one enemy (peak at level 3 with 100 EXP), and player levels from 1 to 15:

{{SR enemy experience|to=15|peak lvl 1=3|peak exp 1=100}}

Another example with 3 fictive enemies and player levels from 3 to 26:

{{SR enemy experience|n=3|from=3|to=26|peak lvl 1=13|peak exp 1=100|peak lvl 2=15|peak exp 2=500|peak lvl 3=16|peak exp 3=200}}

This is the table for Grassland 3 including linked images:

{{SR enemy experience|n=5|from=1|to=24
|peak lvl 1=10|peak exp 1=150|img 1=Green Smiley Snake.png|link 1=Green Smiley Snake
|peak lvl 2=10|peak exp 2=150|img 2=Green Skull Dragon.png|link 2=Green Skull Dragon
|peak lvl 3=11|peak exp 3=150|img 3=Green Skull Bat.png|link 3=Green Skull Bat
|peak lvl 4=12|peak exp 4=150|img 4=Red Skull Dragon.png|link 4=Red Skull Dragon
|peak lvl 5=14|peak exp 5=1000|img 5=Orange Boss Skull Dragon.png|link 5=Orange Boss Skull Dragon}}

About the template code design

Structure

  • This page creates the header of the table, with the enemy images. Then it uses a #switch depending on the parameter <n> and calls the right /columns 4|/columns <n>.
  • /columns 4|/columns <n> calls /rows 4|/rows <n> with precomputed columns. In these precomputed columns the rows separated by $. The columns are computed by:
    • /level computes the player level column.
    • /class computes the css class number.
    • /enemy 100|/enemy <PEAK_EXP> computes the EXP value column. There is one templates for each peak value.
  • /rows 4|/rows <n> calls /explode row 4|/explode row <n> once for each row. Up to 30 rows are allowed.
  • /explode row 4|/explode row <n> picks the row-specific value from the column and calls /display row 4|/display row <n>.
  • /display row 4|/display row <n> inserts the row-specific values into wikicode.

Note: For the links in the explanation <n> = 4 and <PEAK_EXP> = 100 was used.

List of template subpages

Community content is available under CC-BY-SA unless otherwise noted.