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

Project1

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

有没有战中斗以文字表达伤害的脚本?

 关闭 [复制链接]
头像被屏蔽

Lv1.梦旅人 (禁止发言)

梦石
0
星屑
50
在线时间
0 小时
注册时间
2007-12-31
帖子
15
跳转到指定楼层
1
发表于 2008-1-5 23:33:47 | 只看该作者 回帖奖励 |正序浏览 |阅读模式
提示: 作者被禁止或删除 内容自动屏蔽

Lv1.梦旅人

很傻很天真

梦石
0
星屑
55
在线时间
3 小时
注册时间
2007-3-13
帖子
3667
7
发表于 2008-1-6 01:26:18 | 只看该作者
试试这个
工程:http://rpg.blue/upload_program/files/仿网游即时消息_79982263.rar

这个有  楼主你要的功能
系统信息:本贴由楼主认可为正确答案,66RPG感谢您的热情解答~
回复 支持 反对

使用道具 举报

头像被屏蔽

Lv1.梦旅人 (禁止发言)

梦石
0
星屑
50
在线时间
0 小时
注册时间
2007-12-31
帖子
15
6
 楼主| 发表于 2008-1-6 00:57:58 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
回复 支持 反对

使用道具 举报

Lv1.梦旅人

风之塞尔达

梦石
0
星屑
50
在线时间
57 小时
注册时间
2005-10-22
帖子
2492

贵宾

5
发表于 2008-1-6 00:30:43 | 只看该作者
楼主去载一个RMVX测试版吧
在程序里延续塞尔达的传说, 在画板上勾勒塞尔达的轮廓!!
回复 支持 反对

使用道具 举报

头像被屏蔽

Lv1.梦旅人 (禁止发言)

蛇蝎腐女

梦石
0
星屑
50
在线时间
0 小时
注册时间
2007-8-30
帖子
657
4
发表于 2008-1-5 23:40:24 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
签名被屏蔽
回复 支持 反对

使用道具 举报

Lv1.梦旅人

忘记

梦石
0
星屑
55
在线时间
4 小时
注册时间
2007-12-15
帖子
3062
3
发表于 2008-1-5 23:38:31 | 只看该作者
更改伤害的文字和颜色
LZ是不是要这个脚本?
#==============================================================================
# 本脚本来自www.66RPG.com,使用和转载请保留此信息
#==============================================================================

# --------------------------------------------------------------------

# 本脚本来自www.66rpg.com,转载自www.phylomortis.com,转载请保留此信息
# --------------------------------------------------------------------

=begin

原文说明:
  This script allows you change the damage display font and color.
To use this script, create a new script page in the script editor and
copy the code below onto that page.

  Next, replace "fontname" in red with the the font you want to use.
Replace "fontsize" with the size of your font.

  Then, replace the first set of "red", "green", and "blue" values with
an RGB value for the color you want for healing, and the second set with
the color you want for damage.

  Note that only TTF, non-wingdings fonts are supported. This script is
also easily extended so that you can show MP damage and recovery in a different
color, but this is your responsibility to learn, so don't bug me about it.

66RPG说明:

    这里并不是一个简单的傻瓜型脚本。如果你只是将它插入到main的前面,则只是把
"CRITICAL"改为了"超重击"。这个脚本的功能绝非如此简单,你可以设置不同伤害的字
体颜色或文字表述,就像黑暗圣剑传说那样,有一些攻击显示的并不是数字,而是“损
失金钱”,“剑灵恢复”一类的东西。bitmap.font.color.set(R,G,B)是设置字体RGB
颜色的,其他的效果(如显示SP的伤害,用不同颜色来恢复)如果需要用,看懂脚本并修
改它——这是你的责任与义务,也是你的荣誉。尽管我对这个脚本了如指掌,但我不会
去做相关回答的,这会剥夺很多人自主学习的权利。

=end


module RPG
  class Sprite < ::Sprite
    def damage(value, critical)
      dispose_damage
      if value.is_a?(Numeric)
        damage_string = value.abs.to_s
      else
        damage_string = value.to_s
      end
      bitmap = Bitmap.new(160, 48)
      bitmap.font.name = "黑体"
      bitmap.font.size = 18
      bitmap.font.color.set(0, 0, 0)
      bitmap.draw_text(-1, 12-1, 160, 36, damage_string, 1)
      bitmap.draw_text(+1, 12-1, 160, 36, damage_string, 1)
      bitmap.draw_text(-1, 12+1, 160, 36, damage_string, 1)
      bitmap.draw_text(+1, 12+1, 160, 36, damage_string, 1)
      if value.is_a?(Numeric) and value < 0
        bitmap.font.color.set(255, 255, 255)
      else
        bitmap.font.color.set(255, 0, 0)
      end
      bitmap.draw_text(0, 12, 160, 36, damage_string, 1)
      if critical
        bitmap.font.size = 20
        bitmap.font.color.set(0, 0, 0)
        bitmap.draw_text(-1, -1, 160, 20, "超重击", 1)
        bitmap.draw_text(+1, -1, 160, 20, "超重击", 1)
        bitmap.draw_text(-1, +1, 160, 20, "超重击", 1)
        bitmap.draw_text(+1, +1, 160, 20, "超重击", 1)
        bitmap.font.color.set(255, 255, 255)
        bitmap.draw_text(0, 0, 160, 20, "超重击", 1)
      end
      @_damage_sprite = ::Sprite.new(self.viewport)
      @_damage_sprite.bitmap = bitmap
      @_damage_sprite.ox = 80
      @_damage_sprite.oy = 20
      @_damage_sprite.x = self.x
      @_damage_sprite.y = self.y - self.oy / 2
      @_damage_sprite.z = 3000
      @_damage_duration = 40
    end
  end
end


#==============================================================================
# 本脚本来自www.66RPG.com,使用和转载请保留此信息
#==============================================================================
因为你哭泣的时候有我想你你被人嘲笑时有我陪你在你感觉最无助的那一刻有个声音鼓励
<font color=#8600E9>忘记</font>
回复 支持 反对

使用道具 举报

头像被屏蔽

Lv1.梦旅人 (禁止发言)

梦石
0
星屑
50
在线时间
0 小时
注册时间
2007-12-31
帖子
15
2
 楼主| 发表于 2008-1-5 23:33:47 | 只看该作者 回帖奖励 |正序浏览 |阅读模式
提示: 作者被禁止或删除 内容自动屏蔽
您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

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

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

GMT+8, 2026-6-19 00:49

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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