Experience: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
m (mechanics)
 
(11 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{As Of Patch|2.0.200.82}}
{{tocright}}
'''Experience''' or '''XP''' is awarded whenever a creature kills another with in a similar level range, among other sources. With enough experience, the creature will level up, giving them attributes and mutation points depending on the multiple of the level.
'''Experience''' or '''XP''' is awarded primarily when a player or creature kills another creature that is of a similar level or higher. XP drops off exponentially for killing creatures at lower levels. Creatures more than two level tiers below the attacker grant 0 experience. Experience can also be gained through non-violent means; refer to the '''''Other Sources of Experience''''' section below for more details.


== Battle Experience Formula ==
When the player or another creature gains enough experience, they will level up, granting them the associated increases to attribute points, skill points, or mutation points depending on level.
Each creature has a specified experience amount. However, this amount changes depending on both the level of the creature killed and the creature killer. XP is only granted to the creature who landed the final blow as well as their followers.


Where Creature A is the one who is gaining the exp and Creature B is the one who was killed:
= Battle Experience Formula =
<math alt="Tier Difference equals the floor of A's level divided by 5 minus the floor of B's Level divided by 5">\text{Tier Difference} = \lfloor \frac{\text{A's Level}}{5}\rfloor - \lfloor\frac{\text{B's Level}}{5}\rfloor</math>
Each creature has a unique base '''XP Value''' which is used to grant XP when the player or another creature kills it. This base value is modified depending on how the attacker's level compares to the target's level. XP is only granted to the creature who landed the final blow, as well that creature's followers and/or party leader. If the attacker is a [[domination|dominated]] creature, the dominator will not gain experience unless the dominated creature is also a follower.
 
The following values are involved in the XP calculation:
* '''XP Value:''' The target creature's base XP amount. You can find this value in the infobox on each creature's wiki page.
* '''Tier Difference:''' The attacker's tier minus the victim's tier.
** ''Victim Tier:'' Tier is calculated from level. It equals '''Floor(Level / 5)'''. So, for example, levels 1-4 are Tier 0, levels 5-9 are Tier 1, and so on. You can find a creature's level listed in the infobox on its wiki page.
** ''Attacker Tier:'' Tier is calculated from level the same way as described above.
 
The XP granted for a creature kill will be determined by taking the '''XP Value''' times the multiplier listed below (dependent on '''Tier Difference''').
{| class="wikitable
{| class="wikitable
! Tier Difference
! Tier Difference
! Multiplier
! XP Granted
|-
|-
| 0 or lower
| 0 or lower
| 1
| 100% (1x)
|-
|-
| 1
| 1
| 0.5
| 50% (0.5x)
|-
|-
| 2
| 2
| 0.2
| 10% (0.1x)
|-
|-
| 3 or greater
| 3 or greater
| 0
| 0% (No XP)
|}
|}
After determining the multiplier, the final XP rewarded is calculated with the below formula:
<math alt="Base XP times Multiplier to the power of Tier Difference">\text{XP Rewarded} = \text{BaseXP} * \text{Multiplier}^{\text{Tier Difference} }</math>


