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

Project1

 找回密码
 注册会员
搜索
12
返回列表 发新帖
楼主: Forever火
打印 上一主题 下一主题

[已经解决] 改密码锁脚本的小问题

[复制链接]

Lv5.捕梦者 (暗夜天使)

只有笨蛋才会看到

梦石
1
星屑
21484
在线时间
9389 小时
注册时间
2012-6-19
帖子
7114

开拓者短篇九导演组冠军

11
发表于 2014-8-20 14:56:19 | 只看该作者
Forever火 发表于 2014-8-20 14:52
好吧我去看看全键盘脚本。。。

因为dll中支持的按键只有那么几个,而RM默认判定玩家的按键是通过dll来的

比如,你在游戏进行过程中按F1调出系统菜单修改按键的时候能改的按键个数也只有那么点不是么

所以要判定其他按键就不能使用RM默认的判定的方法,必须通过其他方法来突破dll的限制

点评

↓ 毫不客气地收下了  发表于 2014-8-20 15:07
https://github.com/ShadowMomo/Smomo-RGSS-Scripts/tree/master/Smomo%20Advanced%20Input  发表于 2014-8-20 15:00
其实全键盘也不是很麻烦  发表于 2014-8-20 14:59
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
55
在线时间
84 小时
注册时间
2009-1-30
帖子
175
12
 楼主| 发表于 2014-8-20 15:09:23 | 只看该作者
喵呜喵5 发表于 2014-8-20 14:56
因为dll中支持的按键只有那么几个,而RM默认判定玩家的按键是通过dll来的

比如,你在游戏进行过程中按F1 ...

我大概能猜到,应该是通过某种方法突破dl的限制l,后面应该就和原来的一样的
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
55
在线时间
84 小时
注册时间
2009-1-30
帖子
175
13
 楼主| 发表于 2014-8-20 15:24:46 | 只看该作者
本帖最后由 Forever火 于 2014-8-20 15:26 编辑

@余烬之中 虽然看不太懂,大概就是把键盘上的东西全给指定了一个位置,后面好像是判断按键还是啥,大概就是和系统说XX键在什么位置,如果我按了XX建就干嘛干嘛。。。然后我想说。。怎么调用?我想里面一定讲得很清楚了,不过我没有看懂而已{:2_272:}{:2_272:}
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
55
在线时间
84 小时
注册时间
2009-1-30
帖子
175
14
 楼主| 发表于 2014-8-20 15:34:43 | 只看该作者
@喵呜喵5 你说的是按键的图片吗?那个的话我可以用ps改改看

点评

除了PS还得改一改脚本。如果懂脚本可以试试,否则,还是不玩这么复杂的东西吧=。= 大概在140行附近  发表于 2014-8-20 16:17
回复 支持 反对

使用道具 举报

Lv4.逐梦者 (版主)

百合控

梦石
0
星屑
6543
在线时间
1275 小时
注册时间
2013-8-21
帖子
3657

开拓者

15
发表于 2014-8-20 16:06:20 | 只看该作者
我的那个全键盘还在beta版 不要用它

怎么改的话 我给个提示

比如说 你已经安装了某个全键盘脚本 通过 Input.trigger?("G")可以判断玩家是否按下了G键

那么 你就在update里加上
elsif Input.trigger?("G")  
  check_command(13)

然后另一段
when "G"  
  @Com = 13

然后为图片加上第十三个按钮:G

点评

内个。。我用了夏娜的全键盘脚本但是不行。。。  发表于 2014-8-20 17:43
萌新瑟瑟发抖
看到我请叫我去干活
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
55
在线时间
84 小时
注册时间
2009-1-30
帖子
175
16
 楼主| 发表于 2014-8-20 16:13:30 | 只看该作者
我在贴了一个夏娜改的全键盘脚本后做了如下修改,还是不行呐。。。大大们指条明路好不好{:2_272:}
@余烬之中   
if Kboard.press?($R_Key_X)
        check_command(0)
