📖
genshin_panel_doc
  • Introduction
  • Install
  • Character
    • Create a Character
    • Supported Character
    • Character Args
  • Weapon
    • Create a Weapon
    • Supported Weapon
  • Artifact
    • Create Artifact
    • Artifact Set Names
    • Artifact Position(Slot) Names
    • Artifact Tag(Stat) Names
  • Attribute
    • Build Attribute
    • Attribute Properties
  • Other
    • Custom Weapon
    • Custom Artifact Effect Rate
Powered by GitBook
On this page
  • API
  • name
  • level
  • ascend
  • constellation
  • args
  • Examples

Was this helpful?

  1. Character

Create a Character

PreviousCharacterNextSupported Character

Last updated 3 years ago

Was this helpful?

API

constructor(name: string, level: number, ascend: boolean, constellation: number, args: any)

name

All supported names are available

level

An integer from 0 to 90

ascend

Whether the level is ascended, this only makes sense when the level is 20/40/50/60/70/80

constellation

The constellation of the character

args

Character specific args, you can find all args

Examples

const app = require("genshin_panel");

let keqing = new app.Character("keqing", 90, false, 0);
let hutao = new app.Character("胡桃", 80, true, 2, { hpBelow50: true });

here
here