=== Example ===
== Example ==
As an example, if an [[Addling urchin]] (level 21, base xp 525) is killed, this is how experience would be rewarded:
[[Image:Addling_urchin_xp_wiki_example.png|frame|left|View detailed XP on the [[addling urchin]]'s wiki page]]
As an example, if an {{favilink|addling urchin}} (level 21, base xp 525) is killed, this is how experience would be rewarded:
{| class="wikitable"
{| class="wikitable"
! Level
! Attacker Level
! XP gained
! XP Gained
|-
|-
|1-24
|1-24
Line 45: Line 51:
|}
|}


== Other Sources of Experience ==
{{clear}}
{{Missing info|How much xp do villages or lairs give?}}
= List of Creature XP Values=
For a full list of creature XP Values, you can refer to [[creatures by experience value]].
 
= Other Sources of Experience =
* Turning in secrets about [[Resheph]] to {{favilink|Tszappur}}
* Turning in secrets about [[Resheph]] to {{favilink|Tszappur}}
* Turning in [[Book]]s to [[Sheba Hagadias, Librarian of the Stilt]]
* Turning in [[Book]]s to [[Sheba Hagadias, Librarian of the Stilt]]
* Discovering procedurally generated villages or lairs
* Discovering procedurally generated villages or lairs
* Completing quest steps and quests
* Completing quest steps and quests
{{Missing info|How much xp do villages or lairs give?}}
=Leveling Up=
The total experience required to reach level <code>x</code> is <code>15x<sup>3</sup> + 100</code>.{{Code Reference|class=Leveler|method=GetXPForLevel}}


== Levelling Up==
When levelling up, a creature gains:
When levelling up, a creature gains possible things:
* An attribute bonus every 3 levels. The exact attribute boost alternates. At level <code>3*n</code>, the boost is:
* 1 attribute point every 3 levels
** If <code>n</code> is odd (levels 3, 9, 15, ...), gain 1 attribute point
* all attributes increase by 1 every 6 instead
** If <code>n</code> is even (levels 6, 12, 18, ...), all attributes increase by 1 instead
* 1 mutation point every level if they are not [[True Kin]]
* 1 mutation point every level if they are not [[True Kin]]
* +[[Toughness]] HP
* +[[Toughness]] HP
* 70 (if True Kin) or 50 (if Mutant) + Current Level * (Int-10) Skill Points
* 70 (if True Kin) or 50 (if Mutant) + 4 * (Int-10) Skill Points
* If the creature has [[Carbide Chef]], a chance to become [[Inspired]]
* If the creature has [[Carbide Chef]], a 100% chance to become [[Inspired]]
* A chance to name an equipped item
* A chance to name an equipped item
{{Missing info|How is the experience needed for each level calculated?}}


{{References|2.0.201.48}}
{{Mechanics Navbox}}
{{Mechanics Navbox}}
[[Category:Mechanics]]
[[Category:Mechanics]]

Latest revision as of 20:21, 18 July 2023

Experience or XP is awarded primarily when a player or creature kills another creature that is of a similar level or higher. XP drops off exponentially for killing creatures at lower levels. Creatures more than two level tiers below the attacker grant 0 experience. Experience can also be gained through non-violent means; refer to the Other Sources of Experience section below for more details.

When the player or another creature gains enough experience, they will level up, granting them the associated increases to attribute points, skill points, or mutation points depending on level.

Battle Experience Formula

Each creature has a unique base XP Value which is used to grant XP when the player or another creature kills it. This base value is modified depending on how the attacker's level compares to the target's level. XP is only granted to the creature who landed the final blow, as well that creature's followers and/or party leader. If the attacker is a dominated creature, the dominator will not gain experience unless the dominated creature is also a follower.

The following values are involved in the XP calculation:

  • XP Value: The target creature's base XP amount. You can find this value in the infobox on each creature's wiki page.
  • Tier Difference: The attacker's tier minus the victim's tier.
    • Victim Tier: Tier is calculated from level. It equals Floor(Level / 5). So, for example, levels 1-4 are Tier 0, levels 5-9 are Tier 1, and so on. You can find a creature's level listed in the infobox on its wiki page.
    • Attacker Tier: Tier is calculated from level the same way as described above.

The XP granted for a creature kill will be determined by taking the XP Value times the multiplier listed below (dependent on Tier Difference).

Tier Difference XP Granted
0 or lower 100% (1x)
1 50% (0.5x)
2 10% (0.1x)
3 or greater 0% (No XP)

Example

View detailed XP on the addling urchin's wiki page

As an example, if an addling urchin (level 21, base xp 525) is killed, this is how experience would be rewarded:

Attacker Level XP Gained
1-24 525
25-29 262
30-34 52
35+ 0

List of Creature XP Values

For a full list of creature XP Values, you can refer to creatures by experience value.

Other Sources of Experience

This article has information that is missing or not up to par.
Reason: How much xp do villages or lairs give?

Leveling Up

The total experience required to reach level x is 15x3 + 100.[1]

When levelling up, a creature gains:

  • An attribute bonus every 3 levels. The exact attribute boost alternates. At level 3*n, the boost is:
    • If n is odd (levels 3, 9, 15, ...), gain 1 attribute point
    • If n is even (levels 6, 12, 18, ...), all attributes increase by 1 instead
  • 1 mutation point every level if they are not True Kin
  • +Toughness HP
  • 70 (if True Kin) or 50 (if Mutant) + 4 * (Int-10) Skill Points
  • If the creature has Carbide Chef, a 100% chance to become Inspired
  • A chance to name an equipped item

References

This information is reliable as of patch 2.0.201.48.
  1. XRL.World.Parts.Leveler, method GetXPForLevel