Project1

标题: 如何才能使特技值像魔法一样 [打印本页]

作者: 千夙    时间: 2014-8-3 16:46
标题: 如何才能使特技值像魔法一样
特技值怎么像魔法值一样?为什么特技值要攻击才有?怎么改成像魔法值一样?我也不懂怎么说清楚这什么。。。
反正就是想让特技值像魔法值那样。。
怎么好像个个角色都会有显示特技值,怎样才能让职业添加有特技的才会显示特技值?
作者: funxlww    时间: 2014-8-3 16:47
我看不懂你在说什么
作者: taroxd    时间: 2014-8-3 16:48
本帖最后由 taroxd 于 2014-8-3 16:58 编辑

RUBY 代码复制
  1. class Game_Battler
  2.   def charge_tp_by_damage(_)
  3.   end
  4.  
  5.   def recover_all
  6.     super
  7.     @tp = max_tp
  8.   end
  9. end


再给每个角色都加上“特技专注”

还有什么和魔法不一样的地方么

怎样才能让职业添加有特技的才会显示特技值?

RUBY 代码复制
  1. class Window_BattleStatus
  2.   def draw_gauge_area(rect, actor)
  3.     # 只有1,3,4号职业显示TP
  4.     if $data_system.opt_display_tp && [1,3,4].include?(actor.class_id)
  5.       draw_gauge_area_with_tp(rect, actor)
  6.     else
  7.       draw_gauge_area_without_tp(rect, actor)
  8.     end
  9.   end
  10. end


以上脚本均未测试
作者: 3106345123    时间: 2014-8-3 17:01
一开始特技值就回满?有
https://rpg.blue/forum.php?mod=r ... 388&pid=2442878
还有其他附带功能




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