加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
本帖最后由 j296196585 于 2016-10-18 06:46 编辑
请问这个脚本如何使用
case $game_variables[4002+@actor.id] 用于不同人物显示不同数据 然而我不会
self.contents.font.color = Color.new(255, 000, 000, 255) self.contents.draw_text(0, 20, 120, 32, "国家:") self.contents.font.color = normal_color case $game_variables[4002+@actor.id] when 0 self.contents.draw_text(50, 20, 84, 32, "暂无",2)#限7个字 when 1 self.contents.draw_text(50, 20, 84, 32, "中国",2) when 2 self.contents.draw_text(50, 20, 84, 32, "美国",2) when 3 self.contents.draw_text(50, 20, 84, 32, "英国",2) when 4 self.contents.draw_text(50, 20, 84, 32, "法国",2) when 5 self.contents.draw_text(50, 20, 84, 32, "南非",2) end
self.contents.font.color = Color.new(255, 000, 000, 255)
self.contents.draw_text(0, 20, 120, 32, "国家:")
self.contents.font.color = normal_color
case $game_variables[4002+@actor.id]
when 0
self.contents.draw_text(50, 20, 84, 32, "暂无",2)#限7个字
when 1
self.contents.draw_text(50, 20, 84, 32, "中国",2)
when 2
self.contents.draw_text(50, 20, 84, 32, "美国",2)
when 3
self.contents.draw_text(50, 20, 84, 32, "英国",2)
when 4
self.contents.draw_text(50, 20, 84, 32, "法国",2)
when 5
self.contents.draw_text(50, 20, 84, 32, "南非",2)
end
|