level 1
var hsy10jsid=[1,22,32,41] //不能用物品的角色id
var hsy10wpid=[1,2,3,4] //不能用的物品id
var hsy10wptype=true //true默认判断物品(false判断技能)
/** 使用项目 (非菜单里)(技能/物品通用)*/
var hsy10useItem=Scene_ItemBase.prototype.useItem
Scene_ItemBase.prototype.useItem = function() {
const action = new Game_Action(this.user());/** this.user()使用者(Base里留空)*/
action.setItemObject(this.item());//分歧类型,判断是否空值和设置id
if (action.isForFriend()) {//如果行动.是 对队友使用
aa=hsy10jsid.includes($gameParty.members()[this._actorWindow.index()].actorId())
}
var a=(hsy10wptype==true) ? DataManager.isItem(this.item()) : DataManager.isSkill(this.item())
if ( this.user().isActor()&&aa&& a &&hsy10wpid.includes( this.item().id ) ){
}else{
hsy10useItem.call(this)
} //if( this.user().isActor()&&a )
};
