Classes

Concepts

Libraries

advertisement »

ambientSounds »

bitser »

contentPoints »

eventBoxText »

factValidity »

frameBuffer »

officeBuildingInserter »

priorityRenderer »

randomEvents »

scaling »

spritesheetParser »

statusIcons »

test3 »

util »

Objects

getEventByID

Description

Gets an event by the given ID.

Arguments

1 string id

the event ID.

Returns

1 scheduledEvent

the event.

2 number

the event type. Refer to scheduledEvents.TYPE for more info.

3 number

index in the table it was found in. If it is a buffered event, then it will be located in the scheduledEvents.bufferedEvents table, if it was a scheduled event, then it will be located in scheduledEvents.bufferedEventsByYear. Traversing the latter table requires you to know the year and month that the event occurs in.