Classes

Concepts

Libraries

advertisement »

ambientSounds »

bitser »

contentPoints »

eventBoxText »

factValidity »

frameBuffer »

officeBuildingInserter »

priorityRenderer »

randomEvents »

scaling »

spritesheetParser »

statusIcons »

test3 »

util »

Objects

registerNew

Description

Registers a new game convention.

Arguments

1 table data

the data to register the convention from.

Example

gameConventions:registerNew({
	id = "e3",
	display = _T("CONVENTION_VGPE", "VGPE"),
	icon = "convention_vgpe",
	duration = 3, -- in days

	availability = {year = 1995, month = 2}, -- when does the convention become a thing?

	unlockTitle = _T("CONVENTION_E3_POPUP_TITLE", "'VGPE' now available"), -- the frame title for when this convention becomes available

	unlockText = _T("CONVENTION_E3_POPUP_TEXT", "Things are looking up for the video game industry. A new gaming convention called 'VGPE' is now available.

Booking available each year until May."), -- the text to display for when this convention becomes available

	staffCost = 25 * 12, -- cost per employee hired, where 25 is hourly wage and 12 is the hour count (per day)

	entryFee = 5000, -- the flat entry fee as an exhibitor

	yearlyVisitors = 60000, -- maximum amount of people that may visit the expo every year that it is held

	visitorsMinMaxRange = {0.9, 1.1}, -- yearlyVisitors * random of the value rolled between these 2 values

	conventionMonth = 6, -- at which month does the convention begin?

	booths = {
		{
			cost = 5000, -- the cost of this booth

			display = _T("E3_SMALL_BOOTH", "Small booth"),
			maxPresentedGames = 2,
			maxPeopleHoused = 800, -- the max impressionable people per day

			requiredParticipants = 5,
			icon = "booth_small",
			type = gameConventions.BOOTH_TYPES.SMALL
		},
		
		{
			cost = 50000,
			display = _T("E3_MEDIUM_BOOTH", "Medium booth"),
			maxPresentedGames = 4,
			maxPeopleHoused = 4500,
			requiredParticipants = 10,
			icon = "booth_medium",
			type = gameConventions.BOOTH_TYPES.MEDIUM
		},
		
		{
			cost = 250000,
			display = _T("E3_LARGE_BOOTH", "Large booth"),
			maxPresentedGames = 6,
			maxPeopleHoused = 15000,
			requiredParticipants = 15,
			icon = "booth_large",
			type = gameConventions.BOOTH_TYPES.LARGE
		},
	}
})