Description

Fixed elements to the event. Assigns the value to the elements property

Usage

Parameters

  • elements {Array}

    Array with an array of two elements: [ID element, Percent affectation]

    Percent affectation :

    • 200
    • 100
    • 50
    • 0
    • -100

Example

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

Element #4 = 100% Element #3 = 50%

Discussion