Classes

Concepts

Libraries

advertisement »

ambientSounds »

bitser »

contentPoints »

eventBoxText »

factValidity »

frameBuffer »

officeBuildingInserter »

priorityRenderer »

randomEvents »

scaling »

spritesheetParser »

statusIcons »

test3 »

util »

Objects

register

Description

Register a new speech part.

Arguments

1 table data

the part to register.

Example

-- taken from game/motivational_speeches.lua


motivationalSpeeches:register({
	id = "low_speech_skills",
	score = 30, -- the score must be lower than or equal to this value for this text to be chosen. The system will pick text that is most fitting for the total speech score.

	parts = {
		{
			_T("LOW_SPEECH_SKILLS_SPEECH_1_A", "Alright fellas, I gathered you all here because I wanted to discuss your efforts on our projects.")
		},
		
		{
			_T("LOW_SPEECH_SKILLS_SPEECH_2_A", "I understand that some tasks might be tough, but we need to give the projects our best.")
		},
		
		{
			_T("LOW_SPEECH_SKILLS_SPEECH_3_A", "If we don't give this our all, then we won't get far. I need you guys at your best.")
		}
	}
})