幻想森林

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

[RM2K&2K3] 关于地形标志

[复制链接]

1

主题

1

帖子

14

积分

②入门

积分
14
发表于 2005-10-27 12:29:03 | 显示全部楼层 |阅读模式
1请问具体有什么用处?

2如果地形标志是1的话,是不是去脚本上改?

3例如主角走过雪地留下了脚印或有走路的声音,那是不是去脚本里改?如果是的话,该在哪里添加程序,该填什么程序?(例如加脚步声)





--------------------------------------
刚来论坛,潜水了很久但对rgss仍是一窍不通~请各位朋友指教!![p:4]
求学中,对脚本100个不懂中!
回复

使用道具 举报

5

主题

61

帖子

1285

积分

⑥精研

积分
1285
发表于 2005-10-31 07:05:08 | 显示全部楼层
  1. #==============================================================================
  2. # ■ chaochao的玩家移动音效(051031)
  3. # 修改了Game_Player
  4. # 功能:
  5. # 玩家移动时根据地形ID播放不同的音效
  6. #------------------------------------------------------------------------------
  7. # 作者:chaochao
  8. # [url]http://zhuchao.go1.icpcn.com[/url]
  9. #==============================================================================
  10. class Game_Player < Game_Character
  11.   def chaochao_seplay(seid)
  12.     #seid对应地形ID播放SE
  13.     case seid
  14.     when 0
  15.       Audio.se_play("Audio/SE/001-System01.ogg", 100, 100)
  16.     when 1
  17.       Audio.se_play("Audio/SE/002-System02.ogg", 100, 100)
  18.     when 2
  19.       Audio.se_play("Audio/SE/003-System03.ogg", 100, 100)
  20.     when 3
  21.       Audio.se_play("Audio/SE/004-System04.ogg", 100, 100)
  22.     when 4
  23.       Audio.se_play("Audio/SE/005-System05.ogg", 100, 100)
  24.     when 5
  25.       Audio.se_play("Audio/SE/006-System06.ogg", 100, 100)
  26.     when 6
  27.       Audio.se_play("Audio/SE/007-System07.ogg", 100, 100)
  28.     when 7
  29.       Audio.se_play("Audio/SE/008-System08.ogg", 100, 100)
  30.     end
  31.   end
  32.   def update
  33.     last_moving = moving?
  34.     unless moving? or $game_system.map_interpreter.running? or
  35.            @move_route_forcing or $game_temp.message_window_showing
  36.       case Input.dir4
  37.       when 2
  38.         move_down
  39.         chaochao_seplay($game_player.terrain_tag)
  40.       when 4
  41.         move_left
  42.         chaochao_seplay($game_player.terrain_tag)
  43.       when 6
  44.         move_right
  45.         chaochao_seplay($game_player.terrain_tag)
  46.       when 8
  47.         move_up
  48.         chaochao_seplay($game_player.terrain_tag)
  49.       end
  50.     end
  51.     last_real_x = @real_x
  52.     last_real_y = @real_y
  53.     super
  54.     if @real_y > last_real_y and @real_y - $game_map.display_y > CENTER_Y
  55.       $game_map.scroll_down(@real_y - last_real_y)
  56.     end
  57.     if @real_x < last_real_x and @real_x - $game_map.display_x < CENTER_X
  58.       $game_map.scroll_left(last_real_x - @real_x)
  59.     end
  60.     if @real_x > last_real_x and @real_x - $game_map.display_x > CENTER_X
  61.       $game_map.scroll_right(@real_x - last_real_x)
  62.     end
  63.     if @real_y < last_real_y and @real_y - $game_map.display_y < CENTER_Y
  64.       $game_map.scroll_up(last_real_y - @real_y)
  65.     end
  66.     unless moving?
  67.       if last_moving
  68.         result = check_event_trigger_here([1,2])
  69.         if result == false
  70.           unless $DEBUG and Input.press?(Input::CTRL)
  71.             if @encounter_count > 0
  72.               @encounter_count -= 1
  73.             end
  74.           end
  75.         end
  76.       end
  77.       if Input.trigger?(Input::C)
  78.         check_event_trigger_here([0])
  79.         check_event_trigger_there([0,1,2])
  80.       end
  81.     end
  82.   end
  83. end
复制代码
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2025-6-24 20:01 , Processed in 0.013593 second(s), 20 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

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