Description

Initializes a point type

Usage

Parameters

  • type {String}

    Point type

  • current {Integer}

    initial value

  • min {Integer}

    minimum value

  • max {Integer|String}

    maximum value

  • callbacks {Object} optional

    (optional) Various callbacks :

    • onMin : Call function when the minimum is reached
    • onMax : Call function when the maximum is reached

Example

global.game_player.initParamPoints("attack_pt", 10, 0, 100);

Example :

global.game_player.setParam("attack", [0, 100, 150]); // Param by level
global.game_player.initParamPoints("attack_pt", 10, 0, "attack");

Discussion