Project1

标题: 如何释放一个技能实现两个技能 [打印本页]

作者: 高天之歌    时间: 2022-7-7 20:57
标题: 如何释放一个技能实现两个技能
假设有
技能<鼓舞>:使己方全体物攻上升
技能<恢复>:使己方全体恢复100HP
怎么做到在只释放技能<鼓舞>的前提下,同时实现技能<鼓舞><恢复>效果
作者: alexncf125    时间: 2022-7-7 21:35
https://himeworks.com/2014/03/skill-links/


欢迎加入群聊【RPG Maker 学习交流】:https://jq.qq.com/?_wv=1027&k=VUEWdwLl
作者: ACRI    时间: 2022-7-8 01:51
一次性放两个技能吗???
作者: WLian    时间: 2022-7-11 01:35
技能A的使用效果里,加上使用技能B的公共事件?
作者: ACRI    时间: 2022-7-11 22:07
  1. #==============================================================================
  2. # ★ RGSS3_使用者効果 Ver1.01
  3. #==============================================================================
  4. =begin

  5. 作者:tomoaky
  6. webサイト:ひきも記は閉鎖しました。 (http://hikimoki.sakura.ne.jp/)

  7. スキルやアイテムに、対象への効果とは別に使用者への効果を追加できます

  8. スキル(アイテム)のメモ欄に <使用者効果 2> と書くことで
  9. (人话就是在技能里写备注ID,就能无显示使用其他技能)

  10. 2015/09/17  Ver1.01
  11. ・敵が逃げるとエラー落ちする不具合を修正

  12. 2013/06/18  Ver1.0
  13. 公開

  14. =end

  15. #==============================================================================
  16. # ■ Scene_Battle
  17. #==============================================================================
  18. class Scene_Battle < Scene_Base
  19.   #--------------------------------------------------------------------------
  20.   # ● スキル/アイテムの使用
  21.   #--------------------------------------------------------------------------
  22.   alias tmusereff_scene_battle_use_item use_item
  23.   def use_item
  24.     tmusereff_scene_battle_use_item
  25.     return unless @subject.current_action
  26.     item = @subject.current_action.item
  27.     if item.is_a?(RPG::UsableItem) && /<使用者効果\s*(\d+)\s*>/ =~ item.note
  28.       reaction_skill = $data_skills[$1.to_i]
  29.       @subject.item_apply(@subject, reaction_skill)
  30.       refresh_status
  31.       @log_window.display_action_results(@subject, reaction_skill)
  32.     end
  33.   end
  34. end

复制代码

经过大概的测试,大抵就是我写的注释的效果(日文机翻后还是搞不懂),应该符合你的要求,一次性两个效果




欢迎光临 Project1 (https://rpg.blue/) Powered by Discuz! X3.1