赞 | 3 |
VIP | 0 |
好人卡 | 39 |
积分 | 1 |
经验 | 101436 |
最后登录 | 2017-9-1 |
在线时间 | 2276 小时 |
Lv1.梦旅人 路人党员
- 梦石
- 0
- 星屑
- 52
- 在线时间
- 2276 小时
- 注册时间
- 2010-12-30
- 帖子
- 3225
|
回复 影子骑士 的帖子
最终脚本:- class Game_Party
- def add_actor(actor_id)
- actor = $game_actors[actor_id]
- if @actors.size < 4 and not @actors.include?(actor)
- @actors.push(actor)
- $game_player.refresh
- else not @actors.include?(actor)
- a = []
- @actors.each{|s|a.push(s.name)}
- cmd_win = Window_Command.new(160,a)
- cmd_win.x = 320 - cmd_win.width/2
- cmd_win.y = 240 - cmd_win.height/2
- hlp_win = Window_Base.new(cmd_win.x-80,cmd_win.y-64,320,64)
- hlp_win.contents = Bitmap.new(288,32)
- hlp_win.contents.draw_text(0,0,288,32,"要让#{actor.name}代替谁?")
- loop do
- Graphics.update
- Input.update
- cmd_win.update
- if Input.trigger?(Input::C)
- name1 = @actors[cmd_win.index].name
- $game_system.se_play($data_system.decision_se)
- @actors.delete(@actors[cmd_win.index])
- @actors.push(actor)
- $game_player.refresh
- hlp_win.visible=cmd_win.visible=false
- $game_temp.message_window_showing = true
- $game_temp.message_text = "已经把#{name1}换为#{actor.name}"
- break
- end
- end
- cmd_win.dispose
- hlp_win.dispose
- end
- end
- end
复制代码 |
|