Module:Character Picker

From Ways of Darkness
Jump to navigation Jump to search

Documentation for this module may be created at Module:Character Picker/doc

require "Module:Generic Random Picker"

local valid_char = {
	"Characters/Stephánus Tavilrond",
	"Characters/Arnélia Gervése",
	"Characters/Gnarog Dougfrál",
	"Characters/Morthen Orden'Ath Ildor",
	"Characters/Ladislaus Dominus",
	"Characters/Keshuvar Seward",
	"Characters/Ashrám Wegnard",
	"Characters/Reyanna Rýger",
	"Characters/Ta'ael Myrth'nddare",
	"Characters/Pirothea Nelvarryl",
	"Characters/Gzaxia Nolánó"

local char_picker = RandomPicking(valid_char)

local p={}
function p.main(frame)
	return char_picker.main(frame.args[1])
function p.rand(frame)
	return char_picker.rand()
function p.loop(frame)
	return char_picker.loop()
return p