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

Yesterday I made my first step towards eating more healthily.
I saw candy on discount and did not buy it.
"They yearn for what they fear for."
I always told my DA fans how much I hate slot machines. They're fine in games as a risk-and-reward system. But when you're spending REAL MONEY in a Vegas casino to try and hit the jackpot (which very, very few people will), it can really hurt your budget. Gambling is a bad habit, and I don't like wasting my money on a slim chance. Go to Vegas for the experience, not the jackpot.
Took the kids to a corn maze. They gave us a map and had lights at certain points in the maze. Not overwhelming... or underwhelming... just... whelming.
Okay, vacuuming fruit flies out of the air is surprisingly effective.

Forum statistics

Threads
104,396
Messages
1,006,082
Members
135,927
Latest member
mich
Top