设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
查看: 1910|回复: 1
打印 上一主题 下一主题

[已经过期] 谁能给我发个RMVX变速的脚本跟地图名显示脚本在线等!

 关闭 [复制链接]

Lv1.梦旅人

梦石
0
星屑
50
在线时间
22 小时
注册时间
2011-4-22
帖子
20
跳转到指定楼层
1
发表于 2011-4-23 00:44:20 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

Lv1.梦旅人

梦石
0
星屑
60
在线时间
123 小时
注册时间
2010-6-17
帖子
23
2
发表于 2011-4-23 21:12:16 | 只看该作者
  1. #==============================================================================
  2. # [VX] Extra Move Speed by Woratana
  3. #------------------------------------------------------------------------------
  4. # Version: 1.0
  5. # Released on: 11/02/2008
  6. # by Woratana [[email protected]]

  7. # You can edit event's speed and/or frequency to be more than limit,
  8. # by put event command "Comment" in the event page you want to edit.
  9. # (Yes, you can set the different speed for different page in one event)

  10. # Add comment like this:
  11. # [speed(speed you want)][freq(frequncy you want)]
  12. # e.g. [speed8][freq4]
  13. # You can edit only speed by put [speed(speed you want)]
  14. # and edit only frequency by put [freq(frequency you want)]

  15. # You can increase character's Speed and/or Frequency by call script:
  16. # (character).add_speed(speed_plus,frequency_plus)

  17. # To decrease Speed and/or Frequency, you can just put negative number in it:
  18. # e.g. $game_player.add_speed(-1.5)

  19. # To change character's Speed to any number you want:
  20. # (character).fix_speed(speed you want)

  21. # To change character's Frequency to any number you want:
  22. # (character).fix_frequency(frequency you want)

  23. # Frequency shouldn't be more than 5 or 6, but there is no limit for Speed.
  24. # You can use decimal place for speed/frequency,
  25. # To change player's frequency, it will make no diffrent.
  26. # It will make different in speed even though the speed is just 0.5 more.
  27. #==============================================================================

  28. class Game_Character
  29.   attr_accessor :move_speed, :move_frequency
  30.   
  31.   def add_speed(spd = 0,freq = 0)
  32.     @move_speed += spd
  33.     @move_frequency += freq
  34.   end
  35.   
  36.   def fix_speed(spd = 0)
  37.     @move_speed = spd
  38.   end
  39.   
  40.   def fix_freq(freq = 0)
  41.     @move_frequency = freq
  42.   end
  43.   
  44. end

  45. class Game_Event < Game_Character
  46.   attr_accessor :event
  47.   alias wor_event_setup setup
  48.   
  49. def setup(new_page)
  50.     wor_event_setup(new_page)
  51.   for i in [email protected]
  52.     next if @list[i].code != 108
  53.     if @list[i].parameters[0].include?("[speed")
  54.       list = @list[i].parameters[0].scan(/\[speed([0.0-9.9]+)\]/)
  55.       @move_speed = $1.to_i
  56.     end
  57.     if @list[i].parameters[0].include?("[freq")
  58.       list = @list[i].parameters[0].scan(/\[freq([0.0-9.9]+)\]/)
  59.       @move_frequency = $1.to_i
  60.     end
  61.   end
  62. end
  63. end
复制代码
具体的用法,就是脚本:  $game_player.add_speed(1)   加速一倍
                        $game_player.add_speed(-1)  减速一倍
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2024-9-27 10:25

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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