|
|||||||
Template Events Addon: Merge parallel events
Время создания: 15.12.2016 19:51
Автор: DeadElf79
Текстовые метки: events, templates, addons
Раздел: Ruby - RGSS3
Запись: deadelf79/mytetra/raw/master/data/base/1481820664cn17t982us/text.html на github.com
|
|||||||
|
|||||||
#============================================================================== # Template Events Addon: Merge parallel events # Version 1.0 # by DeadElf79 #============================================================================== module De79TemplateEvents_Merge MERGE_PARALLELS = true end class Game_Event attr_accessor :list end class Game_Map def parallels @parallels ||= @events.values.select{ |event| event.trigger == 4 && event.pages.size == 1 && not(event.empty?) } end end class Scene_Map < Scene_Base alias de79_te_merge ask_every_te_addon def ask_every_te_addon de79_te_merge if De79TemplateEvents_Merge::MERGE_PARALLELS there_can_be_only_one = $game_map.parallels[0] return unless there_can_be_only_one for index in 1...$game_map.parallels.size event = $game_map.parallels[ index ] if event.list != nil there_can_be_only_one.list += event.list end event.erase end end end end |
|||||||
Так же в этом разделе:
|
|||||||
|
|||||||
|