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

Project1

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

[結帖]Yanfly的rgss3腳本不能下了

[复制链接]
david_ng223 该用户已被删除
跳转到指定楼层
1
发表于 2014-5-30 15:55:50 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式
提示: 作者被禁止或删除 内容自动屏蔽

Lv1.梦旅人

进击的屌丝
中二同好会长

梦石
0
星屑
50
在线时间
628 小时
注册时间
2013-10-8
帖子
1246

贵宾

2
发表于 2014-5-30 16:25:36 | 只看该作者
Yanlfy把脚本全部备份在这里了:http://pastebin.com/u/Archeia
吾乃不明事理之人,疯狂之人。


才怪咧,当时是怎么想到这么中二的句子233
回复 支持 反对

使用道具 举报

david_ng223 该用户已被删除
3
 楼主| 发表于 2014-5-30 16:45:39 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
50
在线时间
295 小时
注册时间
2013-7-1
帖子
23
4
发表于 2014-5-30 18:19:17 | 只看该作者
ナイフ君 发表于 2014-5-30 16:25
Yanlfy把脚本全部备份在这里了:http://pastebin.com/u/Archeia

这个需要挂vpn才能上。亲测可行。
回复 支持 反对

使用道具 举报

david_ng223 该用户已被删除
5
 楼主| 发表于 2014-5-30 18:45:45 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
回复 支持 反对

使用道具 举报

david_ng223 该用户已被删除
6
 楼主| 发表于 2014-5-30 18:57:17 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
回复 支持 反对

使用道具 举报

Lv2.观梦者 (暗夜天使)

卑微的梦

梦石
0
星屑
519
在线时间
820 小时
注册时间
2013-2-23
帖子
1185

短篇九勇士组季军

