| 赞 | 0  | 
 
| VIP | 0 | 
 
| 好人卡 | 0 | 
 
| 积分 | 1 | 
 
| 经验 | 20879 | 
 
| 最后登录 | 2022-8-7 | 
 
| 在线时间 | 696 小时 | 
 
 
 
 
 
Lv1.梦旅人 
	- 梦石
 - 0 
 
        - 星屑
 - 61 
 
        - 在线时间
 - 696 小时
 
        - 注册时间
 - 2011-1-4
 
        - 帖子
 - 208
 
 
 
 | 
	
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员  
 
x
 
 本帖最后由 cjlzbb 于 2016-2-28 17:59 编辑  
 
VA有个类似的脚本https://rpg.blue/thread-383993-1-1.html 
 
不过因为不需要上面链接里的全部作用,只想做出X号技能同时对敌我双方生效,所以窗口啥的也不用改 
应该改这两个就行了吧, 
很明显没成功  。。还一直报错  
- Game_Action.prototype.makeTargets = function() {
 
 -     var targets = [];
 
 -     if (!this._forcing && this.subject().isConfused()) {
 
 -         targets = [this.confusionTarget()];
 
 -     } else if (this.isForOpponent()) {
 
 -         targets = this.targetsForOpponents();
 
 -     } else if (this.isForFriend()) {
 
 -         targets = this.targetsForFriends();
 
 -     }
 
 -     return this.repeatTargets(targets);
 
 - };
 
  
 
- Game_Action.prototype.itemTargetCandidates = function() {
 
 -     if (!this.isValid()) {
 
 -         return [];
 
 -     } else if (this.isForOpponent()) {
 
 -         return this.opponentsUnit().aliveMembers();
 
 -     } else if (this.isForUser()) {
 
 -         return [this.subject()];
 
 -     } else if (this.isForDeadFriend()) {
 
 -         return this.friendsUnit().deadMembers();
 
 -     } else {
 
 -         return this.friendsUnit().aliveMembers();
 
 -     }
 
 - };
 
  复制代码 |   
 
 
 
 |