Skip to main content

SkillChange

Callable

  • SkillChange(C: Character, SkillType: SkillType, SkillLevel: number, Progress: number, Push?: boolean): void

  • When the player progresses in a skill. Also validates the values to make sure they are within the proper ranges once changed. (level 0-10, progress 0-100)


    Parameters

    • C: Character

      The character to get skills from.

    • SkillType: SkillType

      Name of the skill to set the value for

    • SkillLevel: number

      Level to set for the given skill

    • Progress: number

      Progress to set for the given skill

    • optionalPush: boolean

      Pushes the skills to the server if TRUE

    Returns void

    • Nothing