Project1

标题: 这个菜单系统中那个武器颜色怎么弄啊? [打印本页]

作者: cc2201323    时间: 2010-11-7 12:09
提示: 作者被禁止或删除 内容自动屏蔽
作者: 新坦克君    时间: 2010-11-7 12:54
本帖最后由 新坦克君 于 2010-11-7 12:54 编辑

对于不想为白色表示的物品,在描述中最后添加@6,@4一类的即可。

数字为颜色编号,和对话框中的一样。
[line]2[/line]


明明说的很清楚了

作者: cc2201323    时间: 2010-11-7 13:11
提示: 作者被禁止或删除 内容自动屏蔽
作者: cc2201323    时间: 2010-11-7 21:20
提示: 作者被禁止或删除 内容自动屏蔽
作者: 阿夏依岚    时间: 2010-11-8 19:19
本帖最后由 fux2 于 2010-11-14 21:45 编辑
cc2201323 发表于 2010-11-7 13:11
在这个菜单系统中用,有冲突,不知道改哪里?这个菜单里有物品分类,和能力限制,能力限制是@的,我把颜色 ...


我不知道你是怎么弄的,能力限制明明不需要@的……是物品分类对吧?
其脚本作者已经声明了”脚本冲突:

最大冲突为数据库物品颜色脚本,因为都是@,不过我觉得用了这个应该就不用那个了- -

如果需要两个整合联系我,这个因为作者都是我自己,收费不高。“
所以呢~~
不过也不是没办法的~~如果要修改的话~
  1. #==============================================================================
  2. # ■ RPG追加定义,使用@符号分类
  3. #==============================================================================

  4. module RPG
  5.   class Weapon
  6.     def description
  7.       description = @description.split(/@/)[0]
  8.       return description != nil ? description : ''
  9.     end
  10.     def desc
  11.       desc = @description.split(/@/)[1]
  12.       return desc != nil ? desc : "普通物品"
  13.     end
  14.   end
  15.   class Item
  16.     def description
  17.       description = @description.split(/@/)[0]
  18.       return description != nil ? description : ''
  19.     end
  20.     def desc
  21.       desc = @description.split(/@/)[1]
  22.       return desc != nil ? desc : "普通物品"
  23.     end
  24.   end
  25.   class Armor
  26.     def description
  27.       description = @description.split(/@/)[0]
  28.       return description != nil ? description : ''
  29.     end
  30.     def desc
  31.       desc = @description.split(/@/)[1]
  32.       return desc != nil ? desc : "普通物品"
  33.     end
  34.   end
  35. end

  36. #==============================================================================
  37. # 本脚本来自[url]www.66RPG.com[/url],使用和转载请保留此信息
  38. #==============================================================================
复制代码
这里改一下




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