本帖最后由 Niko_ 于 2019-3-23 00:41 编辑 VA图书馆那个双向技能只是“将两个技能合到一个格子里”。我想要的脚本是“两个技能同时生效”(如:“以血还血”能对敌人造成大量伤害,对自己造成少量伤害。) 而 ...
#==============================================================================# ★ RGSS3_使用者効果 Ver1.01#===============================================================================begin 作者:tomoakywebサイト:ひきも記は閉鎖しました。 ([url]http://hikimoki.sakura.ne.jp/[/url]) スキルやアイテムに、対象への効果とは別に使用者への効果を追加できます スキル(アイテム)のメモ欄に <使用者効果 2> と書くことで指定した番号のスキル効果が使用者に適用されます 2015/09/17 Ver1.01・敵が逃げるとエラー落ちする不具合を修正 2013/06/18 Ver1.0公開 =end #==============================================================================# ■ Scene_Battle#==============================================================================class Scene_Battle < Scene_Base #-------------------------------------------------------------------------- # ● スキル/アイテムの使用 #-------------------------------------------------------------------------- alias tmusereff_scene_battle_use_item use_item def use_item tmusereff_scene_battle_use_item return unless @subject.current_action item = @subject.current_action.item if item.is_a?(RPG::UsableItem) && /<使用者効果\s*(\d+)\s*>/ =~ item.note reaction_skill = $data_skills[$1.to_i] @subject.item_apply(@subject, reaction_skill) refresh_status @log_window.display_action_results(@subject, reaction_skill) end endend
#============================================================================== # ★ RGSS3_使用者効果 Ver1.01 #============================================================================== =begin 作者:tomoaky webサイト:ひきも記は閉鎖しました。 ([url]http://hikimoki.sakura.ne.jp/[/url]) スキルやアイテムに、対象への効果とは別に使用者への効果を追加できます スキル(アイテム)のメモ欄に <使用者効果 2> と書くことで 指定した番号のスキル効果が使用者に適用されます 2015/09/17 Ver1.01 ・敵が逃げるとエラー落ちする不具合を修正 2013/06/18 Ver1.0 公開 =end #============================================================================== # ■ Scene_Battle #============================================================================== class Scene_Battle < Scene_Base #-------------------------------------------------------------------------- # ● スキル/アイテムの使用 #-------------------------------------------------------------------------- alias tmusereff_scene_battle_use_item use_item def use_item tmusereff_scene_battle_use_item return unless @subject.current_action item = @subject.current_action.item if item.is_a?(RPG::UsableItem) && /<使用者効果\s*(\d+)\s*>/ =~ item.note reaction_skill = $data_skills[$1.to_i] @subject.item_apply(@subject, reaction_skill) refresh_status @log_window.display_action_results(@subject, reaction_skill) end end end
折叠内容标题(非必须)
折叠内容
站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作
GMT+8, 2024-5-4 05:00
Powered by Discuz! X3.1
© 2001-2013 Comsenz Inc.