| 赞 | 4 |
| VIP | |
| 好人卡 | |
| 积分 | 12 |
| 经验 | |
| 最后登录 | 2026-3-27 |
| 在线时间 | 1795 小时 |
死亡颂唱者
- 梦石
- 0
- 星屑
- 1159
- 在线时间
- 1795 小时
- 注册时间
- 2011-10-21
- 回帖
- 2205

|
发表于 2013-6-24 18:35:17
|
显示全部楼层
本帖最后由 acn00269 于 2013-6-24 18:38 编辑
外站上找的...顺便小小的汉化了一下
- #变量
- $game_variables[n]
- #开关
- $game_switches[n]
- #条件分歧
- if #something
- #something
- else
- #something
- end
- #显示图片
- screen.pictures[index].show(file_name, upperleft/center, x, y, x zoom, y zoom, opacity, blend type)
- #移动图片
- screen.pictures[n].move(0/1 (top left or center), x, y, zoom1, zoom2, opacity, blend type (0,1, 2), wait)
- #更改图片色调
- screen.pictures[n].start_tone_change(Tone.new(0, 0, 0, 0), wait)
- #循环
- For
- #something
- end
- #设置移动路线
- move_route = RPG::MoveRoute.new
- move_route.repeat = false
- move_route.skippable = true
- m = RPG::MoveCommand.new
- m.code = 45
- m.parameters = ["script call here"]
- move_route.list.insert(0,m.clone)
- $game_player.force_move_route(move_route)
- #移动事件至新地点
- $game_map.events[id].moveto(new_x, new_y)
- #场所移动
- $game_player.reserve_transfer(map_id, x, y, direction)
- #更改画面色调
- t = Tone.new(red,green,blue, gray)
- screen.start_tone_change(t, duration)
- #震动画面
- @params = []
- @params[0] = power or $game_variables[x]
- @params[1] = speed or $game_variables[y]
- @params[2] = duration or $game_variables[z]
- #呼叫公共事件
- $game_temp.reserve_common_event(id)
- #BGM等音效的播放
- RPG::SE.new("SE Name", volume, pitch).play
- RPG::ME.new("ME Name", volume, pitch).play
- RPG::BGS.new("BGS Name", volume, pitch).play
- RPG::BGM.new("BGM Name", volume, pitch).play
- #显示文本
- $game_message.add("Text")
- #得失物品
- $game_party.gain_item($data_items[id], amount)
- $game_party.lose_item($data_items[id], amount)
- #(得失武器/防具使用$data_weapons或者$data_armors替换$data_items)
- #这个没懂...
- $game_player.followers.gather
- #设置人物跟随
- $game_player.followers.visible = true or false
- #删除事件
- $game_map.events[event_id].erase
- #某些条件分歧中按键设置
- Input.repeat?(:A)
- Input.press?(:A)
- #移动路线
- $game_player.dash?
- $game_player.jumping?
- $game_map.events[event_id].moving?
- $game_map.events[event_id].jumping?
- #更改位置
- $game_map.events[event_id].x
- $game_map.events[event_id].y
- $game_player.x
- $game_player.y
- #加入角色
- $game_party.remove_actor(actor_id)
- #角色离队
- $game_party.add_actor(actor_id)
- #删除角色
- #(x=角色在数据库中的位置 0为1号角色 1为2号角色 以此类推)
- m = $game_party.members
- $game_party.remove_actor(m[x].id)
- #这个没懂...
- $data_items.each { |i|
- next if i.nil? or i.name == ""
- $game_party.gain_item(i, 99)
- }
- #得失金钱
- $game_party.gain_gold(amount)
- $game_party.lose_gold(amount)
- #检查当前所有金钱
- $game_party.max_gold
- #获取地图id和name
- $game_map.map_id
- $game_map.name
- #修正画面抖动错误 放在Game_Interpreter中
- def command_225
- screen.start_shake(@params[0], @params[1], @params[2])
- wait(@params[2]) if @params[2]
- end
- #显示选择
- params = []
- choices = []
- choices.push("choice 1")
- choices.push("choice 2")
- params.push(choices)
- params.push(0/1/2 this part is where you press cancel and which choice to default)
- setup_choices(params)
复制代码 |
评分
-
查看全部评分
|