| 
 
| 赞 | 0 |  
| VIP | 10 |  
| 好人卡 | 4 |  
| 积分 | 1 |  
| 经验 | 14260 |  
| 最后登录 | 2018-4-10 |  
| 在线时间 | 93 小时 |  
 Lv1.梦旅人 彩虹天使
 
	梦石0 星屑55 在线时间93 小时注册时间2012-10-2帖子113 | 
| 這是物品顏色腳本 使用方法,插入main腳本之前。
 在物品、武器、防具那+@和數字(0~31)
 复制代码module RPG
  class Skill
    def description
      description = @description.split(/@/)[0]
      return description != nil ? description : ''
    end
    def name_color_66RPG
      name_color = @description.split(/@/)[1]
      return name_color != nil ? name_color.to_i : 0
    end
  end
  class Weapon
    def description
      description = @description.split(/@/)[0]
      return description != nil ? description : ''
    end
    def name_color_66RPG
      name_color = @description.split(/@/)[1]
      return name_color != nil ? name_color.to_i : 0
    end
  end
  class Item
    def description
      description = @description.split(/@/)[0]
      return description != nil ? description : ''
    end
    def name_color_66RPG
      name_color = @description.split(/@/)[1]
      return name_color != nil ? name_color.to_i : 0
    end
  end
  class Armor
    def description
      description = @description.split(/@/)[0]
      return description != nil ? description : ''
    end
    def name_color_66RPG
      name_color = @description.split(/@/)[1]
      return name != nil ? name_color.to_i : 0
    end
  end
end
class Window_Base < Window
  def disabled_color
    return Color.new(255, 255, 255, 128)
  end
  def draw_item_name(item, x, y, enabled = true)
    if item != nil
      draw_icon(item.icon_index, x, y, enabled)
      self.contents.font.color = text_color(item.name_color_66RPG)
      self.contents.font.color.alpha = enabled ? 255 : 128
      self.contents.draw_text(x + 24, y, 172, WLH, item.name)
    end
  end
end
  | 
 评分
查看全部评分
 |