赞 | 0 |
VIP | 104 |
好人卡 | 0 |
积分 | 1 |
经验 | 16939 |
最后登录 | 2023-4-27 |
在线时间 | 1387 小时 |
Lv1.梦旅人 追从自然的旅行者 奇特空·煦
- 梦石
- 0
- 星屑
- 107
- 在线时间
- 1387 小时
- 注册时间
- 2010-12-31
- 帖子
- 4944
 
|
神秘影子 发表于 2012-1-31 16:09 ![]()
哦 问题是我不知道这段怎么变成脚本...... - #--------------------------------------------------------------------------
- # ● 指令 : 设定角色初始位置 (新定义的)
- #--------------------------------------------------------------------------
- def set_start_position(map_id,x,y)
- $game_map.setup(map_id)
- $game_player.moveto(x, y)
- end
- #--------------------------------------------------------------------------
- # ● 指令 : 新游戏
- #--------------------------------------------------------------------------
- def command_new_game
- confirm_player_location
- Sound.play_decision
- $game_party.setup_starting_members # 初期同伴
- #=======
- map_id = $data_system.start_map_id
- x = $data_system.start_x
- y = $data_system.start_y
- set_start_position(map_id,x,y) #这里分开写更清楚
- #=======
- $game_player.refresh
- $scene = Scene_Map.new
- RPG::BGM.fade(1500)
- close_command_window
- Graphics.fadeout(60)
- Graphics.wait(40)
- Graphics.frame_count = 0
- RPG::BGM.stop
- $game_map.autoplay
- end
复制代码 set_start_position(map_id,x,y) 这个就是新定义的方法
下面那个则是把原来的脚本替换掉的(用#===括起来的)
怎么用你应该知道 |
|