赞 | 23 |
VIP | 207 |
好人卡 | 31 |
积分 | 31 |
经验 | 48797 |
最后登录 | 2024-11-30 |
在线时间 | 1535 小时 |
Lv3.寻梦者 孤独守望
- 梦石
- 0
- 星屑
- 3137
- 在线时间
- 1535 小时
- 注册时间
- 2006-10-16
- 帖子
- 4321
|
> 前提:使用沉影的鼠标脚本 <
将最后两段改成- #==============================================================================
- # ## Game_Map
- # # Changed
- #==============================================================================
- class Game_Map
- #--------------------------------------------------------------------------
- ## NPC加强
- #--------------------------------------------------------------------------
- def update_events
- for event in @events.values
- event.update
- next unless event.npc
- if Mouse.click?(Mouse::LKEY)
- if [event.x, event.y] == $scene.mouse_xy and $game_player.move_by_mouse?
- if event.moment
- event.start
- else
- event.lock
- end
- else
- event.unlock
- end
- end
- event.turn_toward_player if event.locked
- end
- for common_event in @common_events.values
- common_event.update
- end
- end
- end
- #==============================================================================
- # ## Game_Event
- # # Changed
- #==============================================================================
- class Game_Event < Game_Character
- attr_reader :npc
- attr_reader :moment
- alias npc_setup setup
- #--------------------------------------------------------------------------
- # ● 设置事件页
- #--------------------------------------------------------------------------
- def setup(new_page)
- npc_setup(new_page)
- @npc = get_npc
- @moment = get_moment
- end
- #--------------------------------------------------------------------------
- # ○ 获取 NPC 信息
- #--------------------------------------------------------------------------
- def get_npc
- @npcname = ""
- @npcicon = -1
- return if @list == nil
- for line in @list
- if line.code == 108 or line.code == 408
- unless line.parameters.empty?
- npcinfo = line.parameters.to_s
- if npcinfo =~ /^\s*npc\s*=\s*true/i
- return true
- end
- end
- end
- end
- return false
- end
- #--------------------------------------------------------------------------
- # ○ 获取 瞬间触发型 信息
- #--------------------------------------------------------------------------
- def get_moment
- @npcname = ""
- @npcicon = -1
- return if @list == nil
- for line in @list
- if line.code == 108 or line.code == 408
- unless line.parameters.empty?
- npcinfo = line.parameters.to_s
- if npcinfo =~ /^\s*moment\s*=\s*true/i
- return true
- end
- end
- end
- end
- return false
- end
- end
复制代码 注意注释第一行位置一致就行了。
对于事件设置,对于事件的设置是:
npc别漏了……
因为是付费的所以不便上传工程,请谅解。 |
评分
-
查看全部评分
|