| 赞 | 2 |
| VIP | 19 |
| 好人卡 | 10 |
| 积分 | 3 |
| 经验 | 57661 |
| 最后登录 | 2019-5-20 |
| 在线时间 | 574 小时 |
Lv2.观梦者
- 梦石
- 0
- 星屑
- 253
- 在线时间
- 574 小时
- 注册时间
- 2006-8-25
- 帖子
- 969
|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
在头像显示中我加入了 if $1 == 1
$1 = $data_actors[387].name
当$1等于1时
就$1变为387号人物的名字.但$1 = $data_actors[387].name这一段显示错误
还有就是"$"这个符号什么意思?在RPG帮助里找不到...
#——头像设置
if (/\\[Ff]\[(.+?)\]/.match(@now_text))!=nil then
@face_file = $1 + ".png"
@x = @face_indent = 128
if $1 == 1
$1 = $data_actors[387].name
end
if FileTest.exist?("Graphics/Pictures/" + $1 + ".png")
self.contents.blt(16, 16, RPG::Cache.picture(@face_file), Rect.new(0, 0, 120, 120))
end
@now_text.gsub!(/\\[Ff]\[(.*?)\]/) { "" }
end |
|