Module:Dialogue/data

From Sekaipedia

Documentation for this module may be created at Module:Dialogue/data/doc

-- To add more options for a certain character, add them here
local CHARACTERS = {
	-- VIRTUAL SINGER
	['hatsune miku']  = 'Hatsune Miku', 
		['miku']      = 'Hatsune Miku',
	['kagamine rin']  = 'Kagamine Rin',
		['rin']       = 'Kagamine Rin',
	['kagamine len']  = 'Kagamine Len',
		['len']       = 'Kagamine Len',
	['megurine luka'] = 'Megurine Luka',
		['luka']      = 'Megurine Luka',
	['meiko']         = 'MEIKO',
	['kaito']         = 'KAITO',

	-- Leo/need
	['hoshino ichika']   = 'Hoshino Ichika',
		['ichika']       = 'Hoshino Ichika',
	['tenma saki']       = 'Tenma Saki',
		['saki']         = 'Tenma Saki',
	['mochizuki honami'] = 'Mochizuki Honami',
		['honami']       = 'Mochizuki Honami',
	['hinomori shiho']   = 'Hinomori Shiho',
		['shiho']        = 'Hinomori Shiho',
	
	-- MORE MORE JUMP!
	['hanasato minori']  = 'Hanasato Minori',
		['minori']       = 'Hanasato Minori',
	['kiritani haruka']  = 'Kiritani Haruka',
		['haruka']       = 'Kiritani Haruka',
	['momoi airi']       = 'Momoi Airi',
		['airi']         = 'Momoi Airi',
	['hinomori shizuku'] = 'Hinomori Shizuku',
		['shizuku']      = 'Hinomori Shizuku',
		
	-- Vivid BAD SQUAD
	['azusawa kohane']  = 'Azusawa Kohane',
		['kohane']      = 'Azusawa Kohane',
	['shiraishi an']    = 'Shiraishi An',
		['an']          = 'Shiraishi An',
	['shinonome akito'] = 'Shinonome Akito',
		['akito']       = 'Shinonome Akito',
	['aoyagi toya']     = 'Aoyagi Toya',
		['toya']        = 'Aoyagi Toya',
		
	-- Wonderlands×Showtime
	['tenma tsukasa'] = 'Tenma Tsukasa',
		['tsukasa']   = 'Tenma Tsukasa',
	['otori emu']     = 'Otori Emu',
		['emu']       = 'Otori Emu',
	['kusanagi nene'] = 'Kusanagi Nene',
		['nene']      = 'Kusanagi Nene',
	['kamishiro rui'] = 'Kamishiro Rui',
		['rui']       = 'Kamishiro Rui',
	
}

-- Use the optimal name here, will be mapped to the "shorthands" in CHARACTERS
local IMAGES = {
	-- VIRTUAL SINGER
	['Hatsune Miku']  = 'Miku-circle.png',
	['Kagamine Rin']  = 'Rin-circle.png',
	['Kagamine Len']  = 'Len-circle.png',
	['Megurine Luka'] = 'Luka-circle.png',
	['MEIKO']         = 'Meiko-circle.png',
	['KAITO']         = 'Kaito-circle.png',
	
	-- Leo/need
	['Hoshino Ichika']   = 'Ichika-circle.png',
	['Tenma Saki']       = 'Saki-circle.png',
	['Mochizuki Honami'] = 'Honami-circle.png',
	['Hinomori Shiho']   = 'Shiho-circle.png',
	
	-- MORE MORE JUMP!
	['Hanasato Minori']  = 'Minori-circle.png',
	['Kiritani Haruka']  = 'Haruka-circle.png',
	['Momoi Airi']       = 'Airi-circle.png',
	['Hinomori Shizuku'] = 'Shizuku-circle.png',
	
	-- Vivid BAD SQUAD
	['Azusawa Kohane']  = 'Kohane-circle.png',
	['Shiraishi An']    = 'An-circle.png',
	['Shinonome Akito'] = 'Akito-circle.png',
	['Aoyagi Toya']     = 'Touya-circle.png',
	
	-- Wonderlands×Showtime
	['Tenma Tsukasa'] = 'Tsukasa-circle.png',
	['Otori Emu']     = 'Emu-circle.png',
	['Kusanagi Nene'] = 'Nene-circle.png',
	['Kamishiro Rui'] = 'Rui-circle.png',
}

local COLORS = {
	-- VIRTUAL SINGER
	['Hatsune Miku'] = '#33ccbb',
	['Kagamine Rin'] = '#ffcc11',
	['Kagamine Len'] = '#ffee11',
	['Megurine Luka'] = '#ffbbcc',
	['MEIKO'] = '#dd4444',
	['KAITO'] = '#3366cc',
	
	-- Leo/need
	['Hoshino Ichika'] = '#33aaee',
	['Tenma Saki'] = '#ffdd44',
	['Mochizuki Honami'] = '#ee6666',
	['Hinomori Shiho'] = '#bbdd22',
	
	-- MORE MORE JUMP!
	['Hanasato Minori'] = '#ffccaa',
	['Kiritani Haruka'] = '#99ccff',
	['Momoi Airi'] = '#ffaacc',
	['Hinomori Shizuku'] = '#99eedd',
	
	-- Vivid BAD SQUAD
	['Azusawa Kohane']  = '#ff6699',
	['Shiraishi An']    = '#00bbdd',
	['Shinonome Akito'] = '#ff7722',
	['Aoyagi Toya']     = '#0077dd',
	
	-- Wonderlands×Showtime
	['Tenma Tsukasa'] = '#ffbb00',
	['Otori Emu']     = '#ff66bb',
	['Kusanagi Nene'] = '#33dd99',
	['Kamishiro Rui'] = '#bb88ee',
}

local function get_image_mapping()
	local mapping = {}
	
	for k,v in pairs(CHARACTERS) do
		mapping[k] = IMAGES[v]
	end
	
	return mapping
end

local function get_color_mapping()
	local mapping = {}
	
	for k,v in pairs(CHARACTERS) do
		mapping[k] = COLORS[v]
	end
	
	return mapping
end

return {
	characters = CHARACTERS,
	images = get_image_mapping(),
	colors = get_color_mapping()
}
Cookies help us deliver our services. By using our services, you agree to our use of cookies.