when "$R_Key_X"
            @Com = 5
回复 支持 反对

使用道具 举报

Lv4.逐梦者 (版主)

百合控

梦石
0
星屑
6543
在线时间
1275 小时
注册时间
2013-8-21
帖子
3657

开拓者

17
发表于 2014-8-20 17:56:27 | 只看该作者
噗 那个 下面when里面不应该是 "$R_Key_X"
而是"X"
这个东西 与你上面CHAIN_SWITCH_COMMAND里填的是一致的

点评

看楼下  发表于 2014-8-20 18:45
依然不行  发表于 2014-8-20 18:41

评分

参与人数 1星屑 +1 收起 理由
VIPArcher + 1 噗噗噗

查看全部评分

萌新瑟瑟发抖
看到我请叫我去干活
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
55
在线时间
84 小时
注册时间
2009-1-30
帖子
175
18
 楼主| 发表于 2014-8-20 18:44:46 | 只看该作者
恐怖解谜游戏1.rar (5.06 MB, 下载次数: 29)
好不容易改好了又出了个神奇的问题,判定奇快TAT

点评

我做好了……  发表于 2014-8-20 21:55
表示无力了。。。  发表于 2014-8-20 19:59
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
55
在线时间
84 小时
注册时间
2009-1-30
帖子
175
19
 楼主| 发表于 2014-8-20 21:15:32 | 只看该作者

看看这个工程,明明脚本没问题。。

加了全键盘脚本的限时密码锁脚本,但是怎么我按第一下连第二个都错了?不明白的把工程拿去试试就知道 恐怖解谜游戏1.rar (5.06 MB, 下载次数: 34)
回复 支持 反对

使用道具 举报

Lv4.逐梦者 (版主)

百合控

梦石
0
星屑
6543
在线时间
1275 小时
注册时间
2013-8-21
帖子
3657

开拓者

20
发表于 2014-8-20 21:55:57 | 只看该作者
本帖最后由 余烬之中 于 2014-8-20 22:33 编辑

现在支持从A到Z的所有键 加上Shift 再加上四个方向键

安装方法

