找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 2050|回复: 0

通过RGSS脚本如何增强9级强度下天气的效果?

[复制链接]
发表于 2009-9-27 19:15:22 | 显示全部楼层 |阅读模式
系统默认的脚本里面Game_Screen是控制天气的类,我认为下面一段说是设置天候的。

def weather(type, power, duration)
    @weather_type_target = type
    if @weather_type_target != 0
      @weather_type = @weather_type_target
    end
    if @weather_type_target == 0
      @weather_max_target = 0.0
    else
!!    @weather_max_target = (power + 1) * 4.0  !!
    end
    @weather_duration = duration
    if @weather_duration == 0
      @weather_type = @weather_type_target
      @weather_max = @weather_max_target
    end
  end

请问@weather_max_target = (power + 1) * 4.0这句是干什么的?我以为是控制强度的,所以把后面的4.0改成了10000000000.0,以为强度为9时天气的效果会更浓,但是不是这样的。因此想请教一下这一句是干什么的?谢谢。
  或者说怎么修改能让9级强度的天气变得很浓?
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|幻想森林

GMT+8, 2026-12-5 07:26 , Processed in 0.014263 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表