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

Project1

 找回密码
 注册会员
搜索
查看: 4973|回复: 14
打印 上一主题 下一主题

〈菜鸟脚本,勿PIA^^〉仿传说系列的摁键连技..

 关闭 [复制链接]
头像被屏蔽

Lv1.梦旅人 (禁止发言)

心无天使

梦石
0
星屑
49
在线时间
0 小时
注册时间
2007-12-15
帖子
1016
跳转到指定楼层
1
发表于 2008-1-22 18:53:19 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
提示: 作者被禁止或删除 内容自动屏蔽
签名被屏蔽

Lv1.梦旅人

指引者

梦石
0
星屑
50
在线时间
2 小时
注册时间
2005-10-25
帖子
375
2
发表于 2008-1-22 19:08:08 | 只看该作者
我觉得应该加1条

感觉自己不知道什么时候该按--

而且按的节奏也不清楚............
↓这是啥-- [IMG][/IMG]
回复 支持 反对

使用道具 举报

头像被屏蔽

Lv1.梦旅人 (禁止发言)

心无天使

梦石
0
星屑
49
在线时间
0 小时
注册时间
2007-12-15
帖子
1016
3
 楼主| 发表于 2008-1-24 23:09:23 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
签名被屏蔽
回复 支持 反对

使用道具 举报

头像被屏蔽

Lv1.梦旅人 (禁止发言)

Mars-火星机械

梦石
0
星屑
50
在线时间
0 小时
注册时间
2007-12-15
帖子
2713
4
发表于 2008-1-24 23:34:23 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
回复 支持 反对

使用道具 举报

头像被屏蔽

Lv1.梦旅人 (禁止发言)

心无天使

梦石
0
星屑
49
在线时间
0 小时
注册时间
2007-12-15
帖子
1016
5
 楼主| 发表于 2008-1-24 23:58:04 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
签名被屏蔽
回复 支持 反对

使用道具 举报

Lv2.观梦者

傻♂逼

梦石
0
星屑
374
在线时间
1606 小时
注册时间
2007-3-13
帖子
6562

烫烫烫开拓者

6
发表于 2008-1-26 04:02:41 | 只看该作者
发布完成
VIP++3
http://rpg.blue/web/shownews.asp?id=937
哎呀,蛋疼什么的最有爱了
回复 支持 反对

使用道具 举报

头像被屏蔽

Lv1.梦旅人 (禁止发言)

梦石
0
星屑
50
在线时间
0 小时
注册时间
2006-7-6
帖子
80
7
发表于 2008-1-26 11:52:43 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
签名被屏蔽
回复 支持 反对

使用道具 举报

Lv3.寻梦者

