设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索

[已更新附上影片]請問 YEP_Tips & Tricks – Spell Siphon 這...

查看数: 2366 | 评论数: 8 | 收藏 1
关灯 | 提示:支持键盘翻页<-左 右->
    组图打开中,请稍候......
发布时间: 2016-9-3 16:00

正文摘要:

本帖最后由 kay50913 于 2016-9-3 22:10 编辑 影片網址:http://yanfly.moe/2016/08/19/tip ... iphon-rpg-maker-mv/ 我在想應該是技能類型那邊有問題 影片中有20幾種類型 但我只有三種  如果是三種能 ...

回复

markoray 发表于 2016-9-4 09:25:47
本帖最后由 markoray 于 2016-9-4 09:29 编辑

。。。严重怀疑视频里要求的那几个插件楼主都用了没
此外注释只要写自己需要的技能类型,把多余的删掉…出错也可能是你写了一堆0…
if216 发表于 2016-9-4 08:45:22
论坛贴图太不方便。。。你f10装了这个插件没有,首先。装了以后
<Before Eval>
// Skill can only be used by actors.
if (user.isActor()) {
// Create a pool for allowed skills to be stolen.
var allowed = [];
// Add the ID's of all the skill types that can be stolen.
allowed.push(16, 17, 18, 19);
allowed.push(20, 21, 22, 23);
allowed.push(24, 25, 9, 1, 2);
// Get the target's skills.
var skills = target.skills();
// Loop through each of the target's skills.
for (var i = 0; i < skills.length; ++i) {
  // Get the currently looped skill.
  var skill = skills[i];
  // If the skill exists, the skill's type is within the allowed pool, and and the user hasn't learned the skill...
  if (skill && allowed.contains(skill.stypeId) && !user.isLearnedSkill(skill.id)) {
    // ...then teach the user the skill.
    user.learnSkill(skill.id);
    // Create the text to display.
    var text = '<CENTER>' + user.name() + ' has learned \\i[' + skill.iconIndex + ']' + skill.name + ' from ' + target.name() + '!';
    // Set the frames to wait to 90.
    var wait = 90;
    // Add the text to the Battle Manager.
    BattleManager.addText(text, wait);
    // Play an animation on the the user.
    user.startAnimation(119);
    // Break the loop.
    break;
  }
}
// close actor check.
}
</Before Eval>
这是我的代码,你直接拷过去试试吧。我前面的都是例子的代码,我最后push了1,2,因为我只有魔法和必杀技,两种。是可以用的。
if216 发表于 2016-9-3 22:38:27
kay50913 发表于 2016-9-3 21:59
謝謝回復  我有在ID輸入過01, 02, 03輸入過了 但還是無法偷竊到
所以我該改成這樣嗎
// Add the ID's of  ...

额。。。我输入的1,2,3
兄弟。。。
kay50913 发表于 2016-9-3 21:59:52
本帖最后由 kay50913 于 2016-9-3 22:01 编辑
markoray 发表于 2016-9-3 21:41
// Add the ID's of all the skill types that can be stolen.
allowed.push(16, 17, 18, 19);
添加所有 ...


謝謝回復  我有在ID輸入過01, 02, 03輸入過了 但還是無法偷竊到
所以我該改成這樣嗎
// Add the ID's of all the skill types that can be stolen.
allowed.push(01, 02, 03);
allowed.push(00, 00, 00, 00);
allowed.push(00, 00);


還是怎樣??  可以具體的教一下嗎 謝謝
markoray 发表于 2016-9-3 21:41:36
kay50913 发表于 2016-9-3 21:30
我按照影片裡 直接全部複製貼上  結果沒有任何反應
之後我就在想是不ˋ是我只有三種分類的關係
可以請問 ...

// Add the ID's of all the skill types that can be stolen.
allowed.push(16, 17, 18, 19);
添加所有可以被偷到的技能类型ID:
技能类型ID就是你系统里自己设定的,你设定了三种,魔法,特技和组合技,ID是01,02,03
看看注释啊少年……
kay50913 发表于 2016-9-3 21:30:29
if216 发表于 2016-9-3 17:35
录像的效果具体是说什么?总之我用了后,是直接偷,主动偷就学会的效果。类型多少根那个无关,但在note里面 ...

我按照影片裡 直接全部複製貼上  結果沒有任何反應
之後我就在想是不ˋ是我只有三種分類的關係
可以請問你怎麼弄的嗎  謝謝
if216 发表于 2016-9-3 17:35:16
录像的效果具体是说什么?总之我用了后,是直接偷,主动偷就学会的效果。类型多少根那个无关,但在note里面,要指定技能类型的。
拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2024-6-10 20:43

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表