Difference between revisions of "Experience"

From Cassette Beasts
(Created page with battle exp yield formulas)
 
(→‎Battles: Added missing floors, variable descriptions, and example)
Line 4: Line 4:
 
=== Battles ===
 
=== Battles ===
 
{{IncompleteSection}}
 
{{IncompleteSection}}
When winning a battle, an amount of experience points in earned based on the experience yield of each of the defeated monsters and their levels. Each monster species has a specific experience yield value which influences how much experience points they grant when defeated (for example [[Traffikrab]] has an exp yield of 40).
+
When winning a battle, an amount of experience points in earned based on the level, monster form experience yield, and character experience yield of each defeated enemy.
  
The formula for how many experience points a given enemy yields when defeated is determined by the following formulas:
+
How many experience points a given enemy yields when defeated is determined by the following formulas:
  
 
<math>Experience = \begin{cases}
 
<math>Experience = \begin{cases}
 
f(Level, FormExpYield, CharExpYield), & : \text{If level} >= \text{threshold} \\
 
f(Level, FormExpYield, CharExpYield), & : \text{If level} >= \text{threshold} \\
f(Level, FormExpYield, CharExpYield) + \frac{f(20, FormExpYield, CharExpYield) - f(Level, FormExpYield, CharExpYield)}{3}, & : \text{otherwise}
+
f(Level, FormExpYield, CharExpYield) + floor\left(\frac{f(20, FormExpYield, CharExpYield) - f(Level, FormExpYield, CharExpYield)}{3}\right), & : \text{otherwise}
 
\end{cases}</math>
 
\end{cases}</math>
  
<math>f(level, form, character) = \frac{(form + character) * \left(\frac{(75 + level) * level}{96} + 1\right) * 2}{35}</math>
+
<math>f(level, form, character) = floor\left(\frac{(form + character) * \left(floor\left(\frac{(75 + level) * level}{96}\right) + 1\right) * 2}{35}\right)</math>
 +
<!---
 +
Test case
 +
 
 +
Pawndead lv 39
 +
Pawndead lv 39
 +
 
 +
644 exp
 +
 
 +
Order to Cal: FIGHT 'Damage Roll' Targets: [Enemy Pawndead #1]
 +
Order to Kayleigh: FIGHT 'Damage Roll' Targets: [Enemy Pawndead #1]
 +
Order to Enemy Pawndead #1: FIGHT 'Smack' Targets: [Cal]
 +
Order to Enemy Pawndead #2: FIGHT 'Smack' Targets: [Cal]
 +
Executing order: Order to Cal: FIGHT 'Damage Roll' Targets: [Enemy Pawndead #1]
 +
Seed: 1884567917
 +
Pawndead took 147 HP of damage!
 +
[ERROR] get_exp_yield {
 +
[ERROR] c = @@3016:[Node:102085]
 +
[ERROR]  active_form.exp_yield = 40
 +
[ERROR]  character_exp_yield = 80
 +
[ERROR]  result = 322
 +
[ERROR] result = 322
 +
[ERROR] get_exp_yield }
 +
Pawndead died
 +
Executing order: Order to Kayleigh: FIGHT 'Damage Roll' Targets: [Enemy Pawndead #1]
 +
Seed: 1612223405
 +
Pawndead took 147 HP of damage!
 +
[ERROR] get_exp_yield {
 +
[ERROR] c = @@3018:[Node:102115]
 +
[ERROR]  active_form.exp_yield = 40
 +
[ERROR]  character_exp_yield = 80
 +
[ERROR]  result = 322
 +
[ERROR] result = 322
 +
[ERROR] get_exp_yield }
 +
 
 +
>>> def get_exp_yield_inner(level:int, form_exp_yield:int, character_exp_yield:int)->int:
 +
...    elvl = (75 + level) * level // 96 + 1
 +
...    return (form_exp_yield + character_exp_yield) * elvl * 2 // 35
 +
...
 +
>>> get_exp_yield_inner(39, 40, 80)
 +
322
 +
 
 +
-->
 +
 
 +
* <math>Level</math>: Level of the defeated enemy.
 +
* <math>FormExpYield</math>: Experience yield of the monster species defeated (typically 40).
 +
* <math>CharExpYield</math>: Experience yield of the defeated character (80 for wild monster battles).
 +
 
 +
For example, [[Pawndead]] has a <math>FormExpYield</math> of 40. So defeating two wild Pawndead that are both at level 39 will yield <math>f(39, 40, 80)</math> = 322 experience points each, for a total of 644 experience points.
  
 
=== Quests ===
 
=== Quests ===

Revision as of 04:59, 24 August 2023

Experience is something that characters and monsters gain upon winning a battle or completing a quest. Gaining enough experience points can cause characters to increase in level, partners to increase in relationship level, and monsters to increase in grade.

Experience Sources

Battles

This section is incomplete. Feel free to add the missing information by editing it.

When winning a battle, an amount of experience points in earned based on the level, monster form experience yield, and character experience yield of each defeated enemy.

How many experience points a given enemy yields when defeated is determined by the following formulas:

  • : Level of the defeated enemy.
  • : Experience yield of the monster species defeated (typically 40).
  • : Experience yield of the defeated character (80 for wild monster battles).

For example, Pawndead has a of 40. So defeating two wild Pawndead that are both at level 39 will yield = 322 experience points each, for a total of 644 experience points.

Quests

This section is incomplete. Feel free to add the missing information by editing it.

Character Levels

This section is incomplete. Feel free to add the missing information by editing it.

Monster Grades

This section is incomplete. Feel free to add the missing information by editing it.


Mechanics
Battle StatsDamageStat StagesHit chanceCritical hits
TypesStatus EffectsFusionExperience
RecordingFleeingSlotsSticker Attributes
Other AbilitiesBootlegsRelationships