梦石
0
星屑
3518
在线时间
45 小时
注册时间
2007-1-30
帖子
3
8
发表于 2008-2-1 19:13:38 | 只看该作者
  1. #==============================================================================
  2. #   组合键连续特技系统 By 绿发的Eclair
  3. #==============================================================================
  4. #   仿传说系列的效果,在使用一个特技中按照一定的顺序摁键可以再使用一个特技。
  5. #   使用方法:在下面的自定义部分里设定特技对应的组合键和连接上的特技。
  6. #   为了避免玩家二周目或者提前知道的情况下一开始就是用强力连续技能的事情发生,
  7. #   特别做了判断,只有$chain这个数组包括的技能才会被连出来。
  8. #   事件脚本中使用 add_chain(可以连出来的特技ID) 可以给这个数组添加新特技。
  9. #   就好像“学会新的”一样。
  10. #==============================================================================
  11. $chain = [ ]#可以使用的连续技
  12. module RPG
  13. class Skill
  14.   def chain
  15.   ############################################################自定义部分
  16.   case id
  17.    when 1                #有连续效果技能的ID,57就是"十字斩"
  18.     chain = ["上","上"] #连续技能的摁键,一定要写成数组,用英文半角逗号来隔开
  19.     chain_id = 12        #连接技能的ID,81就是"千裂斩"
  20.   ############################################################
  21.   else
  22.     chain = []
  23.     chain_id = 0
  24.   end
  25.    return [chain,chain_id]
  26.   end
  27. end
  28. end
  29. class Interpreter
  30.   def add_chain(id)
  31.     $chain.push(id)
  32.   end
  33. end
  34. class Scene_Battle
  35.   alias update_phase4_step1_2 :update_phase4_step1
  36.   def update_phase4_step1
  37.     @result = [] if @result == nil
  38.     update_phase4_step1_2
  39.   end
  40.   alias update_e :update
  41.   def update# or @phase4_step == 4
  42.     if (@phase4_step == 3 or @phase4_step == 5) && @active_battler.current_action.kind == 1
  43.       @use = @active_battler.current_action.kind == 1 && $data_skills[@active_battler.current_action.skill_id].chain != [[],0] && $chain.include?($data_skills[@active_battler.current_action.skill_id].chain[1])
  44.     if @use == true and $data_skills[@active_battler.current_action.skill_id].chain != [[],0]
  45.        @use = $data_skills[$data_skills[@active_battler.current_action.skill_id].chain[1]].sp_cost <= @active_battler.sp
  46.     end
  47.     if @use == true
  48.    if Input.trigger?(Input::A)
  49.      @result.push("A")
  50.    end
  51.    if Input.trigger?(Input::B)
  52.      @result.push("B")
  53.    end
  54.    if Input.trigger?(Input::C)
  55.      @result.push("C")
  56.    end
  57.    if Input.trigger?(Input::X)
  58.      @result.push("X")
  59.    end
  60.    if Input.trigger?(Input::Y)
  61.      @result.push("Y")
  62.    end
  63.    if Input.trigger?(Input::Z)
  64.      @result.push("Z")
  65.    end
  66.    if Input.trigger?(Input::L)
  67.      @result.push("L")
  68.    end
  69.    if Input.trigger?(Input::R)
  70.      @result.push("R")
  71.    end
  72.    if Input.trigger?(Input::UP)
  73.      @result.push("上")
  74.    end
  75.    if Input.trigger?(Input::DOWN)
  76.      @result.push("下")
  77.    end
  78.    if Input.trigger?(Input::LEFT)
  79.      @result.push("左")
  80.    end
  81.    if Input.trigger?(Input::RIGHT)
  82.      @result.push("右")
  83.    end
  84.    end
  85. end
  86.   if @phase == 4 and @phase4_step > 5 and @active_battler.current_action.kind == 1 and @use == true
  87.   if @result == $data_skills[@active_battler.current_action.skill_id].chain[0]
  88.     @active_battler.current_action.kind = 1
  89.     a = $data_skills[@active_battler.current_action.skill_id].chain[1]
  90.     @active_battler.current_action.skill_id = a
  91.     @action_battlers.unshift(@active_battler)
  92.     update_phase4_step1
  93.   end
  94. end
  95. update_e
  96. end
  97.   #--------------------------------------------------------------------------
  98.   # ● 生成特技行动结果
  99.   #--------------------------------------------------------------------------
  100.   def make_skill_action_result
  101.     # 获取特技
  102.     @skill = $data_skills[@active_battler.current_action.skill_id]
  103.     # 如果不是强制行动
  104.     unless @active_battler.current_action.forcing || @result != nil && [] #Eclair
  105.       # 因为 SP 耗尽而无法使用的情况下
  106.       unless @active_battler.skill_can_use?(@skill.id)
  107.         # 清除强制行动对像的战斗者
  108.         $game_temp.forcing_battler = nil
  109.         # 移至步骤 1
  110.         @phase4_step = 1
  111.         return
  112.       end
  113.     end
  114.     @result = [] #Eclair
  115.     # 消耗 SP
  116.     @active_battler.sp -= @skill.sp_cost
  117.     # 刷新状态窗口
  118.     @status_window.refresh
  119.     # 在帮助窗口显示特技名
  120.     @help_window.set_text(@skill.name, 1)
  121.     # 设置动画 ID
  122.     @animation1_id = @skill.animation1_id
  123.     @animation2_id = @skill.animation2_id
  124.     # 设置公共事件 ID
  125.     @common_event_id = @skill.common_event_id
  126.     # 设置对像侧战斗者
  127.     set_target_battlers(@skill.scope)
  128.     # 应用特技效果
  129.     for target in @target_battlers
  130.       target.skill_effect(@active_battler, @skill)
  131.     end
  132.   end
  133. end
  134. #==============================================================================
  135. #   组合键连续特技系统 By 绿发的Eclair
  136. #==============================================================================
复制代码






完全不起作用啊,求助开版大,
我用的也是RGSS103J,

是不是把Scene_Battle 4里的步骤3和4结合在一起就不行了?





  1.   #--------------------------------------------------------------------------
  2.   # ● 刷新画面 (主回合步骤 3 : 行动方动画)
  3.   #--------------------------------------------------------------------------
  4.   def update_phase4_step3
  5.     # 行动方动画 (ID 为 0 的情况下是白色闪烁)
  6.     if @animation1_id == 0
  7.       @active_battler.white_flash = true
  8.     else
  9.       @active_battler.animation_id = @animation1_id
  10.       @active_battler.animation_hit = true
  11.     end
  12.     # 对像方动画
  13.     for target in @target_battlers
  14.       target.animation_id = @animation2_id
  15.       target.animation_hit = (target.damage != "Miss")
  16.     end
  17.     # 限制动画长度、最低 8 帧
  18.     @wait_count = 50
  19.     # 移至步骤 4
  20.     @phase4_step = 5
  21.   end
  22.   #--------------------------------------------------------------------------
  23.   # ● 刷新画面 (主回合步骤 4 : 对像方动画)
  24.   #--------------------------------------------------------------------------
  25.   def update_phase4_step4
  26.     # 移至步骤 5
  27.     @phase4_step = 5
  28.   end
复制代码


这是我改的..。
回复 支持 反对

使用道具 举报

头像被屏蔽

Lv1.梦旅人 (禁止发言)

心无天使

梦石
0
星屑
49
在线时间
0 小时
注册时间
2007-12-15
帖子
1016
9
 楼主| 发表于 2008-2-1 20:45:18 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
签名被屏蔽
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
545
在线时间
0 小时
注册时间
2009-1-9
帖子
1
10
发表于 2009-1-9 23:50:06 | 只看该作者
用自己的连技id好像不行啊???比如说
 case id
   when 1               
    chain = ["上","上"]
    chain_id = 2       只要id不是81(千裂斩)和82(灵魂裂隙)就无法显示动画...
haha
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

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

GMT+8, 2025-7-21 23:12

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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