7
发表于 2014-5-30 22:39:39 | 只看该作者
david_ng223 发表于 2014-5-30 18:57
@子弹君
我想下載這個名為"Combat Log Display"的腳本
https://yanflychannel.wordpress.com/rmvxa/battle ...
  1. #==============================================================================
  2. #
  3. # ▼ Yanfly Engine Ace - Combat Log Display v1.02
  4. # -- Last Updated: 2012.01.24
  5. # -- Level: Easy
  6. # -- Requires: n/a
  7. #
  8. #==============================================================================

  9. $imported = {} if $imported.nil?
  10. $imported["YEA-CombatLogDisplay"] = true

  11. #==============================================================================
  12. # ▼ Updates
  13. # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  14. # 2012.01.24 - Bug Fixed: Confirm window crash with Battle Command List.
  15. # 2012.01.16 - Prevented subsequent line inserts.
  16. # 2011.12.10 - Started Script and Finished.
  17. #
  18. #==============================================================================
  19. # ▼ Introduction
  20. # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  21. # Sometimes text appears way too fast in the battle system or sometimes players
  22. # may miss what kind of information was delivered on-screen. For times like
  23. # that, being able to access the combat log would be important. The combat log
  24. # records all of the text that appears in the battle log window at the top.
  25. # The player can access the combat log display any time during action selection
  26. # phase. Sometimes, players can even review over the combat log to try and
  27. # figure out any kinds of patterns enemies may even have.
  28. #
  29. #==============================================================================
  30. # ▼ Instructions
  31. # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  32. # To install this script, open up your script editor and copy/paste this script
  33. # to an open slot below ▼ Materials/素材 but above ▼ Main. Remember to save.
  34. #
  35. #==============================================================================
  36. # ▼ Compatibility
  37. # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  38. # This script is made strictly for RPG Maker VX Ace. It is highly unlikely that
  39. # it will run with RPG Maker VX without adjusting.
  40. #
  41. #==============================================================================

  42. module YEA
  43.   module COMBAT_LOG
  44.    
  45.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  46.     # - Combat Log Settings -
  47.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  48.     # Adjust the settings here to modify how the combat log works for your
  49.     # game. You can change the command name and extra text that gets fitted
  50.     # into the combat log over time. If you don't want specific text to appear,
  51.     # just set the text to "" and nothing will show.
  52.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  53.     COMMAND_NAME      = "CombatLog"    # Command list name.
  54.     LINE_COLOUR       = 0              # Line colour for separators.
  55.     LINE_COLOUR_ALPHA = 48             # Opacity of the line colour.
  56.     TEXT_BATTLE_START = "\\c[4]Battle Start!"           # Battle start text.
  57.     TEXT_TURN_NUMBER  = "\\c[4]Turn Number: \\c[6]%d"   # Turn number text.
  58.    
  59.   end # COMBAT_LOG
  60. end # YEA

  61. #==============================================================================
  62. # ▼ Editting anything past this point may potentially result in causing
  63. # computer damage, incontinence, explosion of user's head, coma, death, and/or
  64. # halitosis so edit at your own risk.
  65. #==============================================================================

  66. #==============================================================================
  67. # ■ Window_BattleLog
  68. #==============================================================================

  69. class Window_BattleLog < Window_Selectable
  70.   
  71.   #--------------------------------------------------------------------------
  72.   # new method: combatlog_window=
  73.   #--------------------------------------------------------------------------
  74.   def combatlog_window=(window)
  75.     @combatlog_window = window
  76.   end
  77.   
  78.   #--------------------------------------------------------------------------
  79.   # new method: combatlog
  80.   #--------------------------------------------------------------------------
  81.   def combatlog(text)
  82.     return if @combatlog_window.nil?
  83.     return if text == ""
  84.     @combatlog_window.add_line(text)
  85.   end
  86.   
  87.   #--------------------------------------------------------------------------
  88.   # alias method: add_text
  89.   #--------------------------------------------------------------------------
  90.   alias window_battlelog_add_text_cld add_text
  91.   def add_text(text)
  92.     combatlog(text)
  93.     window_battlelog_add_text_cld(text)
  94.   end
  95.   
  96.   #--------------------------------------------------------------------------
  97.   # alias method: replace_text
  98.   #--------------------------------------------------------------------------
  99.   alias window_battlelog_replace_text_cld replace_text
  100.   def replace_text(text)
  101.     combatlog(text)
  102.     window_battlelog_replace_text_cld(text)
  103.   end
  104.   
  105.   #--------------------------------------------------------------------------
  106.   # Start Ace Battle Engine Compatibility
  107.   #--------------------------------------------------------------------------
  108.   if $imported["YEA-BattleEngine"]
  109.   
  110.   #--------------------------------------------------------------------------
  111.   # alias method: display_current_state
  112.   #--------------------------------------------------------------------------
  113.   alias window_battlelog_display_current_state_cld display_current_state
  114.   def display_current_state(subject)
  115.     window_battlelog_display_current_state_cld(subject)
  116.     return if YEA::BATTLE::MSG_CURRENT_STATE
  117.     return if subject.most_important_state_text.empty?
  118.     combatlog(subject.name + subject.most_important_state_text)
  119.   end
  120.   
  121.   #--------------------------------------------------------------------------
  122.   # alias method: display_use_item
  123.   #--------------------------------------------------------------------------
  124.   alias window_battlelog_display_use_item_cld display_use_item
  125.   def display_use_item(subject, item)
  126.     window_battlelog_display_use_item_cld(subject, item)
  127.     return if YEA::BATTLE::MSG_CURRENT_ACTION
  128.     if item.is_a?(RPG::Skill)
  129.       combatlog(subject.name + item.message1)
  130.       unless item.message2.empty?
  131.         combatlog(item.message2)
  132.       end
  133.     else
  134.       combatlog(sprintf(Vocab::UseItem, subject.name, item.name))
  135.     end
  136.   end
  137.   
  138.   #--------------------------------------------------------------------------
  139.   # alias method: display_counter
  140.   #--------------------------------------------------------------------------
  141.   alias window_battlelog_display_counter_cld display_counter
  142.   def display_counter(target, item)
  143.     window_battlelog_display_counter_cld(target, item)
  144.     return if YEA::BATTLE::MSG_COUNTERATTACK
  145.     combatlog(sprintf(Vocab::CounterAttack, target.name))
  146.   end
  147.   
  148.   #--------------------------------------------------------------------------
  149.   # alias method: display_reflection
  150.   #--------------------------------------------------------------------------
  151.   alias window_battlelog_display_reflection_cld display_reflection
  152.   def display_reflection(target, item)
  153.     window_battlelog_display_reflection_cld(target, item)
  154.     return if YEA::BATTLE::MSG_REFLECT_MAGIC
  155.     combatlog(sprintf(Vocab::MagicReflection, target.name))
  156.   end
  157.   
  158.   #--------------------------------------------------------------------------
  159.   # alias method: display_substitute
  160.   #--------------------------------------------------------------------------
  161.   alias window_battlelog_display_substitute_cld display_substitute
  162.   def display_substitute(substitute, target)
  163.     window_battlelog_display_substitute_cld(substitute, target)
  164.     return if YEA::BATTLE::MSG_SUBSTITUTE_HIT
  165.     combatlog(sprintf(Vocab::Substitute, substitute.name, target.name))
  166.   end
  167.   
  168.   #--------------------------------------------------------------------------
  169.   # alias method: display_failure
  170.   #--------------------------------------------------------------------------
  171.   alias window_battlelog_display_failure_cld display_failure
  172.   def display_failure(target, item)
  173.     window_battlelog_display_failure_cld(target, item)
  174.     return if YEA::BATTLE::MSG_FAILURE_HIT
  175.     if target.result.hit? && !target.result.success
  176.       combatlog(sprintf(Vocab::ActionFailure, target.name))
  177.     end
  178.   end
  179.   
  180.   #--------------------------------------------------------------------------
  181.   # alias method: display_critical
  182.   #--------------------------------------------------------------------------
  183.   alias window_battlelog_display_critical_cld display_critical
  184.   def display_critical(target, item)
  185.     window_battlelog_display_critical_cld(target, item)
  186.     return if YEA::BATTLE::MSG_CRITICAL_HIT
  187.     if target.result.critical
  188.       text = target.actor? ? Vocab::CriticalToActor : Vocab::CriticalToEnemy
  189.       combatlog(text)
  190.     end
  191.   end
  192.   
  193.   #--------------------------------------------------------------------------
  194.   # alias method: display_miss
  195.   #--------------------------------------------------------------------------
  196.   alias window_battlelog_display_miss_cld display_miss
  197.   def display_miss(target, item)
  198.     window_battlelog_display_miss_cld(target, item)
  199.     return if YEA::BATTLE::MSG_HIT_MISSED
  200.     if !item || item.physical?
  201.       fmt = target.actor? ? Vocab::ActorNoHit : Vocab::EnemyNoHit
  202.     else
  203.       fmt = Vocab::ActionFailure
  204.     end
  205.     combatlog(sprintf(fmt, target.name))
  206.   end
  207.   
  208.   #--------------------------------------------------------------------------
  209.   # alias method: display_evasion
  210.   #--------------------------------------------------------------------------
  211.   alias window_battlelog_display_evasion_cld display_evasion
  212.   def display_evasion(target, item)
  213.     window_battlelog_display_evasion_cld(target, item)
  214.     return if YEA::BATTLE::MSG_EVASION
  215.     if !item || item.physical?
  216.       fmt = Vocab::Evasion
  217.     else
  218.       fmt = Vocab::MagicEvasion
  219.     end
  220.     combatlog(sprintf(fmt, target.name))
  221.   end
  222.   
  223.   #--------------------------------------------------------------------------
  224.   # alias method: display_hp_damage
  225.   #--------------------------------------------------------------------------
  226.   alias window_battlelog_display_hp_damage_cld display_hp_damage
  227.   def display_hp_damage(target, item)
  228.     window_battlelog_display_hp_damage_cld(target, item)
  229.     return if YEA::BATTLE::MSG_HP_DAMAGE
  230.     return if target.result.hp_damage == 0 && item && !item.damage.to_hp?
  231.     combatlog(target.result.hp_damage_text)
  232.   end
  233.   
  234.   #--------------------------------------------------------------------------
  235.   # alias method: display_mp_damage
  236.   #--------------------------------------------------------------------------
  237.   alias window_battlelog_display_mp_damage_cld display_mp_damage
  238.   def display_mp_damage(target, item)
  239.     window_battlelog_display_mp_damage_cld(target, item)
  240.     return if YEA::BATTLE::MSG_MP_DAMAGE
  241.     combatlog(target.result.mp_damage_text)
  242.   end
  243.   
  244.   #--------------------------------------------------------------------------
  245.   # alias method: display_tp_damage
  246.   #--------------------------------------------------------------------------
  247.   alias window_battlelog_display_tp_damage_cld display_tp_damage
  248.   def display_tp_damage(target, item)
  249.     window_battlelog_display_tp_damage_cld(target, item)
  250.     return if YEA::BATTLE::MSG_TP_DAMAGE
  251.     combatlog(target.result.tp_damage_text)
  252.   end
  253.   
  254.   #--------------------------------------------------------------------------
  255.   # alias method: display_added_states
  256.   #--------------------------------------------------------------------------
  257.   alias window_battlelog_display_added_states_cld display_added_states
  258.   def display_added_states(target)
  259.     window_battlelog_display_added_states_cld(target)
  260.     return if YEA::BATTLE::MSG_ADDED_STATES
  261.     target.result.added_state_objects.each do |state|
  262.       state_msg = target.actor? ? state.message1 : state.message2
  263.       next if state_msg.empty?
  264.       combatlog(target.name + state_msg)
  265.     end
  266.   end
  267.   
  268.   #--------------------------------------------------------------------------
  269.   # alias method: display_removed_states
  270.   #--------------------------------------------------------------------------
  271.   alias window_battlelog_display_removed_states_cld display_removed_states
  272.   def display_removed_states(target)
  273.     window_battlelog_display_removed_states_cld(target)
  274.     return if YEA::BATTLE::MSG_REMOVED_STATES
  275.     target.result.removed_state_objects.each do |state|
  276.       next if state.message4.empty?
  277.       combatlog(target.name + state.message4)
  278.     end
  279.   end
  280.   
  281.   #--------------------------------------------------------------------------
  282.   # alias method: display_buffs
  283.   #--------------------------------------------------------------------------
  284.   alias window_battlelog_display_buffs_cld display_buffs
  285.   def display_buffs(target, buffs, fmt)
  286.     window_battlelog_display_buffs_cld(target, buffs, fmt)
  287.     return if YEA::BATTLE::MSG_CHANGED_BUFFS
  288.     buffs.each do |param_id|
  289.       combatlog(sprintf(fmt, target.name, Vocab::param(param_id)))
  290.     end
  291.   end
  292.   
  293.   #--------------------------------------------------------------------------
  294.   # End Ace Battle Engine Compatibility
  295.   #--------------------------------------------------------------------------
  296.   end # $imported["YEA-BattleEngine"]
  297.   
  298. end # Window_BattleLog

  299. #==============================================================================
  300. # ■ Window_CombatLog
  301. #==============================================================================

  302. class Window_CombatLog < Window_Selectable
  303.   
  304.   #--------------------------------------------------------------------------
  305.   # initialize
  306.   #--------------------------------------------------------------------------
  307.   def initialize
  308.     @data = []
  309.     super(0, 0, Graphics.width, Graphics.height-120)
  310.     deactivate
  311.     hide
  312.   end
  313.   
  314.   #--------------------------------------------------------------------------
  315.   # add_line
  316.   #--------------------------------------------------------------------------
  317.   def add_line(text)
  318.     return if text == "-" && @data[@data.size - 1] == "-"
  319.     @data.push(text)
  320.   end
  321.   
  322.   #--------------------------------------------------------------------------
  323.   # refresh
  324.   #--------------------------------------------------------------------------
  325.   def refresh
  326.     create_contents
  327.     draw_all_items
  328.   end
  329.   
  330.   #--------------------------------------------------------------------------
  331.   # item_max
  332.   #--------------------------------------------------------------------------
  333.   def item_max; return @data.size; end
  334.   
  335.   #--------------------------------------------------------------------------
  336.   # draw_item
  337.   #--------------------------------------------------------------------------
  338.   def draw_item(index)
  339.     text = @data[index]
  340.     return if text.nil?
  341.     rect = item_rect_for_text(index)
  342.     if text == "-"
  343.       draw_horz_line(rect.y)
  344.     else
  345.       draw_text_ex(rect.x, rect.y, text)
  346.     end
  347.   end
  348.   
  349.   #--------------------------------------------------------------------------
  350.   # draw_horz_line
  351.   #--------------------------------------------------------------------------
  352.   def draw_horz_line(y)
  353.     line_y = y + line_height / 2 - 1
  354.     contents.fill_rect(4, line_y, contents_width-8, 2, line_colour)
  355.   end
  356.   
  357.   #--------------------------------------------------------------------------
  358.   # line_colour
  359.   #--------------------------------------------------------------------------
  360.   def line_colour
  361.     colour = text_color(YEA::COMBAT_LOG::LINE_COLOUR)
  362.     colour.alpha = YEA::COMBAT_LOG::LINE_COLOUR_ALPHA
  363.     return colour
  364.   end
  365.   
  366.   #--------------------------------------------------------------------------
  367.   # show
  368.   #--------------------------------------------------------------------------
  369.   def show
  370.     super
  371.     refresh
  372.     activate
  373.     select([item_max-1, 0].max)
  374.   end
  375.   
  376.   #--------------------------------------------------------------------------
  377.   # hide
  378.   #--------------------------------------------------------------------------
  379.   def hide
  380.     deactivate
  381.     super
  382.   end
  383.   
  384. end # Window_CombatLog

  385. #==============================================================================
  386. # ■ Window_PartyCommand
  387. #==============================================================================

  388. class Window_PartyCommand < Window_Command
  389.   
  390.   #--------------------------------------------------------------------------
  391.   # alias method: make_command_list
  392.   #--------------------------------------------------------------------------
  393.   alias window_partycommand_make_command_list_cld make_command_list
  394.   def make_command_list
  395.     window_partycommand_make_command_list_cld
  396.     return if $imported["YEA-BattleCommandList"]
  397.     add_command(YEA::COMBAT_LOG::COMMAND_NAME, :combatlog)
  398.   end
  399.   
  400. end # Window_PartyCommand

  401. #==============================================================================
  402. # ■ Scene_Battle
  403. #==============================================================================

  404. class Scene_Battle < Scene_Base
  405.   
  406.   #--------------------------------------------------------------------------
  407.   # alias method: create_log_window
  408.   #--------------------------------------------------------------------------
  409.   alias scene_battle_create_log_window_cld create_log_window
  410.   def create_log_window
  411.     scene_battle_create_log_window_cld
  412.     create_combatlog_window
  413.   end
  414.   
  415.   #--------------------------------------------------------------------------
  416.   # new method: create_combatlog_window
  417.   #--------------------------------------------------------------------------
  418.   def create_combatlog_window
  419.     @combatlog_window = Window_CombatLog.new
  420.     @log_window.combatlog_window = @combatlog_window
  421.     @combatlog_window.set_handler(:cancel, method(:close_combatlog))
  422.     @combatlog_window.add_line("-")
  423.     @combatlog_window.add_line(YEA::COMBAT_LOG::TEXT_BATTLE_START)
  424.     @combatlog_window.add_line("-")
  425.   end
  426.   
  427.   #--------------------------------------------------------------------------
  428.   # new method: open_combatlog
  429.   #--------------------------------------------------------------------------
  430.   def open_combatlog
  431.     @combatlog_window.show
  432.   end
  433.   
  434.   #--------------------------------------------------------------------------
  435.   # new method: close_combatlog
  436.   #--------------------------------------------------------------------------
  437.   def close_combatlog
  438.     @combatlog_window.hide
  439.     if $imported["YEA-BattleCommandList"]
  440.       if !@confirm_command_window.nil? && @confirm_command_window.visible
  441.         @confirm_command_window.activate
  442.       else
  443.         @party_command_window.activate
  444.       end
  445.     else
  446.       @party_command_window.activate
  447.     end
  448.   end
  449.   
  450.   #--------------------------------------------------------------------------
  451.   # alias method: create_party_command_window
  452.   #--------------------------------------------------------------------------
  453.   alias create_party_command_window_cld create_party_command_window
  454.   def create_party_command_window
  455.     create_party_command_window_cld
  456.     @party_command_window.set_handler(:combatlog, method(:open_combatlog))
  457.   end
  458.   
  459.   #--------------------------------------------------------------------------
  460.   # alias method: turn_start
  461.   #--------------------------------------------------------------------------
  462.   alias scene_battle_turn_start_cld turn_start
  463.   def turn_start
  464.     scene_battle_turn_start_cld
  465.     @combatlog_window.add_line("-")
  466.     text = sprintf(YEA::COMBAT_LOG::TEXT_TURN_NUMBER, $game_troop.turn_count)
  467.     @combatlog_window.add_line(text)
  468.     @combatlog_window.add_line("-")
  469.   end
  470.   
  471.   #--------------------------------------------------------------------------
  472.   # alias method: execute_action
  473.   #--------------------------------------------------------------------------
  474.   alias scene_battle_execute_action_cld execute_action
  475.   def execute_action
  476.     @combatlog_window.add_line("-")
  477.     scene_battle_execute_action_cld
  478.     @combatlog_window.add_line("-")
  479.   end
  480.   
  481.   #--------------------------------------------------------------------------
  482.   # alias method: turn_end
  483.   #--------------------------------------------------------------------------
  484.   alias scene_battle_turn_end_cld turn_end
  485.   def turn_end
  486.     scene_battle_turn_end_cld
  487.     @combatlog_window.add_line("-")
  488.   end
  489.   
  490. end # Scene_Battle

  491. #==============================================================================
  492. #
  493. # ▼ End of File
  494. #
  495. #==============================================================================
复制代码

评分

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

查看全部评分

回复 支持 反对

使用道具 举报

david_ng223 该用户已被删除
8
 楼主| 发表于 2014-5-30 22:49:14 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
回复 支持 反对

使用道具 举报

Lv2.观梦者 (暗夜天使)

卑微的梦

梦石
0
星屑
519
在线时间
820 小时
注册时间
2013-2-23
帖子
1185

短篇九勇士组季军

9
发表于 2014-5-30 23:45:15 | 只看该作者
david_ng223 发表于 2014-5-30 22:49
謝謝您的幫忙,請@taroxd 結帖,
方便的話,能否告訴我,您是在那裡找到腳本的??  ...

https://github.com/Archeia/YEARepo

点评

已经加了你了~  发表于 2014-5-31 13:06
qq:2895897749,剛申請的,要怎樣用??  发表于 2014-5-31 00:14
回复 支持 反对

使用道具 举报

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

本版积分规则

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

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

GMT+8, 2025-2-20 16:38

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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