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

Project1

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

真·对话加强脚本出错有人知道什么问题吗?

 关闭 [复制链接]

Lv2.观梦者

梦石
0
星屑
253
在线时间
574 小时
注册时间
2006-8-25
帖子
969
跳转到指定楼层
1
发表于 2007-8-21 18:53:10 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有帐号?注册会员

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

Lv2.观梦者

梦石
0
星屑
253
在线时间
574 小时
注册时间
2006-8-25
帖子
969
2
 楼主| 发表于 2007-8-21 18:53:10 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有帐号?注册会员

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

Lv3.寻梦者 (暗夜天使)

精灵族の天使

梦石
0
星屑
1712
在线时间
3039 小时
注册时间
2007-3-16
帖子
33731

开拓者贵宾

3
发表于 2007-8-21 19:00:33 | 只看该作者
我建议把$后面的名字设为字符,最好开头大写。否则容易出错。
回复 支持 反对

使用道具 举报

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

本版积分规则

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

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

GMT+8, 2026-6-25 13:43

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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