Skip to content

EF_PARAMETER_INC Effect

The EF_PARAMETER_INC effect is used to enhance various character parameters in the game. It can be applied to base statistics (such as Strength, Vitality, etc.) and secondary statistics (such as Magic Attack, Physical Attack, Attack Speed, Defense, HP, MP, etc.).

Code Implementation

case StructState::EF_PARAMETER_INC:
incParameter(state.GetValue(0), state.GetValue(1), state.GetValue(2) * state.GetLevel());
incParameter(state.GetValue(3), state.GetValue(4), state.GetValue(5) * state.GetLevel());
incParameter2(state.GetValue(6), state.GetValue(7), state.GetValue(8) * state.GetLevel());
incParameter2(state.GetValue(9), state.GetValue(10), state.GetValue(11) * state.GetLevel());
incParameter(state.GetValue(12), state.GetValue(13), state.GetValue(14) * state.GetLevel());
incParameter(state.GetValue(15), state.GetValue(16), state.GetValue(17) * state.GetLevel());

Function Details

incParameter

This function increases base statistics such as Strength (STR), Vitality (VIT), Intelligence (INT), up to Luck (LUCK).

  • Arguments:
    • STAT_CODE - The code identifying the statistic to increase.
    • base value - The initial value of the statistic.
    • additional value - The amount added to the base value for each state level. (Base value + additional value * stateLevel)

Example:

Var0 = 1 // Code for Strength
Var1 = 50 // Base Strength value
Var2 = 5 // Additional Strength per level
State_Level = 3
//Buff give you +65 STR (50 + 5 * 3)

incParameter2

This function increases secondary statistics such as Magic Attack, Physical Attack, Attack Speed, Defense, HP, MP, etc.

  • Arguments:
    • STAT_CODE - The code identifying the secondary statistic to increase.
    • base value - The initial value of the secondary statistic.
    • additional value - The amount added to the base value for each state level. (Base value + additional value * stateLevel)

Example:

Var6 = 128 // Code for P.Atk
Var7 = 500 // Base P.Atk value
Var8 = 100 // Additional P.Atk per level
State_Level = 6
//Buff give you +1100 P.Atk (500 + 100 * 6)

Summary

//TODO: ADD DATABASE INFOS.