Classes

Concepts

Libraries

advertisement »

ambientSounds »

bitser »

contentPoints »

eventBoxText »

factValidity »

frameBuffer »

officeBuildingInserter »

priorityRenderer »

randomEvents »

scaling »

spritesheetParser »

statusIcons »

test3 »

util »

Objects

registerNew

Description

Register a new lets player.

Arguments

1 table data

the data of the lets player.

Example

-- taken from game/basic_lets_players.lua


letsPlayers:registerNew({
	id = "lets_player_1",
	display = _T("LETS_PLAYER_1", "ZapDeadCake"),
	icon = "lp_zapdeadcake",
	description = _T("LETS_PLAYER_1_DESC", "Screams a lot into his microphone, but less than 'charliesewernose'."),
	minimumViewerBaseForPaidVideos = 750000, -- when our viewerbase is this large, this lp'er will start taking $ for his vids

	availability = {year = 2010, month = 4},
	baseVideoPrice = 1000,
	startingViewers = 360,
	extraPerSection = 500,
	extraPriceSection = 20000,
	maxViewerbaseMult = 1,
	viewerIncreaseMult = 0.8,
	freeExtraVideosRating = 8, -- the game's rating must be at least this high for the lets player to make extra videos free of charge

	freeExtraVideos = 6, -- extra free amount of videos this lper will make if the game is of a preferred genre & it's good

	maxVideos = 3, -- the base amount of videos this lper will make

	preferredGenres = {
		action = true,
		rpg = true
	},
	
	setupDescbox = function(self, letsPlayer, descBox, wrapWidth)
		if timeline.curTime >= timeline:getDateTime(2017, 4) then
			descBox:addText(_T("LETS_PLAYER_1_DESC_2", "Rumors say he is also the Grand Wizard of the KKK."), "pix16", nil, 0, wrapWidth)
		end
	end
})