首先 删掉你原来的全键盘和连击键
然后把这个插进去
注意论坛代码
RUBY 代码复制
  1. #===============================================================================
  2. # +++ MOG - Chain Commands (v1.4) +++
  3. #===============================================================================
  4. # By Moghunter
  5. # [url]http://www.atelier-rgss.com[/url]
  6. #===============================================================================
  7. # 拓展 By 火灰
  8. # (位于 [url]https://rpg.blue[/url])
  9. # 添加了全键盘的支持
  10. #===============================================================================
  11. # Sistema de sequência de botões para ativar switchs.
  12. #
  13. # Serão necessárias as seguintes imagens. (Graphics/System)
  14. #
  15. # Chain_Cursor.png
  16. # Chain_Command.png
  17. # Chain_Layout.png
  18. # Chain_Timer_Layout.png
  19. # Chain_Timer_Meter.png
  20. #
  21. #===============================================================================
  22. #
  23. # Para ativar o script use o comando abaixo.  (*Call Script)
  24. #
  25. # chain_commands(ID)
  26. #
  27. # ID - Id da switch.
  28. #
  29. #===============================================================================
  30. #==============================================================================
  31. # ● Histórico (Version History)
  32. #==============================================================================
  33. # v 1.4 - Correção do crash aleatório.
  34. # v 1.3 - Melhoria no sistema de dispose
  35. # v 1.2 - Melhoria na codificação e correção de alguns glitches.
  36. # v 1.1 - Animação de fade ao sair da cena de chain.
  37. #       - Opção de definir a prioridade da hud na tela.
  38. #==============================================================================
  39. module MOG_CHAIN_COMMANDS
  40.   #============================================================================
  41.   # CHAIN_COMMAND = { SWITCH_ID => [COMMAND] }
  42.   #
  43.   # SWITCH_ID = ID da switch
  44.   # COMMANDS = Defina aqui a sequência de botões.
  45.   #            (Para fazer a sequência use os comandos abaixo)
  46.   #
  47.   # "Down" ,"Up" ,"Left" ,"Right" ,"Shift" ,以及所有其他的英文字母键
  48.   #
  49.   # Exemplo de utilização
  50.   #
  51.   # CHAIN_SWITCH_COMMAND = {
  52.   # 25=>["Down","D","S","Right"],
  53.   # 59=>["Down","Up","Left","Right","Shift","D","S","A","Z","X","Q","W"],
  54.   # 80=>["Shift","D"]
  55.   # }
  56.   #============================================================================
  57.   CHAIN_SWITCH_COMMAND = {
  58.     11 => ["A","X","A"],
  59.     12 => ("A".."Z").to_a + %w{Shift Right Left Down Up},
  60.     5  => ["X","Right","Left","Z","Z"],
  61.     7  => ["X","X","X","X","X"],
  62.     6  => ["Left","Right","Left","Right","Left","Right","Q","Z","Up","A","S",
  63.            "Down","D","Z","Right","Up","Up","Z","W","Left","Down","D","A","W"],
  64.     8  => ["Up","Down","Left","Right","Z"]
  65.   }
  66.   #Duração para colocar os comandos. (A duração é multiplicado pela quantidade
  67.   #de comandos) *60 = 1 sec
  68.   #上面的连击链代表成功输入这些按键后会开启相应的开关
  69.   CHAIN_INPUT_DURATION = 60
  70.   #Som ao acertar.
  71.   CHAIN_RIGHT_SE = "Chime1"
  72.   #Som ao errar.
  73.   CHAIN_WRONG_SE = "Buzzer1"
  74.   #Switch que ativa o modo automático.
  75.   CHAIN_AUTOMATIC_MODE_SWITCH_ID = 20
  76.   #Definição da prioridade da hud na tela
  77.   CHAIN_HUD_Z = 300
  78.   KEYS = {}
  79.   ("A".."Z").each_with_index{|k, i| KEYS[k] = i + 0x41}
  80.   KEYS["SHIFT"] = 0x10; KEYS["LEFT"]  = 0x25; KEYS["RIGHT"] = 0x27
  81.   KEYS["DOWN"]  = 0x28; KEYS["UP"]    = 0x26
  82. end
  83. #===============================================================================
  84. # ■ Chain Commands
  85. #===============================================================================
  86. class Chain_Commands
  87.   include MOG_CHAIN_COMMANDS
  88.   #--------------------------------------------------------------------------
  89.   # ● Initialize
  90.   #--------------------------------------------------------------------------
  91.   def initialize
  92.     @action_id = $game_temp.chain_switch_id
  93.     @chain_command = CHAIN_SWITCH_COMMAND[@action_id]
  94.     @chain_command = ["?"] if @chain_command == nil
  95.     duration = [[CHAIN_INPUT_DURATION, 1].max, 9999].min
  96.     @timer_max = duration * @chain_command.size
  97.     @timer = @timer_max
  98.     @slide_time = [[60 / duration, 10].max, 60].min
  99.     @change_time = 0
  100.     @auto = $game_switches[CHAIN_AUTOMATIC_MODE_SWITCH_ID]
  101.     [url=home.php?mod=space&uid=10462]@Com[/url] = 0
  102.   end
  103.   #--------------------------------------------------------------------------
  104.   # ● Main
  105.   #--------------------------------------------------------------------------
  106.   def main
  107.     dispose
  108.     @background_sprite = Sprite.new
  109.     @background_sprite.bitmap = SceneManager.background_bitmap2
  110.     create_chain_command
  111.     create_cusrsor
  112.     create_layout
  113.     create_meter
  114.     create_text
  115.     create_number
  116.     Graphics.transition
  117.     loop do
  118.       Graphics.update
  119.       Input.update
  120.       update
  121.       break if SceneManager.scene != self
  122.     end
  123.     dispose
  124.   end
  125.   #--------------------------------------------------------------------------
  126.   # ● Create Cursor
  127.   #--------------------------------------------------------------------------
  128.   def create_cusrsor
  129.     @fy_time = 0
  130.     @fy = 0
  131.     @com_index = 0
  132.     @cursor = Sprite.new
  133.     @cursor.bitmap = Cache.system("Chain_Cursor")
  134.     @cursor.z = 4 + CHAIN_HUD_Z
  135.     @cursor_space = ((@bitmap_cw + 5) * @chain_command.size) / 2
  136.     if @chain_command.size <= 20
  137.       @cursor.x = (544 / 2) - @cursor_space + @cursor_space * @com_index
  138.     else
  139.       @cursor.x = (544 / 2)
  140.     end
  141.     @cursor.y = (416 / 2) + 30
  142.   end
  143.   #--------------------------------------------------------------------------
  144.   # ● Create Chain Command
  145.   #--------------------------------------------------------------------------
  146.   def create_chain_command
  147.     @image = Cache.system("Chain_Command")
  148.     width_max = ((@image.width / 32) + 5) * @chain_command.size
  149.     @bitmap = Bitmap.new(width_max,@image.height * 2)
  150.     @bitmap_cw = @image.width / 32
  151.     @bitmap_ch = @image.height
  152.     index = 0
  153.     for i in @chain_command
  154.       command_list_check(i)
  155.       bitmap_src_rect = Rect.new(@com * @bitmap_cw, 0, @bitmap_cw, @bitmap_ch)
  156.       if index == 0
  157.         @bitmap.blt(index * (@bitmap_cw + 5) , 0, @image, bitmap_src_rect)
  158.       else
  159.         @bitmap.blt(index * (@bitmap_cw + 5) , @bitmap_ch, @image,
  160.         bitmap_src_rect)
  161.       end
  162.       index += 1
  163.     end
  164.     @sprite = Sprite.new
  165.     @sprite.bitmap = @bitmap
  166.     if @chain_command.size <= 15
  167.       @sprite.x = (544 / 2) - ((@bitmap_cw + 5) * @chain_command.size) / 2
  168.       @new_x = 0
  169.     else
  170.       @sprite.x = (544 / 2)
  171.       @new_x = @sprite.x
  172.     end
  173.     @sprite.y = (416 / 2) + 30  - @bitmap_ch  - 15
  174.     @sprite.z = 3 + CHAIN_HUD_Z
  175.     @sprite.zoom_x = 1.5
  176.     @sprite.zoom_y = 1.5
  177.   end
  178.   #--------------------------------------------------------------------------
  179.   # * create_layout
  180.   #--------------------------------------------------------------------------
  181.   def create_layout
  182.     @back = Plane.new
  183.     @back.bitmap = Cache.system("Chain_Layout")
  184.     @back.z = 0
  185.     @layout = Sprite.new
  186.     @layout.bitmap = Cache.system("Chain_Timer_Layout")
  187.     @layout.z = 1 + CHAIN_HUD_Z
  188.     @layout.x = 160
  189.     @layout.y = 150
  190.   end
  191.   #--------------------------------------------------------------------------
  192.   # * create_meter
  193.   #--------------------------------------------------------------------------
  194.   def create_meter
  195.     @meter_flow = 0
  196.     @meter_image = Cache.system("Chain_Timer_Meter")
  197.     @meter_bitmap = Bitmap.new(@meter_image.width,@meter_image.height)
  198.     @meter_range = @meter_image.width / 3
  199.     @meter_width = @meter_range * @timer / @timer_max
  200.     @meter_height = @meter_image.height
  201.     @meter_src_rect = Rect.new(@meter_range, 0, @meter_width, @meter_height)
  202.     @meter_bitmap.blt(0,0, @meter_image, @meter_src_rect)
  203.     @meter_sprite = Sprite.new
  204.     @meter_sprite.bitmap = @meter_bitmap
  205.     @meter_sprite.z = 2 + CHAIN_HUD_Z
  206.     @meter_sprite.x = 220
  207.     @meter_sprite.y = 159
  208.     update_flow
  209.   end
  210.   #--------------------------------------------------------------------------
  211.   # ● Create Text
  212.   #--------------------------------------------------------------------------
  213.   def create_text
  214.     @text = Sprite.new
  215.     @text.bitmap = Bitmap.new(200,32)
  216.     @text.z = 2 + CHAIN_HUD_Z
  217.     @text.bitmap.font.name = "Georgia"
  218.     @text.bitmap.font.size = 25
  219.     @text.bitmap.font.bold = true
  220.     @text.bitmap.font.italic = true
  221.     @text.bitmap.font.color.set(255, 255, 255,220)
  222.     @text.x = 230
  223.     @text.y = 100
  224.   end
  225.   #--------------------------------------------------------------------------
  226.   # ● Create Number
  227.   #--------------------------------------------------------------------------
  228.   def create_number
  229.     @combo = 0
  230.     @number = Sprite.new
  231.     @number.bitmap = Bitmap.new(200,64)
  232.     @number.z = 2 + CHAIN_HUD_Z
  233.     @number.bitmap.font.name = "Arial"
  234.     @number.bitmap.font.size = 24
  235.     @number.bitmap.font.bold = true
  236.     @number.bitmap.font.color.set(0, 255, 255,200)
  237.     @number.bitmap.draw_text(0, 0, 200, 32, "Ready",1)
  238.     @number.x = 30
  239.     @number.y = 100
  240.   end
  241.   #--------------------------------------------------------------------------
  242.   # ● Pre Dispose
  243.   #--------------------------------------------------------------------------
  244.   def exit
  245.     loop do
  246.       Graphics.update
  247.       @sprite.x += 5
  248.       @layout.x -= 5
  249.       @meter_sprite.x -= 5
  250.       @text.x -= 2
  251.       @text.opacity -= 5
  252.       @sprite.opacity -= 5
  253.       @layout.opacity -= 5
  254.       @meter_sprite.opacity -= 5
  255.       @number.opacity -= 5
  256.       @back.opacity -= 5
  257.       @cursor.visible = false
  258.       break if @sprite.opacity == 0
  259.     end
  260.     SceneManager.call(Scene_Map)
  261.   end
  262.   #--------------------------------------------------------------------------
  263.   # ● Dispose
  264.   #--------------------------------------------------------------------------
  265.   def dispose
  266.     return if @layout == nil
  267.     Graphics.freeze
  268.     @background_sprite.bitmap.dispose
  269.     @background_sprite.dispose
  270.     @bitmap.dispose
  271.     @sprite.bitmap.dispose
  272.     @sprite.dispose
  273.     @cursor.bitmap.dispose
  274.     @cursor.dispose
  275.     @meter_image.dispose
  276.     @meter_bitmap.dispose
  277.     @meter_sprite.bitmap.dispose
  278.     @meter_sprite.dispose
  279.     @layout.bitmap.dispose
  280.     @layout.dispose
  281.     @layout = nil
  282.     @back.bitmap.dispose
  283.     @back.dispose
  284.     @text.bitmap.dispose
  285.     @text.dispose
  286.     @number.bitmap.dispose
  287.     @number.dispose
  288.     @image.dispose
  289.   end
  290.   #--------------------------------------------------------------------------
  291.   # ● Update
  292.   #--------------------------------------------------------------------------
  293.   def update
  294.     update_command
  295.     update_cursor_slide
  296.     update_flow
  297.     update_change_time
  298.   end
  299.   #--------------------------------------------------------------------------
  300.   # ● Change_Time
  301.   #--------------------------------------------------------------------------
  302.   def update_change_time
  303.     return unless @auto
  304.     @change_time += 1
  305.     check_command(-1) if @change_time >= CHAIN_INPUT_DURATION - 1
  306.   end
  307.   #--------------------------------------------------------------------------
  308.   # ● Update Flow
  309.   #--------------------------------------------------------------------------
  310.   def update_flow
  311.     @timer -= 1
  312.     @meter_sprite.bitmap.clear
  313.     @meter_width = @meter_range * @timer / @timer_max
  314.     @meter_src_rect = Rect.new(@meter_flow, 0, @meter_width, @meter_height)
  315.     @meter_bitmap.blt(0,0, @meter_image, @meter_src_rect)
  316.     @meter_flow += 20
  317.     @meter_flow = 0 if @meter_flow >= @meter_image.width - @meter_range
  318.     wrong_command if @timer == 0 and @auto == false
  319.   end
  320.   #--------------------------------------------------------------------------
  321.   # ● Update Command
  322.   #--------------------------------------------------------------------------
  323.   def update_command
  324.     return if @auto
  325.     KEYS.each{|key,value| check_command(key) if Kboard.trigger?(value)}
  326.   end
  327.   #--------------------------------------------------------------------------
  328.   # ● command_list_check
  329.   #--------------------------------------------------------------------------
  330.   def command_list_check(command)
  331.     command.upcase!
  332.     @com = ("A".."Z").to_a.index(command)
  333.     @com ||= 26 + (_ = %w{SHIFT RIGHT LEFT DOWN UP}.index(command)) ? _ : 5
  334.   end
  335.   #--------------------------------------------------------------------------
  336.   # ● check_command
  337.   #--------------------------------------------------------------------------
  338.   def check_command(com)
  339.     index = 0
  340.     if com != -1
  341.       right_input = false
  342.       for i in @chain_command
  343.         if index == @com_index
  344.           right_input = true if @chain_command[index] == com
  345.         end
  346.         index += 1
  347.       end
  348.     else
  349.       @change_time = 0
  350.       right_input = true
  351.     end
  352.     if right_input
  353.       refresh_number
  354.       next_command
  355.     else
  356.       wrong_command
  357.     end
  358.   end
  359.   #--------------------------------------------------------------------------
  360.   # ● Next Command
  361.   #--------------------------------------------------------------------------
  362.   def next_command
  363.     @com_index += 1
  364.     Audio.se_play("Audio/SE/" + CHAIN_RIGHT_SE, 100, 100)
  365.     if @com_index == @chain_command.size
  366.       $game_switches[@action_id] = true
  367.       exit
  368.       $game_map.need_refresh = true
  369.     end
  370.     refresh_command
  371.     refresh_text(0)
  372.   end
  373.   #--------------------------------------------------------------------------
  374.   # ● wrong_command
  375.   #--------------------------------------------------------------------------
  376.   def wrong_command
  377.     Audio.se_play("Audio/SE/" + CHAIN_WRONG_SE, 100, 100)
  378.     refresh_text(1)
  379.     exit
  380.     $game_player.jump(0,0)
  381.   end
  382.   #--------------------------------------------------------------------------
  383.   # ● Refresh Command
  384.   #--------------------------------------------------------------------------
  385.   def refresh_command
  386.     @sprite.bitmap.clear
  387.     index = 0
  388.     for i in @chain_command
  389.       command_list_check(i)
  390.       bitmap_src_rect = Rect.new(@com * @bitmap_cw, 0, @bitmap_cw, @bitmap_ch)
  391.       if @com_index == index
  392.         @bitmap.blt(index * (@bitmap_cw + 5) , 0, @image, bitmap_src_rect)
  393.       else
  394.         @bitmap.blt(index * (@bitmap_cw + 5) , @bitmap_ch,
  395.         @image, bitmap_src_rect)
  396.       end
  397.       index += 1
  398.     end
  399.     if @chain_command.size > 15
  400.       @new_x = (544 / 2) - ((@bitmap_cw + 5) * @com_index)
  401.     else
  402.       @cursor.x = (544 / 2) - @cursor_space + ((@bitmap_cw + 5) * @com_index)
  403.     end
  404.   end
  405.   #--------------------------------------------------------------------------
  406.   # ● Refresh Text
  407.   #--------------------------------------------------------------------------
  408.   def refresh_text(type)
  409.     @text.bitmap.clear
  410.     if type == 0
  411.       if @com_index == @chain_command.size
  412.         @text.bitmap.font.color.set(55, 255, 55,220)
  413.         @text.bitmap.draw_text(0, 0, 200, 32, "Perfect!",1)
  414.       else
  415.         @text.bitmap.font.color.set(55, 155, 255,220)
  416.         @text.bitmap.draw_text(0, 0, 200, 32, "Success!",1)
  417.       end
  418.     else
  419.       @text.bitmap.font.color.set(255, 155, 55,220)
  420.       if @timer == 0
  421.         @text.bitmap.draw_text(0, 0, 200, 32, "Time Limit!",1)
  422.       else
  423.         @text.bitmap.draw_text(0, 0, 200, 32, "Fail!",1)
  424.       end
  425.     end
  426.     @text.x = 230
  427.     @text.opacity = 255
  428.   end
  429.   #--------------------------------------------------------------------------
  430.   # ● Refresh Number
  431.   #--------------------------------------------------------------------------
  432.   def refresh_number
  433.     @combo += 1
  434.     @number.bitmap.clear
  435.     @number.bitmap.font.size = 34
  436.     @number.bitmap.draw_text(0, 0, 200, 32, @combo.to_s,1)
  437.     @number.opacity = 255
  438.     @number.zoom_x = 2
  439.     @number.zoom_y = 2
  440.   end
  441.   #--------------------------------------------------------------------------
  442.   # ● Update Cursor Slide
  443.   #--------------------------------------------------------------------------
  444.   def update_cursor_slide
  445.     @sprite.zoom_x -= 0.1 if @sprite.zoom_x > 1
  446.     @sprite.zoom_y -= 0.1 if @sprite.zoom_y > 1
  447.     @text.x -= 2 if @text.x > 210
  448.     @text.opacity -= 5 if @text.opacity > 0
  449.     @sprite.x -= @slide_time if @sprite.x > @new_x and @chain_command.size > 15
  450.     if @number.zoom_x > 1
  451.       @number.zoom_x -= 0.1
  452.       @number.zoom_y -= 0.1
  453.     end
  454.     if @fy_time > 15
  455.       @fy += 1
  456.     elsif @fy_time > 0
  457.       @fy -= 1
  458.     else
  459.       @fy = 0
  460.       @fy_time = 30
  461.     end
  462.     @fy_time -= 1
  463.     @cursor.oy = @fy
  464.   end
  465. end
  466. #==============================================================================
  467. # ■ Game Temp
  468. #==============================================================================
  469. class Game_Temp
  470.   attr_accessor :chain_switch_id
  471.   #--------------------------------------------------------------------------
  472.   # ● Initialize
  473.   #--------------------------------------------------------------------------
  474.   alias mog_chain_commands_initialize initialize
  475.   def initialize
  476.     @chain_switch_id = 0
  477.     mog_chain_commands_initialize
  478.   end
  479. end
  480. #==============================================================================
  481. # ■ Game_Interpreter
  482. #==============================================================================
  483. class Game_Interpreter
  484.   #--------------------------------------------------------------------------
  485.   # ● Chain Commands
  486.   #--------------------------------------------------------------------------
  487.   def chain_commands(switch_id = 0)
  488.     return if switch_id <= 0
  489.     $game_temp.chain_switch_id = switch_id
  490.     SceneManager.call(Chain_Commands)
  491.     wait(1)
  492.   end
  493. end
  494. #===============================================================================
  495. # ■ SceneManager
  496. #===============================================================================
  497. class << SceneManager
  498.   @background_bitmap2 = nil
  499.   #--------------------------------------------------------------------------
  500.   # ● Snapshot For Background2
  501.   #--------------------------------------------------------------------------
  502.   def snapshot_for_background2
  503.     @background_bitmap2.dispose if @background_bitmap2
  504.     @background_bitmap2 = Graphics.snap_to_bitmap
  505.   end
  506.   #--------------------------------------------------------------------------
  507.   # ● Background Bitmap2
  508.   #--------------------------------------------------------------------------
  509.   def background_bitmap2
  510.     @background_bitmap2
  511.   end
  512. end
  513. #===============================================================================
  514. # ■ Scene Map
  515. #===============================================================================
  516. class Scene_Map < Scene_Base
  517.   #--------------------------------------------------------------------------
  518.   # ● Terminate
  519.   #--------------------------------------------------------------------------
  520.   alias mog_chain_commands_terminate terminate
  521.   def terminate
  522.     SceneManager.snapshot_for_background2
  523.     mog_chain_commands_terminate
  524.   end
  525. end
  526. $mog_rgss3_chain_commands = true
  527. #============================================================================
  528. # ■ Keyboard Script
  529. #----------------------------------------------------------------------------
  530. #    By: 灼眼的夏娜
  531. #  整理: 火灰
  532. #----------------------------------------------------------------------------
  533. # 本脚本来自 rm.66RPG.com,使用和转载请保留此信息
  534. #==============================================================================
  535. module Kboard
  536.   module_function
  537.   @R_Key_Hash = {}
  538.   @R_Key_Repeat = {}
  539.   GetKeyState = Win32API.new("user32","GetAsyncKeyState",['I'],'I')
  540.   def press?(rkey)
  541.     return GetKeyState.call(rkey) != 0
  542.   end
  543.   def repeat?(rkey)
  544.     result = GetKeyState.call(rkey)
  545.     if result != 0
  546.       if @R_Key_Repeat[rkey].nil?
  547.         @R_Key_Repeat[rkey] = 0
  548.         return true
  549.       end
  550.       @R_Key_Repeat[rkey] += 1
  551.     else
  552.       @R_Key_Repeat[rkey] = nil
  553.       @R_Key_Hash[rkey] = 0
  554.     end
  555.     if !@R_Key_Repeat[rkey].nil? and @R_Key_Repeat[rkey] > 4
  556.       @R_Key_Repeat[rkey] = 0
  557.       return true
  558.     else
  559.       return false
  560.     end
  561.   end
  562.   def trigger?(rkey)
  563.     result = GetKeyState.call(rkey)
  564.     if @R_Key_Hash[rkey] == 1 and result != 0
  565.       return false
  566.     end
  567.     if result != 0
  568.       @R_Key_Hash[rkey] = 1
  569.       return true
  570.     else
  571.       @R_Key_Hash[rkey] = 0
  572.       return false
  573.     end
  574.   end
  575. end


最后 把这个图片代替你原来的Chain_Command.png 位于Graphics\System下

点评

ORZ 售后服务只有找VIPArcher了  发表于 2014-8-20 22:35
好吧 更新了 不过应该体验不到问题 删掉你原来的全键盘和连击键 把这个插进去  发表于 2014-8-20 22:34
五星“星星星星星”好评。。。。  发表于 2014-8-20 22:33

评分

参与人数 1梦石 +5 收起 理由
VIPArcher + 5 浴巾大美女的技术就是顶呱呱

查看全部评分

萌新瑟瑟发抖
看到我请叫我去干活
回复 支持 反对

使用道具 举报

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

本版积分规则

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

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

GMT+8, 2024-9-25 23:16

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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