Hi guys,
I'm looking for create a window for delete an item in the scene skill.
But, i don't understand, i try this :
Obviously this don't work...
How to use correctly "splice" ?
Of corse, i looking for removed the last item selected, not a indexID like 1, 2, 3...
I'm looking for create a window for delete an item in the scene skill.
But, i don't understand, i try this :
Code:
Scene_Skill.prototype.onForgetOK = function(){
this.actor().forgetSkill();
SoundManager.playEquip();
};
Game_Actor.prototype.forgetSkill = function() {
var item = this.item();
this._skills.splice(item, 1);
};
Obviously this don't work...
How to use correctly "splice" ?
Of corse, i looking for removed the last item selected, not a indexID like 1, 2, 3...