@ebldimax 你可以試下芬位,
Scene_ItemBase.prototype.determineItem = function () {
var item = this.item();
if (item.note.contains("<teleport>")) {
//修改為當(dāng)確認(rèn)含有"<teleport>"的物品或技能時(shí),才創(chuàng)建傳送點(diǎn)選擇窗口
this.mnd_winTeleport = new Window_Teleport();
this.showSubWindow(this.mnd_winTeleport);
this.mnd_winTeleport.setHandler('teleport', this.onTeleport.bind(this));//向傳送點(diǎn)選擇窗口注冊傳送點(diǎn)命令點(diǎn)擊事件
this.mnd_winTeleport.setHandler('cancel', this.onTeleportCancelled.bind(this));//取消選擇傳送點(diǎn)時(shí)的操作
this.addWindow(this.mnd_winTeleport);
【RPG Maker MV插件編程】【實(shí)例教程7】制作一個(gè)傳送插件作者:Mandarava(鰻駝螺)微博:鰻駝螺Pro 這個(gè)傳送插件可以用來制作傳送道具或傳送技能。當(dāng)玩家使用傳送道具或傳送技能后粪狼,會(huì)彈出一個(gè)窗口顯示可以傳送到的地點(diǎn)列表,玩家...