Skip to main content

Character Class

This class retrieves character data and weight data.

Constructors

constructor

new Character(options?): Character

Params

  • Optional option: <ClientOptions> Character option

Properties

  • lang: string
    default: en
    | cht | cn | de | en | es | fr | id | jp | kr | pt | ru | th | vi |
getCharBase

getCharBase

getCharBase(characterName or Id)

Params

  • characterName: string
    Character Name

  • characterId: number
    Character ID

Return: any

getCharWeight

getCharWeight

getCharWeight(characterName, num?)

Params

  • characterName: string
    Character Name

  • Optional num: number
    Weight data number.
    default: 0

Return: any

setCharWeight

setCharWeight

setCharWeight(characterName, weightData)

Params

  • characterName: string
    Character Name

  • weightData: charDataBase
    Character wight data

Properties

const weightData = {
name: "OriginalData",
main: {
1: {
HPDelta: 1,
},
2: {
AttackDelta: 1,
},
3: {
HPAddedRatio: 0.1,
AttackAddedRatio: 0.1,
DefenceAddedRatio: 1,
CriticalChanceBase: 0.1,
CriticalDamageBase: 0.1,
HealRatioBase: 0,
StatusProbabilityBase: 0.1,
},
4: {
HPAddedRatio: 0.1,
AttackAddedRatio: 0.1,
DefenceAddedRatio: 1,
SpeedDelta: 1,
},
5: {
HPAddedRatio: 0.1,
AttackAddedRatio: 0.1,
DefenceAddedRatio: 1,
PhysicalAddedRatio: 0,
FireAddedRatio: 0,
IceAddedRatio: 0.1,
ThunderAddedRatio: 0,
WindAddedRatio: 0,
QuantumAddedRatio: 0,
ImaginaryAddedRatio: 0,
},
6: {
BreakDamageAddedRatioBase: 0.1,
SPRatioBase: 0.8,
HPAddedRatio: 0.1,
AttackAddedRatio: 0.1,
DefenceAddedRatio: 1,
},
},
weight: {
HPDelta: 0,
AttackDelta: 0,
DefenceDelta: 0.3,
HPAddedRatio: 0.1,
AttackAddedRatio: 0.1,
DefenceAddedRatio: 1,
SpeedDelta: 1,
CriticalChanceBase: 0.1,
CriticalDamageBase: 0.1,
StatusProbabilityBase: 0.8,
StatusResistanceBase: 0.8,
BreakDamageAddedRatioBase: 0.1,
},
};

There is base weighting data. You can assign a name to each dataset, which makes it searchable later.

Retune: message: <string>