查看: 2901|回复: 2

[已经解决] 去除戰鬥/逃跑

[复制链接]
梦石
0
星屑
993
在线时间
6 小时
注册时间
2014-12-19
回帖
1
发表于 2014-12-27 01:45:01 | 显示全部楼层 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有账号?注册会员

×
要如何去除或是跳過這個選項呢
想結合半即時制戰鬥,一直跳出這個選項真的很討厭

闇吼者の災悪眷族

梦石
0
星屑
1366
在线时间
2881 小时
注册时间
2014-7-29
回帖
6408
发表于 2014-12-27 02:02:03 | 显示全部楼层
本帖最后由 三途亚梦 于 2014-12-27 02:59 编辑

在日站 カルトの鳥篭 中有这么一个脚本
它的作用是当玩家点过一次战斗后,
除非玩家主动在通常指令界面按“X”键退回到上一级指令,
将跳过“战斗/撤退”指令直接进入“战斗指令”。

カルトの鳥篭是6R的授权素材推广的站点,
以下是该站点的链接
http://canarialt.blog.fc2.com
该站点有墙。

介于你是新人这次就给你搬运一次。
脚本本体在折叠中。
PTコマンド省略 (VX Ace用)
  1. #==============================================================================
  2. # ■ PTコマンド省略 (VX Ace用)
  3. #------------------------------------------------------------------------------
  4. # 製作者     : CanariAlternate
  5. # サイト名   : カルトの鳥篭
  6. # サイトURL  : [url]http://canarialt.blog.fc2.com[/url]
  7. #------------------------------------------------------------------------------
  8. # ■ 概要 : 1回「戦う」を選ぶと以降は選択をスキップします。
  9. #
  10. # ■ 必須 : なし
  11. #
  12. # ■ 位置 : 「Scene_Battle」より下
  13. #------------------------------------------------------------------------------
  14. # 更新履歴 : 2012/03/11 Ver1.05 バグ修正。これ以前の更新履歴が残ってない。
  15. #            2012/04/13 Ver1.06 公開できるように修正
  16. #            2012/11/26 Ver1.07 アルゴリズムの見直し、変数名の変更など。
  17. #            2013/01/06 Ver1.08 再定義を無くして競合の可能性を減らした。
  18. #            2013/02/19 Ver1.09 共通処理スクリプトの廃止による変更を施した。
  19. #==============================================================================

  20. $imported ||= {}
  21. $imported[:CanariAlternate_PT_Command_Bypass] = true

  22. #==============================================================================
  23. # ■ Calt
  24. #------------------------------------------------------------------------------
  25. #  CanariAlternateが製作したスクリプト用のモジュールです。
  26. #==============================================================================
  27. module Calt
  28.   #-----------------------------------------------------------------------------
  29.   # 1. 最初のターンからPTコマンドの選択を省略するか
  30.   PT_COMMAND_BYPAS_FIRST = false
  31.   #-----------------------------------------------------------------------------
  32. end

  33. #==============================================================================
  34. # ■ Scene_Battle
  35. #------------------------------------------------------------------------------
  36. #  バトル画面の処理を行うクラスです。
  37. #==============================================================================
  38. class Scene_Battle < Scene_Base
  39.   #--------------------------------------------------------------------------
  40.   # ● 戦闘開始 [追加]
  41.   #--------------------------------------------------------------------------
  42.   alias battle_start_PT_Command_Bypass battle_start
  43.   def battle_start
  44.     # false にすると最初は選択を表示する
  45.     # true  にすると最初は選択を表示しない
  46.     @pt_command_bypas = Calt::PT_COMMAND_BYPAS_FIRST
  47.     battle_start_PT_Command_Bypass
  48.   end
  49.   #--------------------------------------------------------------------------
  50.   # ● 前のコマンド入力へ [追加]
  51.   #--------------------------------------------------------------------------
  52.   alias prior_command_PT_Command_Bypass prior_command
  53.   def prior_command
  54.     @pt_command_bypas = false
  55.     prior_command_PT_Command_Bypass
  56.     @pt_command_bypas = true unless @party_command_window.active
  57.   end
  58.   #--------------------------------------------------------------------------
  59.   # ● パーティコマンド選択の開始 [追加]
  60.   #--------------------------------------------------------------------------
  61.   alias start_party_command_selection_PT_Command_Bypass start_party_command_selection
  62.   def start_party_command_selection
  63.     start_party_command_selection_PT_Command_Bypass
  64.     if @pt_command_bypas && @party_command_window.active
  65.       @party_command_window.deactivate
  66.       command_fight
  67.     end
  68.   end
  69.   #--------------------------------------------------------------------------
  70.   # ● コマンド[戦う] [追加]
  71.   #--------------------------------------------------------------------------
  72.   alias command_fight_PT_Command_Bypass command_fight
  73.   def command_fight
  74.     @pt_command_bypas = true
  75.     command_fight_PT_Command_Bypass
  76.   end
  77. end
复制代码

评分

参与人数 1梦石 +1 收起 理由
taroxd + 1 认可答案

查看全部评分

回复

使用道具 举报

梦石
0
星屑
993
在线时间
6 小时
注册时间
2014-12-19
回帖
1
 楼主| 发表于 2014-12-27 02:15:44 | 显示全部楼层
先說聲謝謝
其中想了解戰鬥腳本的原理

是不是沒辦法跳脫掉初始選擇戰鬥的程序呢?
有自己嘗試去修改過結果為這樣

点评

当然是可以脱离的,但是你还不太懂脚本的话最好不要这么做,会产生一些不必要的麻烦。另外图挂了。  发表于 2014-12-27 02:58
回复

使用道具 举报

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

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部