Give augment slots via scrip call

Discussion in 'Javascript/Plugin Support' started by gambitben, Aug 3, 2018.

  1. gambitben

    gambitben Veteran Veteran

    Messages:
    124
    Likes Received:
    87
    First Language:
    Spanish English
    Primarily Uses:
    RMMV
    Hi!

    I want to create an armor that starts with three slots and later on goes up to five. I know that we can add an augment to an equipment by using a script call (ItemManager.applyAugmentEffects($gameActors.actor(1).equips()[0], $dataItems[1], 0, false);), so maybe a different one can add slots? I found these lines that reference addAugementSlots, but I don't know how to call them.
    Can someone keener at this lend me a hand? :rswt
    1334
    Window_ItemActionCommand.prototype.addAugmentSlots = function() {
    ItemManager.checkAugmentSlots(this._item);
    var length = this._item.augmentSlots.length;
    for (var i = 0; i < length; ++i) {
    var enabled = this._item.augmentSlotEnable;
    var fmt = Yanfly.Param.AugmentSlotFmt;
    var slot = this._item.augmentSlots;
    var name = this.getAugmentSlotItemName(i);
    var text = fmt.format(slot, name);
    this.addCommand(text, 'augment', enabled, i);
    }
    this.changePaintOpacity(true);
    };

    1346

    Thanks for reading!
     
    Last edited: Aug 3, 2018
    #1

Share This Page