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

Project1

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

[已经解决] 求技能介绍脚本。。。

[复制链接]

Lv5.捕梦者

梦石
0
星屑
32150
在线时间
5084 小时
注册时间
2012-11-19
帖子
4877

开拓者

1
发表于 2014-10-27 19:42:47 | 显示全部楼层
怎么没人回答
  1. #==============================================================================
  2. class Window_Skill < Window_Selectable
  3.   #--------------------------------------------------------------------------
  4.   def update_help
  5.     @help_window.set_skill(@actor, skill)
  6.   end
  7. end
  8. #==============================================================================
  9. class Window_Help < Window_Base
  10.   #--------------------------------------------------------------------------
  11.   def set_skill(actor, skill)
  12.     self.contents.clear
  13.     return if skill.nil? or actor.nil?
  14.     x = 0; cx = contents.text_size("对敌人照成80%力量(").width
  15.     self.contents.font.color = normal_color
  16.     self.contents.draw_text(x, 0, cx, 32, "对敌人照成80%力量(")
  17.     txt = (actor.str * 80 / 100).to_s; x += cx
  18.     cx = contents.text_size(txt).width
  19.     self.contents.font.color = Color.new(255, 128, 255)
  20.     self.contents.draw_text(x, 0, cx, 32, txt)
  21.     x += cx
  22.     cx = contents.text_size(")+80%智力(").width
  23.     self.contents.font.color = normal_color
  24.     self.contents.draw_text(x, 0, cx, 32, ")+80%智力(")
  25.     txt = (actor.int * 80 / 100).to_s; x += cx
  26.     cx = contents.text_size(txt).width
  27.     self.contents.font.color = Color.new(255, 0, 0)
  28.     self.contents.draw_text(x, 0, cx, 32, txt)
  29.     x += cx
  30.     cx = contents.text_size(")+100%攻击力(").width
  31.     self.contents.font.color = normal_color
  32.     self.contents.draw_text(x, 0, cx, 32, ")+100%攻击力(")
  33.     x += cx
  34.     cx = contents.text_size(actor.atk.to_s).width
  35.     self.contents.font.color = Color.new(0, 0, 0)
  36.     self.contents.draw_text(x, 0, cx, 32, actor.atk.to_s)
  37.     x += cx
  38.     self.contents.font.color = normal_color
  39.     self.contents.draw_text(x, 0, 64, 32, ")。")
  40.   end
  41. end
  42. #=============================================================================
复制代码

点评

↓ 事实证明,我像是收“尾”的人么?看看俺的“尾”就知道咯。  发表于 2014-10-27 23:46
因为在等你收V(雾)  发表于 2014-10-27 23:08
xp vx va mv  va mz 各类型脚本/插件定制
回复

使用道具 举报

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

本版积分规则

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

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

GMT+8, 2024-5-25 20:45

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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