-
Notifications
You must be signed in to change notification settings - Fork 0
SkillExperience API
hp-1e edited this page Jun 7, 2026
·
2 revisions
查询玩家在指定技能分类中的总经验、等级和到下一级的进度。
Queries a player's total experience, level, and progress to the next level in a skill category.
const totalExp = SkillExperience.getTotalExperience(player, "puffish_skills:combat")
const level = SkillExperience.getLevel(player, "puffish_skills:combat")
const progress = SkillExperience.getProgressToNextLevel(player, "puffish_skills:combat")通过脚本增加或设置玩家在指定技能分类中的经验值。
Adds or sets a player's experience in a skill category from script.
SkillExperience.addExperience(player, "puffish_skills:combat", 100)
SkillExperience.setExperience(player, "puffish_skills:combat", 500)这些 API 会和 Pufferfish's Skills 的经验系统联动,用于脚本奖励、任务奖励或自定义进度系统。
These APIs integrate with the Pufferfish's Skills experience system and can be used for scripted rewards, quest rewards, or custom progression systems.