| 赞 | 0 |
| VIP | |
| 好人卡 | |
| 积分 | 1 |
| 经验 | |
| 最后登录 | 2020-2-15 |
| 在线时间 | 22 小时 |
- 梦石
- 0
- 星屑
- 55
- 在线时间
- 22 小时
- 注册时间
- 2006-4-22
- 回帖
- 314
|
发表于 2008-7-23 09:37:40
|
显示全部楼层
先在脚本的def initialize下插入@max_level=0,然后在脚本的self.contents.clear这句下加上这些语句
#==============================================
for actor in $game_party.actors
if @max_level < actor.level
@max_level = actor.level
end
end
case @max_level - $game_variables[3]
when -4..-1
self.contents.font.color = Color.new(255,255,255,50)
when 2
self.contents.font.color = Color.new(255,0,0)
when 4
self.contents.font.color = Color.new(0,255,0)
end
#===================================================
case语句下的那些是差距范围,楼主自行设置.......顺便注释掉原来那句设置字体颜色的... 系统信息:本贴由楼主认可为正确答案,66RPG感谢您的热情解答~ |
|