查看: 1986|回复: 5

[已经解决] 求你急用脚本..游戏卡在这了...

  [复制链接]
头像被屏蔽
梦石
0
星屑
50
在线时间
0 小时
注册时间
2009-7-7
回帖
58
发表于 2009-7-9 01:22:15 | 显示全部楼层 |阅读模式
提示: 作者被禁止或删除 内容自动屏蔽
头像被屏蔽
梦石
0
星屑
50
在线时间
0 小时
注册时间
2009-7-7
回帖
58
 楼主| 发表于 2009-7-9 02:06:57 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

天仙

梦石
0
星屑
720
在线时间
184 小时
注册时间
2008-4-15
回帖
4872

贵宾

发表于 2009-7-9 07:35:02 | 显示全部楼层
事件里使用脚本: $scene = Scene_Actors.new 调用
  1. class Window_Actors < Window_Selectable
  2.   def initialize
  3.     super(0, 0, 136, 416)
  4.     @index = 0
  5.     @item_max = 1
  6.     @message_window = Window_Message.new
  7.     refresh
  8.   end
  9.   def refresh
  10.     @actor_ids = []
  11.     for i in 1...$data_actors.size
  12.       @actor_ids.push(i) unless $game_party.members.include?($game_actors[i])
  13.     end
  14.     self.height = WLH * @actor_ids.size + 32
  15.     create_contents
  16.     self.height = 416 if self.height > 416
  17.     @item_max = @actor_ids.size
  18.     for i in 0...@actor_ids.size
  19.       y = WLH * i
  20.       self.contents.draw_text(4, y, 108, WLH, $data_actors[@actor_ids[i]].name)
  21.     end
  22.   end
  23.   def update
  24.     @message_window.update
  25.     if Input.trigger?(Input::C)
  26.       if $game_party.members.size < 4
  27.         Sound.play_decision
  28.         $game_party.add_actor(@actor_ids[@index])
  29.         @actor_ids.delete_at(@index)
  30.         refresh
  31.       else
  32.         Sound.play_buzzer
  33.         $game_message.texts.push("\\c[10]队伍已满")
  34.       end
  35.     elsif Input.trigger?(Input::B)
  36.       $scene = Scene_Map.new
  37.     end
  38.     super
  39.   end
  40.   def actor
  41.     return @actor_ids[index]
  42.   end
  43.   def dispose
  44.     super
  45.     @message_window.dispose
  46.   end
  47. end
  48. class Scene_Actors < Scene_Base
  49.   def start
  50.     @window_actors = Window_Actors.new
  51.     create_menu_background
  52.     @window_actors.active = true
  53.   end
  54.   def update
  55.     super
  56.     update_menu_background
  57.     @window_actors.update
  58.   end
  59.   def terminate
  60.     dispose_menu_background
  61.     @window_actors.dispose
  62.   end
  63. end
复制代码
VA脚本开工中...
偷窃脚本1.0 - 已完成
回复

使用道具 举报

头像被屏蔽
梦石
0
星屑
50
在线时间
0 小时
注册时间
2008-3-16
回帖
11
发表于 2009-7-9 12:18:46 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

头像被屏蔽
梦石
0
星屑
50
在线时间
0 小时
注册时间
2009-7-7
回帖
58
 楼主| 发表于 2009-7-9 12:21:43 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

八云紫的式神<

梦石
0
星屑
833
在线时间
1260 小时
注册时间
2008-1-1
回帖
3889

烫烫烫

发表于 2009-7-15 16:56:34 | 显示全部楼层
LZ你是在玩游戏还是制作游戏啊,玩游戏的话,下载新版本,作者已经更新了
制作的话,3楼4楼的试试
rm for linux(wine)制作中,期待夏娜SAMA能实现到webrm上
回复

使用道具 举报

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

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部