Classes

Concepts

Libraries

advertisement »

ambientSounds »

bitser »

contentPoints »

eventBoxText »

factValidity »

frameBuffer »

officeBuildingInserter »

priorityRenderer »

randomEvents »

scaling »

spritesheetParser »

statusIcons »

test3 »

util »

Objects

changeValue

Description

Changes the finance history value of the specified ID. Usually you won't have to call this method separately if you're doing a call to studio:deductFunds or studio:addFunds. Look into passable arguments for these 2 methods to make sure you're changing the finance history properly via those 2 methods.

Arguments

1 number month

the month to change the value for. Most of the time you should pass nil here.

2 string id

the finance type to change the value of.

3 number change

the value to change it by.

Example

studio.financeHistory:changeValue(nil, "office_expansion", 1000000) -- increase the finance history value of the "office_expansion" ID, indicating that you made $1,000,000 this month by performing some kind of office action.