Give augment slots via scrip call

gambitben

Veteran
Veteran
Joined
Jun 8, 2013
Messages
161
Reaction score
127
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:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,867
Messages
1,017,061
Members
137,575
Latest member
akekaphol101
Top