- 注册时间
- 2010-1-5
- 最后登录
- 2011-3-6
⑥精研
无既空,空既色
- 积分
- 1151
|
楼主 |
发表于 2010-1-22 14:33:19
|
显示全部楼层
- def check_event_custom(mouse_x, mouse_y)
- for event in $game_map.events.values #循环所有事件检查
- event_width = RPG::Cache.character(event.character_name,event.character_hue).width / $c3_每一步的帧数
- event_height = RPG::Cache.character(event.character_name,event.character_hue).height / 8
- if mouse_x > event.screen_x - event_width / 3 and mouse_x < event.screen_x + event_width / 3 and mouse_y + 32 > event.screen_y + 32 - event_height and mouse_y + 32 < event.screen_y + 32
- for i in 0...event.list.size
- if event.list[i].parameters[0] == "Item" #类型判断
- event.flag = 1
- elsif event.list[i].parameters[0] == "Npc" #类型判断
- event.flag = 2
- elsif event.list[i].parameters[0] == "Go" #类型判断
- event.flag = 3
- else
- event.flag = 0 if $game_player.get_mouse_sta != 3 #无标志
- end
- return event.flag #返回事件类型标志
- end
- end
- end
- return 0 if $game_player.get_mouse_sta != 2 #如果不是在跟随鼠标状态,则返回无标志
- return $mouse_icon_id #使鼠标图不变化
- end
复制代码 |
|