幻想森林

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

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

[复制链接]

2

主题

2

帖子

25

积分

②入门

积分
25
发表于 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, 2024-5-6 03:07 , Processed in 0.015824 second(s), 20 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

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