| 赞 | 204  | 
 
| VIP | 13 | 
 
| 好人卡 | 7 | 
 
| 积分 | 122 | 
 
| 经验 | 52899 | 
 
| 最后登录 | 2021-6-29 | 
 
| 在线时间 | 4435 小时 | 
 
 
 
 
 
Lv4.逐梦者 
	- 梦石
 - 0 
 
        - 星屑
 - 12157 
 
        - 在线时间
 - 4435 小时
 
        - 注册时间
 - 2014-4-11
 
        - 帖子
 - 5955
 
 
  
 
 | 
	
Game_Action.prototype.setSkill = function(skillId) { 
这里设置技能的ID 
在里面添加一句把skillId加到变量的语句就可以了 
Game_Action.prototype.setSkill = function(skillId) { 
   $gameVariables._data[1] = skillId 
    this._item.setObject($dataSkills[skillId]); 
}; 
 
这样1号变量就是这个技能ID了 
 
至于目标ID 
找到 
BattleManager.updateAction = function() { 
然后 if (target) { 
这个target 就是目标了 
是目标本身,不是ID 
this._subject是施法者 
 
BattleManager.updateAction = function() { 
    var target = this._targets.shift(); 
    if (target) { 
      $gameVariables._data[1] = target 
        this.invokeAction(this._subject, target); 
    } else { 
        this.endAction(); 
    } 
}; 
 
这样1号变量就记录了目标,是目标,不是ID |   
 
 
 
 |