Project1
标题:
物品颜色脚本和66官方整合版不能一起用~
[打印本页]
作者:
土萌萤
时间:
2009-9-24 17:08
提示:
作者被禁止或删除 内容自动屏蔽
作者:
cinderelmini
时间:
2009-9-24 19:42
本帖最后由 cinderelmini 于 2009-9-25 19:39 编辑
把 item.name_color_66RPG或skill.name_color_66RPG 改为
item_name_color_66RPG或skill_name_color_66RPG
然后在脚本里的:
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
第一个end前加上:
def item_name_color_66RPG 或def skill_name_color_66RPG
return color.new(255, 255, 255)
或
return color.new(255, 255, 255)
end
就O了嘛。。。
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1