Description

Fixed states to the event. Assigns the value to the defstates property

Usage

Parameters

  • states {Array}

    Array with an array of two states: [ID state, Percent affectation]

    Percent affectation :

    • 200
    • 100
    • 50
    • 0
    • -100

Example

global.game_player.setDefStates([[4, 100], [3, 50]]);

State #4 = 100% State #3 = 50%

Discussion